Zen Follower
- Join Date:
- Feb 2007
- Location:
- Ontario, Canada
- Posts:
- 234
- Plugin Contributions:
- 0
Changing "Also Purchased" Display
I am changing the also purchased display to include just the manufacturer name, then the model number then the price. The problem is the price shows as whatever the current product they are viewing. IE if the product is $16.33 the price on all the Also Purchased products is $16.33.
[B]
$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"' . ' ' . '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 />') . $products_manufacturer . '<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_model'] . '</a><br />' . $products_price);
[/B]
I added the model part to the includes\classes\db\mysql\define_queries.php file, but I can't seem to get the price to come also.
Thanks, Colleen
www.af-company.com
To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978