This may be a bug/omission but given the complexities of this mod I wouldn't be surprised if I just didn't understand.
When adding a product to the cart my config settings are such that the cart is not displayed and I instead get a popup saying for example:
HTML Code:
'Men's Red Shoe' was added to your basket
If I do the same with a product priced by attributes and SBA, I get:
HTML Code:
was added to your basket
eventually I found that in includes\extra_cart_actions\stock_by_attributes.php
around line 1064
Code:
// display message if all is good and not on shopping_cart page
if (DISPLAY_CART == 'false' && $_GET['main_page'] != FILENAME_SHOPPING_CART && $messageStack->size('shopping_cart') == 0) {
$messageStack->add_session('header', ($_SESSION['cart']->display_debug_messages ? 'FUNCTION ' . __FUNCTION__ . ': ' : '') . SUCCESS_ADDED_TO_CART_PRODUCT, 'success');
needed to be changed to
Code:
// display message if all is good and not on shopping_cart page
if (DISPLAY_CART == 'false' && $_GET['main_page'] != FILENAME_SHOPPING_CART && $messageStack->size('shopping_cart') == 0) {
$messageStack->add_session('header', ($_SESSION['cart']->display_debug_messages ? 'FUNCTION ' . __FUNCTION__ . ': ' : '') . '\'' . zen_get_products_name($_POST['products_id']) . '\'' . SUCCESS_ADDED_TO_CART_PRODUCT, 'success');
so that the zen_get_products_name function is called when adding a 'SBA' product to the cart.
Bookmarks