Hey Simon,
Thanks for the link! I had seen that about a week ago now but was looking for a more recent solution. For those following along. Ajeh's solution does work but requires a little modification to work in ZC 1.5.7.
With a stock cart, override the includes/modules/product_listing.php. Find case 'PRODUCT_LIST_PRICE'. There are two of these. The one you're looking for is near line 300. Replace with following!
PHP Code:
case 'PRODUCT_LIST_PRICE':
$lc_align = 'center';
if ($product_listing_layout_style === 'table') $lc_align = 'right';
$lc_text = '';
// if ($product_listing_layout_style === 'columns') $lc_text .= '<label>' . TABLE_HEADING_PRICE . '</label>';
// $lc_text .= '<div class="list-price">';
$lc_text .= $listing_price;
// $lc_text .= '</div>';
// $lc_text .= '<br><br>';
$lc_text .= zen_get_buy_now_button($record['products_id'], $lc_button, $more_info_button);
// $lc_text .= '<br>';
$lc_text .= zen_get_products_quantity_min_units_display($record['products_id']);
// $lc_text .= '<br>';
if (zen_get_show_product_switch($record['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH')) {
if (zen_get_product_is_always_free_shipping($record['products_id'])) {
$lc_text .= '<div class="text-center">';
$lc_text .= TEXT_PRODUCT_FREE_SHIPPING_ICON;
$lc_text .= '</div>';
}
}
// bof: Add Starting at to prices with Attributes with prices
if (zen_has_product_attributes($record['products_id'])) {
global $db;
$chk_attributes = $db->Execute("SELECT products_id from " . TABLE_PRODUCTS_ATTRIBUTES . " WHERE products_id ='" . $record['products_id'] . "' and options_values_price !=0");
if ($chk_attributes->RecordCount() > 0) {
$lc_text = TEXT_BASE_PRICE . $listing_price;
}
}
// eof: Add Starting at to prices with Attributes with prices
break;
John
Bookmarks