Hello there,
I have google product search feeder which requires modification to attributes file. But someone had trouble checking out as they were getting the errors of 'invalid options' on checkout, and display attributes were showing also. I managed to figure it out by removing the following from line 239 onwards in classes/shopping_cart.php:-
PHP Code:
if (zen_has_product_attributes($products_id, 'false') && empty($attributes)) {
if (!zen_requires_attribute_selection($products_id)) {
// Build attributes array; determine correct qty
$attributes = array();
$query = $db->Execute("SELECT options_id, options_values_id FROM " . TABLE_PRODUCTS_ATTRIBUTES . " WHERE products_id = " . (int)$products_id);
foreach ($query as $attr_rec) {
$attributes[$attr_rec['options_id']] = $attr_rec['options_values_id'];
}
$qty += $this->in_cart_product_total_quantity($products_id);
}
}
It seems to be added in 1.57a . But doesn't seem to have any detriment (that I can see) after removing it. I am not really a coder at all but can do some things, my question is, can the custom edit mentioned in the other file be integrated into the above code?:-
PHP Code:
and patrib.attributes_display_only = 0
The syntax seems different so not sure if that would work. But thought it worth asking, in case the new code is important.
Bookmarks