Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2006
    Posts
    12
    Plugin Contributions
    0

    Default limiting products in the 'customers who bought this....' box

    Hello
    Can anyone tell me how I limit the amount of products shown in the 'customers who bought this product also purchased.....' box?
    Thanks

  2. #2
    Join Date
    Mar 2007
    Location
    San Diego
    Posts
    6
    Plugin Contributions
    0

    Default Re: limiting products in the 'customers who bought this....' box

    In order to change the limit to the products you should make modifications to also_purchased_products.php, this file is located under the modules directory.

    However, before making any changes, remember to first create a directory under modules with your template name and the file.

    include/modules/YOUR_TEMPLATE/also_purchased_products.php

    Open the file and make the changes to around line 25

    Code:
     // show only when 1 or more and equal to or greater than minimum set in admin
      if ($num_products_ordered >= MIN_DISPLAY_ALSO_PURCHASED && $num_products_ordered > 1) {
    Change the >1 to meet your needs...

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

    Default Re: limiting products in the 'customers who bought this....' box

    Be careful on interpreting that IF statement ...

    There are two settings you can configure in your Admin ...

    The setting in the Maximum Values for the maximum number to display is in the Configuration .... Maximum Values:
    Also Purchased Products
    Number of products to display in the 'This Customer Also Purchased' box
    The limit on the Minimum Values to be displayed are in the Configuration ... Minimum Values:
    Also Purchased Products
    Minimum number of products to display in the 'This Customer Also Purchased' box
    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!]
    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. #4
    Join Date
    Mar 2007
    Location
    San Diego
    Posts
    6
    Plugin Contributions
    0

    Default Re: limiting products in the 'customers who bought this....' box

    Thanks Linda... As always you are right!

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

    Default Re: limiting products in the 'customers who bought this....' box

    You were not wrong, exactly ... I was just more right ...
    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!]
    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!

  6. #6
    Join Date
    Nov 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: limiting products in the 'customers who bought this....' box

    Thanks :) I changed it in the Admin as that was easier

 

 

Similar Threads

  1. v150 Styling the 'Customers who bought this product' center box
    By OLCS in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 11 Sep 2012, 04:07 PM
  2. Replies: 2
    Last Post: 25 Jul 2009, 06:50 PM
  3. Replies: 5
    Last Post: 15 Jul 2006, 11:13 PM

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