Forums / Customization from the Admin / limiting products in the 'customers who bought this....' box

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

Locked

Started by damiana on 26 Apr 2007, 10:45 PM · Views: 1,815

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
26 Apr 2007, 10:45 PM
#1
damiana avatar

damiana

New Zenner

Join Date:
Nov 2006
Posts:
12
Plugin Contributions:
0

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

1 May 2007, 10:31 PM
#2
aspagarino avatar

aspagarino

New Zenner

Join Date:
Mar 2007
Location:
San Diego
Posts:
6
Plugin Contributions:
0

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

 // 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...

1 May 2007, 11:18 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!

2 May 2007, 3:59 PM
#4
aspagarino avatar

aspagarino

New Zenner

Join Date:
Mar 2007
Location:
San Diego
Posts:
6
Plugin Contributions:
0

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

Thanks Linda... :oops: As always you are right!

2 May 2007, 4:51 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

You were not wrong, exactly ... I was just more right ... :cool:

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!

10 May 2007, 11:00 AM
#6
damiana avatar

damiana

New Zenner

Join Date:
Nov 2006
Posts:
12
Plugin Contributions:
0

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

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