If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Help! "Price" and "Add to cart" in Horizontal position?

Help! "Price" and "Add to cart" in Horizontal position?

Locked

Started by biojohn on 21 Nov 2007, 9:14 PM · Views: 1,646

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
21 Nov 2007, 9:14 PM
#1
biojohn avatar

biojohn

New Zenner

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

Post #1 by biojohn

:huh:

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.

21 Nov 2007, 9:58 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

Pics are ok but for direct assistance post your site url

Zen-Venom Get Bitten

26 Nov 2007, 7:40 AM
#3
biojohn avatar

biojohn

New Zenner

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

Post #3 by biojohn

My site is: https://www.bioland-sci.com. Thanks.

28 Nov 2007, 4:25 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

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

3 Dec 2007, 11:34 PM
#5
biojohn avatar

biojohn

New Zenner

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

Post #5 by biojohn

Hi, Kobra. Thank you very much for your reply. That's nice but I have very little knowledge of php programming.

5 Dec 2007, 10:04 AM
#7
mypashop avatar

mypashop

New Zenner

Join Date:
Oct 2007
Location:
France & Luxembourg
Posts:
37
Plugin Contributions:
0

Post #7 by mypashop

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

case 'PRODUCT_LIST_PRICE':
        $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
        $lc_align = 'right';
        $lc_text =  '$lc_price;

to

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>';

and add the style definition to your stylesheet
:clap: