Includes\system\versioned\1.0.7.10\cart_order_builder.php to do what i want
Ie include both products_seo_title and products_number_of columns from the database into an order, great
But trying to have a unchanged core, and trying to set up a hook, but spent hours on it now and cannot get the data in.
Currently have Includes\system\versioned\1.0.7.10\cart_order_builder.php like
Code: Select all
public function __construct(&$order) {
if (is_null(static::$column_keys)) {
static::$column_keys = [
'qty' => 'quantity',
'name' => 'name',
// 'seo_title' => 'seo_title',
// 'number_of' => 'number_of',
'model' => 'model',
'price' => 'price',
'final_price' => 'final_price',
'weight' => 'weight',
'id' => 'id',
$GLOBALS['hooks']->cat('cartbuilder')
];
$parameters = [
'column_keys' => &static::$column_keys,
];
$GLOBALS['all_hooks']->cat('cartOrderProductColumns', $parameters);
}
Code: Select all
<?php
/*
$Id$
CE Phoenix, E-Commerce made Easy
https://phoenixcart.org
Copyright (c) 2025 Phoenix Cart
Released under the GNU General Public License
*/
class hook_shop_system_versioned_cartbuilder {
function listen_cartbuilder() {
$cartbuilder = 'seo_title' => 'seo_title',
'number_of' => 'number_of',
return $cartbuilder ;
}
}
Any pointers would be handy
Kind regards
David