Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30
  1. #21
    Join Date
    Aug 2013
    Posts
    54
    Plugin Contributions
    0

    Default Re: Display how many times a product has been purchased?

    How to show customer also purchased product in shopping cart page?

    Thanks!

  2. #22
    Join Date
    Jul 2012
    Posts
    346
    Plugin Contributions
    0

    Default Re: Display how many times a product has been purchased?

    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');

  3. #23
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Display how many times a product has been purchased?

    I am not quite sure what you are doing there ...

    Using:
    Code:
    echo 'Sold: ' . zen_products_lookup((int)$_GET['products_id'], 'products_ordered');
    should display how many have been 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!

  4. #24
    Join Date
    Jul 2012
    Posts
    346
    Plugin Contributions
    0

    Default Re: Display how many times a product has been purchased?

    I got it. Thank you!
    Last edited by jsarwar; 25 Sep 2015 at 07:46 PM.

  5. #25
    Join Date
    Jul 2012
    Posts
    346
    Plugin Contributions
    0

    Default Re: Display how many times a product has been purchased?

    Ajeh,
    Is it possible to not display it when sold is 0 or less than certain number e.g. 5 or 10?

  6. #26
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Display how many times a product has been purchased?

    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!

  7. #27
    Join Date
    Jul 2012
    Posts
    346
    Plugin Contributions
    0

    Default Re: Display how many times a product has been purchased?

    I already tried that but it did not work. Can you please help me with this to not display when its 0.

  8. #28
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Display how many times a product has been purchased?

    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!

  9. #29
    Join Date
    Jul 2012
    Posts
    346
    Plugin Contributions
    0

    Default Re: Display how many times a product has been purchased?

    Thanks. worked :)

  10. #30
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Display how many times a product has been purchased?

    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!

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. v139h Is there a way to track how many times a customer puts items into a cart
    By Allaction in forum Managing Customers and Orders
    Replies: 1
    Last Post: 30 Jun 2012, 07:09 PM
  2. Is there a plugin to show how many times a product has been viewed?
    By Zadris in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 4 Jun 2012, 09:57 PM
  3. Replies: 0
    Last Post: 10 Aug 2011, 04:06 AM
  4. Checking that a necessary item has been purchased
    By deviouscow in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 20 May 2010, 01:19 AM
  5. how many times a product has been seen
    By mipavluk in forum General Questions
    Replies: 3
    Last Post: 19 Sep 2007, 05:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR