Hi all,
has anyone else noticed that the '($0.00 Retail)' text under the group price doesn't appear to include tax when tax is set to show in Shop?
If i am correct the problem lies in file:
/cart/includes/functions/functions_prices.php
Specifically in - function zen_get_products_retail_display_price($products_id) - in this line of code:
PHP Code:
if ($display_retail_price) $display_retail_price = '<span id="retailPrice">' . RETAIL_PRICE_PREFIX_TEXT . $currencies->display_price($display_retail_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . RETAIL_PRICE_SUFFIX_TEXT . '</span><br />' . $display_retail_price . ' - - ' . $product_check->fields['products_tax_class_id'];
this part of the above line of code doesn't work as there is no variable '$product_check' inside this function...:
PHP Code:
$product_check->fields['products_tax_class_id']
to fix this add this line of code in - function zen_get_products_retail_display_price($products_id)
PHP Code:
$product_check = $db->Execute("select products_tax_class_id, products_price from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'" . " limit 1");
working example:
PHP Code:
$product_check = $db->Execute("select products_tax_class_id, products_price from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'" . " limit 1");
// no prices on Document General
if ($product_check->fields['products_type'] == 3) {
return '';
regards,
Matthew
Bookmarks