Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Customers who bought this product also purchased...

Customers who bought this product also purchased...

Views: 17,823

Results 1 to 20 of 34
5 Jul 2007, 6:33 AM
#1
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Customers who bought this product also purchased...

Hi all,

I want to know which files control the "Customers who bought this product also purchased..."

Since on my site, it layout wrong on Firefox, I spend many hour to find a way to fix it, but failed.

So I read the html output by the PHP, see the style="width: 25%", I think it is because of this, but I don't know which file control this.

Anyone know which file control this? I want to remove the width=25%

Thank you.

<table class="productsBoxContents" border="0" cellpadding="4" cellspacing="0" width="100%">
    <tbody><tr>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=212"><img src="index.php_files/EK1-0321.jpg" alt="Main gear w/ collar for Lama / Robins" title=" Main gear w/ collar for Lama / Robins " height="97" width="130"></a><br><a href="/store/index.php?main_page=product_info&products_id=212">Main gear w/ collar for Lama / Robins</a>        </td>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=1358"><img src="index.php_files/SNV30338_resize.JPG" alt="Graphite Tail boom support pipes (options for Xtreme tail boom)" title=" Graphite Tail boom support pipes (options for Xtreme tail boom) " height="97" width="130"></a><br><a href="/store/index.php?main_page=product_info&products_id=1358">Graphite Tail boom support pipes  (options for Xtreme tail boom)</a>        </td>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=1313"><img src="index.php_files/SNV30494.JPG" alt="Brushless Motor Gear 11T, 2.3mm hole (4pcs)" title=" Brushless Motor Gear 11T, 2.3mm hole (4pcs) " height="97" width="129"></a><br><a href="/store/index.php?main_page=product_info&products_id=1313">Brushless Motor Gear  11T, 2.3mm hole (4pcs)</a>        </td>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=1369"><img src="index.php_files/SNV30590.jpg" alt="Battery Reclosable Fastener" title=" Battery Reclosable Fastener " height="97" width="130"></a><br><a href="/store/index.php?main_page=product_info&products_id=1369">Battery Reclosable Fastener</a>        </td>
    </tr>   
    <tr>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=1383"><img src="index.php_files/EA002.jpg" alt="Blade Tracking Color Sticker Tapes (65mm x 5mm, 10 pairs)" title=" Blade Tracking Color Sticker Tapes (65mm x 5mm, 10 pairs) " height="95" width="130"></a><br><a href="/store/index.php?main_page=product_info&products_id=1383">Blade Tracking Color Sticker Tapes (65mm x 5mm, 10 pairs)</a>        </td>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=1393"><img src="index.php_files/SNV30642j_MED.jpg" alt="Esky Head Lock Gyro" title=" Esky Head Lock Gyro " height="97" width="130"></a><br><a href="/store/index.php?main_page=product_info&products_id=1393">Esky Head Lock Gyro</a>        </td>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=1174"><img src="index.php_files/EK1-0331.jpg" alt="Ony way control link-King 2" title=" Ony way control link-King 2 " height="97" width="128"></a><br><a href="/store/index.php?main_page=product_info&products_id=1174">Ony way control link-King 2</a>        </td>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=1397"><img src="index.php_files/SNV30644j.jpg" alt="E-Sky Pitch Gauge" title=" E-Sky Pitch Gauge " height="97" width="130"></a><br><a href="/store/index.php?main_page=product_info&products_id=1397">E-Sky Pitch Gauge</a>        </td>
    </tr>   
    <tr>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=1166"><img src="index.php_files/EK1-0291.jpg" alt="Tail fins set-King 2" title=" Tail fins set-King 2 " height="97" width="128"></a><br><a href="/store/index.php?main_page=product_info&products_id=1166">Tail fins set-King 2</a>        </td>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=203"><img src="index.php_files/EK1-0312.jpg" alt="Plastic Blade A for Lama / Robins" title=" Plastic Blade A for Lama / Robins " height="97" width="130"></a><br><a href="/store/index.php?main_page=product_info&products_id=203">Plastic Blade A for Lama / Robins</a>        </td>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=1323"><img src="index.php_files/EK5-0208.jpg" alt="Alu. Central holder set -king" title=" Alu. Central holder set -king " height="97" width="128"></a><br><a href="/store/index.php?main_page=product_info&products_id=1323">Alu. Central holder set -king</a>        </td>
    <td class="centerBoxContentsAlsoPurch" style="width: 25%;"> 
    <a href="/store/index.php?main_page=product_info&products_id=1320"><img src="index.php_files/EK5-0203.jpg" alt="Alu. Swash plate - king" title=" Alu. Swash plate - king " height="97" width="128"></a><br><a href="/store/index.php?main_page=product_info&products_id=1320">Alu. Swash plate - king</a>        </td>
    </tr>   
 
        
    
    </tbody></table>
