On the product listing page I would like to add the words "per set" after the price (on the same line). How do I do this?
Thanks.
On the product listing page I would like to add the words "per set" after the price (on the same line). How do I do this?
Thanks.
Get a really big screen ...
Is that even going to fit on one line?
What about with a Special or a Sale?
This can be done, but I don't think you have room for it on one line ...
Is that the only place you need to see this?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Yes, that's the only place it needs to show. Could you please tell me how? Thanks!
Copy the products_listing module to your templates and overrides directory and you can add in the text or via a constant what you would like to see ...
Then set the width in the Configuration ... Product Listing for the Price column to be wide enough to accommodate this ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Thanks. I've tried adding it both ways, using a constant and text, but nothing is showing. I set the price column to 200. Could you please show me where exactly in the code I need to add the text? I don't know php all that well.
Thanks.
In /includes/modules/your_template/product_listing.php, find this sectionand addPHP Code:
case 'PRODUCT_LIST_PRICE':
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
$lc_align = 'right';
$lc_text = $lc_price;
[ space ] per set
to get thisPHP Code:
case 'PRODUCT_LIST_PRICE':
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . ' per set<br />';
$lc_align = 'right';
$lc_text = $lc_price;
Thanks. I tried this but no change.
Then you have somehow not gotten the edit to the right place to be recognized.
What is your custom template name?
What is the filepath to your custom template?
What is the filepath to your edited product_listing.php?
Post the section of the file that you edited (say 5 lines on either side).
That was it. I was uploading to the wrong folder. Thank you!
Bookmarks