I need help to change the style of product listing from picture1 (price and add are vertical) to picture2 (price and add are horizontal). Thanks.
I need help to change the style of product listing from picture1 (price and add are vertical) to picture2 (price and add are horizontal). Thanks.
Last edited by biojohn; 21 Nov 2007 at 10:17 PM.
Pics are ok but for direct assistance post your site url
Zen-Venom Get Bitten
My site is: www.bioland-sci.com. Thanks.
You are going to have to re-order these in a copy of the tpl_product_info_display.php file and pay attention to the clear both entries that force a new line. You do not want one of those between the items you are attempting to align as in your pic.
Once re-ordered, a bit of css to refine placement will be required as initially it will not look as you want.
Zen-Venom Get Bitten
Hi, Kobra. Thank you very much for your reply. That's nice but I have very little knowledge of php programming.
I'm so glad that I found the solution in the following thread. Keep reading and searching, I like it!
http://www.zen-cart.com/forum/showth...ct_listing.php
One more question, how to remove the border of the heading title like catalog#? Help is appreciated!
Last edited by biojohn; 4 Dec 2007 at 08:34 AM.
thanks biojohn for sharing the solution found in another thread. Thanks to ajeh for the solution.
My scenario is a litte different. I want to wrap a span or other block around price, in order to apply a class.
Even the special product price seems to work correctly, inheriting the style from the price class.
You would need to customize:
/includes/modules/products_listing.php
And change the case statement for
case 'PRODUCT_LIST_PRICE':
Copy the file to your templates and overrides directory ...
change
toPHP Code:case 'PRODUCT_LIST_PRICE':
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
$lc_align = 'right';
$lc_text = '$lc_price;
and add the style definition to your stylesheetPHP Code:case 'PRODUCT_LIST_PRICE':
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
$lc_align = 'right';
$lc_text = '<span class="price">' .$lc_price . '</span>';
![]()