Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / 'Customers also purchased' layout

'Customers also purchased' layout

Views: 887

Results 1 to 5 of 5
15 Sep 2012, 5:26 PM
#1
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

'Customers also purchased' layout

Can anyone help with a styling issue here

Trying to get the 'Also Purchased' items to be on the same line, similar to the Recently Viewed layout.

Not sure what I am missing.

15 Sep 2012, 5:48 PM
#2
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Re: 'Customers also purchased' layout

I am needing the following:

div class = "centerBoxContentsAlsoPurch centeredContent back" style="width:50%;"
div class = "centerBoxContentsAlsoPurch centeredContent forward" style="width:50%;"

Not entirely sure what needs to be added to the stylesheet.

15 Sep 2012, 5:58 PM
#3
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Re: 'Customers also purchased' layout

Resolved.

I think thinking out loud fixes most issues...

15 Sep 2012, 6:26 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,792
Plugin Contributions:
14

Re: 'Customers also purchased' layout

And.. After discussing the problem with ones self and answering ones self. One of those two should be kind enough to let others know what it took to fix the problem. Just in case someone else is not answering their self.:P

15 Sep 2012, 6:47 PM
#5
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Re: 'Customers also purchased' layout

I modified /includes/modules/also_purchased_products.php

while (!$also_purchased_products->EOF) {
$also_purchased_products->fields['products_name'] = zen_get_products_name($also_purchased_products->fields['products_id']);
$list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsAlsoPurch centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => (($also_purchased_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $also_purchased_products->fields['products_image'], $also_purchased_products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . $also_purchased_products->fields['products_name'] . '</a>');