How to show customer also purchased product in shopping cart page?
Thanks!
How to show customer also purchased product in shopping cart page?
Thanks!
Hi Ajeh,
I put following code on product_info but it did not work. What I am missing here. Do I need to add something else to same or other file?
Code:(int)$_GET['products_id'] 'Sold: ' . zen_products_lookup((int)$_GET['products_id'], 'products_ordered');
I am not quite sure what you are doing there ...
Using:
should display how many have been ordered ...Code:echo 'Sold: ' . zen_products_lookup((int)$_GET['products_id'], 'products_ordered');
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!
I got it. Thank you!
Last edited by jsarwar; 25 Sep 2015 at 07:46 PM.
Ajeh,
Is it possible to not display it when sold is 0 or less than certain number e.g. 5 or 10?
You could add an IF around it to control when it should or should not display ...
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!
I already tried that but it did not work. Can you please help me with this to not display when its 0.
You could use something like:
Code:echo (zen_products_lookup((int)$_GET['products_id'], 'products_ordered') < 1 ? '' : 'Sold: ' . zen_products_lookup((int)$_GET['products_id'], 'products_ordered'));
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. worked :)
Thanks for the update that this is working for you ...
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!
Bookmarks