Trinity14:
Thanks Twitch, I got it!
I'll wait for you to send the steps to get it working on column layout grid. Currently it displays list price twice.
Thanks again,
Be sure you have installed Column Layout Grid and Twitch List Price 14a for Zen Cart v1.51 - March 1.2014 - properly.
When set for **column **layout, you will not see the list price heading, just the price. If it's duplicating as you mentioned, you've duplicated the code.
So let's add the list price heading back into the list price output line with some CSS:
includes/modules/YOUR_TEMPLATE/product_listing.php
replace this:
case 'PRODUCT_LIST_THE_LIST_PRICE':
$lc_align = '';
$lc_text = $listing->fields['products_list_price'];
break;
with this:
case 'PRODUCT_LIST_THE_LIST_PRICE':
$lc_align = '';
$lc_text = '<span class="productsList_heading">' . TABLE_HEADING_THE_LIST_PRICE . '</span> <span class="productsList_price">$' . $listing->fields['products_list_price'] . '</span>';
break;
includes/templates/YOUR_TEMPLATE/css/stylesheet.css
add the two classes you're calling in the last code:
.productsList_heading {
font-size: 1.3em;
font-weight:bold;
color:#00367F;
}
.productsList_price {
font-size: 1.3em;
color:#00367F;
}
Next be sure to navigate to Admin > Configuration -> Product Listing -> Display Product Price/Add to Cart set the sort order to '4'. By default the List Price is set for a sort order of 3.
So now you will see the List Price $0.00 in the column grid :)
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian