Forums / Templates, Stylesheets, Page Layout / Change position of price on product page

Change position of price on product page

Started by ddandlamber on 17 Apr 2011, 7:02 PM · Views: 1,460

Results 1 to 6 of 6
17 Apr 2011, 7:02 PM
#1
ddandlamber avatar

ddandlamber

New Zenner

Join Date:
Apr 2011
Posts:
15
Plugin Contributions:
0

Change position of price on product page

Hello,

I need help on changing the product price position on the product page to be just to the left of the add to cart button. Here is a link:
http://www.ddandlamber.com/index.php?main_page=product_info&cPath=2_3&products_id=4

Currently it's to the far left under the description but I would like it to be next to the add to cart button and just a tad to the left of it.

Thanks,
Amber

18 Apr 2011, 3:52 AM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Change position of price on product page

could try adding something like this to your stylesheet.css

#productPrices {
width:100%;
margin-left:75%;
}

Hope this helps!

19 Apr 2011, 3:22 AM
#3
ddandlamber avatar

ddandlamber

New Zenner

Join Date:
Apr 2011
Posts:
15
Plugin Contributions:
0

Re: Change position of price on product page

Beautiful! It worked. Thank you. It's not just to the left, but it's directly over the "add to cart" and I played around with the % to get it in just the right spot.

Thank you so much!
Amber

19 Apr 2011, 3:31 AM
#4
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Change position of price on product page

Glad this worked for you!

Looks good BTW :bigups:

19 Apr 2011, 4:08 AM
#5
ddandlamber avatar

ddandlamber

New Zenner

Join Date:
Apr 2011
Posts:
15
Plugin Contributions:
0

Re: Change position of price on product page

Thank you!

19 Apr 2011, 4:25 AM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Change position of price on product page

To position the price on the left side of the Add to cart try this please:

  1. includes/templates/elegance_lite/templates/ tpl_product_info_display.php
  2. you will move this line right above the <!--bof Add to Cart Box -->> <!--bof Product Price block -->
<h2 id="productPrices" class="productGeneral"> <?php // base price if ($show_onetime_charges_description == 'true') { $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />'; } else { $one_time = ''; } echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']); ?></h2> <!--eof Product Price block -->
  1. The key is to add this right after the <!--eof Product Price block -->
  2. <br class="clearBoth" />
  3. Then you will edit your stylesheet.css to control the spacing..

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.