5 Jul 2007, 5:52 PM
#2
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

Should be /includes/modules/YOUR_TEMPLATE/also_purchased_products.php

Shirley :)

6 Jul 2007, 2:29 AM
#3
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

Shirster,

Real very thank you, you help me a lot. Thanks :clap:

Regards,
Jimmy

15 Aug 2007, 10:54 AM
#5
fabienne avatar

fabienne

Zen Follower

Join Date:
May 2007
Location:
Cincinnati, Ohio
Posts:
246
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

How do I get rid of that box at the bottom of the screen? The one which says "Customers who bought..." ? What is it called in the admin screen?

The Zen of cat.

15 Aug 2007, 11:01 AM
#6
fabienne avatar

fabienne

Zen Follower

Join Date:
May 2007
Location:
Cincinnati, Ohio
Posts:
246
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

The Self Help Desk strikes again: The Book, page 355:"From the admin main screen choose Configuration-->Minimum Values--->Also Purchased Products...Hint: If you do not want the center-box to ever appear, specify a very high value for this field." I specified 1,000,000.

This should work. Three cheers for the book. Worth every penny I paid for it.

The Zen of cat.

11 Sep 2007, 4:15 PM
#7
chacha_vintage avatar

chacha_vintage

New Zenner

Join Date:
Feb 2007
Location:
baltimore, md
Posts:
41
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

fabienne, thanks so much for sharing what you found! that's just what i was looking for!! :cool:


[
www.chacha-vintage.com: vintage fashion + original designs ]

30 Oct 2007, 12:56 AM
#8
easytouch2 avatar

easytouch2

New Zenner

Join Date:
Oct 2007
Location:
Vienna, Austria (Europe)
Posts:
5
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

Version 1.3.7

I disabled it in the file
includes/templates/template_default/templates/tpl_product_info_display.php

at line 233

<!--bof also purchased products module-->
<?php
/////////////////////////////////////////////
// robert - disable also purchased module
/* require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');
*/
?>
<!--eof also purchased products module-->

<!--bof Form close-->
</form>
<!--bof Form close-->
</div>
10 Nov 2007, 10:34 AM
#9
dhau avatar

dhau

New Zenner

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

Re: Customers who bought this product also purchased...

Let's say I want to change the text to say 'Customers who got this product also tried...'

Which file do I need to open in order to change that?

Thanks.

Daniel

11 Nov 2007, 7:25 AM
#10
highroller avatar

highroller

New Zenner

Join Date:
May 2007
Posts:
23
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

explorer1979:

Shirster,

Real very thank you, you help me a lot. Thanks :clap:

Regards,
Jimmy

Hello, I am having the same problem when viewing "Customers who Bought this product also purchased" box in FireFox . It is not aligned right like in Explorer. Can you let me know if this is the right code and what needs to be modified to fix it so it looks the same in all browers.

Thank you

<?php /** * Module Template * * Displays content related to "also-purchased-products" * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_modules_also_purchased_products.php 3206 2006-03-19 04:04:09Z birdbrain $ */ $zc_show_also_purchased = false; include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_ALSO_PURCHASED_PRODUCTS)); ?> <?php if ($zc_show_also_purchased == true) { ?> <div class="centerBoxWrapper" id="alsoPurchased"> <?php require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php'); ?> </div> <?php } ?>
12 Nov 2007, 12:37 AM
#11
dhau avatar

dhau

New Zenner

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

Re: Customers who bought this product also purchased...

Anyone?


Let's say I want to change the text to say 'Customers who got this product also tried...'

Which file do I need to open in order to change that?

Thanks.

Daniel


12 Nov 2007, 2:32 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Customers who bought this product also purchased...

A real handy tool to use is in the Tools ... Developers Tool Kit ...

In the bottom input box enter a piece of the text that you are looking for and select Catalog and click the Search button ...

It will locate all occurances of the text, code, etc. for you in all of the php files ... :smile:

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!

12 Nov 2007, 5:51 AM
#13
dhau avatar

dhau

New Zenner

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

Re: Customers who bought this product also purchased...

Wow, very nice.

Thank you.

Daniel

5 Dec 2007, 9:39 PM
#14
andy310 avatar

andy310

New Zenner

Join Date:
Oct 2007
Location:
Los Angeles / Simi Valley
Posts:
41
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

you have to finetune the css for use with all the browsers...
is not something you can do unless you know extensivly CSS.

for instance change the file you posted with

<?php echo "<div id="ALSOBOX">; require($template->get_template_dir('tpl_columnar_display.php',DIR_W S_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php'); echo "</div>"; ?>

then create a part in the CSS for ALSOBOX, make it be position relative and allign it right

BUT, chanches are some other CSS is active for the elements inside the box, changing your outcome of the whole thing. i would still give it a try.

as far as disabling the box goes, all you need to do is to change the Product maximum quantity to be 0, that way the box will not be shown at all. (not even compiled in.)

Need anything done on your zen cart Shop that other people said was impossible? send me a PM, I'll be happy to discuss the situation :)

13 Aug 2008, 2:08 AM
#16
stride_r avatar

stride_r

Zen Follower

Join Date:
Aug 2008
Posts:
115
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

you have to finetune the css for use with all the browsers... 
is not something you can do unless you know extensivly CSS.

for instance change the file you posted... 
...then create a part in the CSS for ALSOBOX, make it be position relative and allign it right

BUT, chanches are some other CSS is active for the elements inside the box, changing your outcome of the whole thing. i would still give it a try. 

In general, this info is correct but the much simpler means of addressing this issue is to NOT mess with or add markup to the template files if one doesn't have to. Instead, use the css stylesheet to target this specific division.

Whiteracing's layout issue (beyond some invalidly nested tables in the "alsoPurchased" output) is easily rectified by adding this line to the bottom of his stylesheet.css file:

#alsoPurchased {
	clear: both;
	margin-top: 30px;
}

Clean, simple, and uses css the way it was meant to. Don't alter templates unless one needs to!

15 Sep 2008, 6:33 AM
#17
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

The also purchased isn't showing up on my product detail page. I've set up 2 test accounts and ordered about 4 items but nothing. My minimum values are set to 1 in the admin, so I'm pretty sure it's activated. Is there anything I can do to test its working?

John Crumpton, Technical Director of Double Sided
Zen cart shop: Buy happie loves it

15 Sep 2008, 4:04 PM
#18
zzzoom avatar

zzzoom

New Zenner

Join Date:
Jan 2006
Posts:
54
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

I don't seem to see this feature working on my site. My site template has been customized, but the file also_purchased_products.php seems to be in the correct location.

I tried in IE and Firefox

Any advice?

tx

zzzoom

shirster:

Should be /includes/modules/YOUR_TEMPLATE/also_purchased_products.php

Shirley :)

15 Sep 2008, 10:02 PM
#19
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

It's now working! I just needed to run more orders through zen cart.

John Crumpton, Technical Director of Double Sided
Zen cart shop: Buy happie loves it

20 Sep 2008, 9:17 PM
#20
zzzoom avatar

zzzoom

New Zenner

Join Date:
Jan 2006
Posts:
54
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

Yes, it is in that location!

Now what???

zzzoom:

I don't seem to see this feature working on my site. My site template has been customized, but the file also_purchased_products.php seems to be in the correct location.

I tried in IE and Firefox

Any advice?

tx

zzzoom