DB_PREFIX
This commit is contained in:
parent
9bba8e0381
commit
c6f2baa255
@ -58,7 +58,7 @@ class CartController extends CartControllerCore
|
||||
// Get id_configurator max
|
||||
$cmaxSql = 'SELECT IF(MAX(cp.id_configurator) IS NULL, 0, MAX(cp.id_configurator)) AS maxCp,
|
||||
IF(MAX(cs.id_configurator) IS NULL, 0, MAX(cs.id_configurator)) AS maxCs
|
||||
FROM ps_configurator_storage cs, ps_cart_product cp';
|
||||
FROM `'._DB_PREFIX_.'configurator_storage cs, `'._DB_PREFIX_.'cart_product cp';
|
||||
$max = Db::getInstance()->getRow($cmaxSql);
|
||||
$this->id_configurator = ($max['maxCp'] > $max['maxCs'] ? $max['maxCp'] : $max['maxCs']) + 1;
|
||||
|
||||
@ -236,6 +236,14 @@ class CartController extends CartControllerCore
|
||||
$this->errors[] = Tools::displayError('Please fill in all of the required fields, and then save your customizations.', !Tools::getValue('ajax'));
|
||||
}
|
||||
|
||||
// Validate input
|
||||
// Get Data from database Required,
|
||||
//
|
||||
if (ConfiguratorStorage::hasAllRequirement())
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
if (!$this->errors) {
|
||||
$cart_rules = $this->context->cart->getCartRules();
|
||||
$available_cart_rules = CartRule::getCustomerCartRules($this->context->language->id, (isset($this->context->customer->id) ? $this->context->customer->id : 0), true, true, true, $this->context->cart, false, true);
|
||||
|
Loading…
Reference in New Issue
Block a user