Maybe someone in this thread will know the solution. I am using the column grid 1.3.8 plugin on ZC1.39.
Goal: Get the quantity discount that is shown in product_info.php to show on product_listing.php
So Far: I have applied some code that AJEH put out. The following was inserted in the included/modules/custom/product_listing.php
case 'PRODUCT_LIST_PRICE':
//trying ajeh code
// $lc_align = 'right';
$lc_price = $products_discount_type = zen_products_lookup($listing->fields['products_id'], $what_field = 'products_discount_type');
if ($products_discount_type != 0) {
$rows++;
$products_id_current = (int)$listing->fields['products_id'];
$quantityDiscounts = array();
$products_discount_type_from = zen_products_lookup($listing->fields['products_id'], $what_field = 'products_discount_type_from');
require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCTS_QUANTITY_DISCOUNTS));
require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php');
}
else
{ $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
$lc_align = 'right';
$lc_text = $lc_price;}
//ending ajeh code
Results: I seem to get the correct data on the page but it is listed at the top of the page and not attached to each item.
http://www DOT skippypages DOT COM/index.php?main_page=index&cPath=1055
Any thoughts?
Thanks
Bookmarks