Jump to content

Afficher le prix à gauche du bouton "ajouter au panier"


Recommended Posts

Bonsoir,

 

Je voudrais essayer de mettre le prix à gauche du bouton ajouter au panier sur la fiche produit (je suis sous PS 1.6.0.6), le problème c'est ces appels sont gréffés sur 2 span différents, et je souhaiterais avoir des conseils sur comment le faire.

 

Voici le code en question :

<div class="content_prices clearfix">
				<!-- prices -->
				{if $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
				
				{if $product->specificPrice AND $product->specificPrice.reduction && $product->specificPrice.reduction > 0}
					<p id="old_price">
					{if $priceDisplay >= 0 && $priceDisplay <= 2}
						{if $productPriceWithoutReduction > $productPrice}
							<span id="old_price_display">{convertPrice price=$productPriceWithoutReduction}</span>							
						{/if}
					{/if}					
					</p>
				{/if}
				<div class="price">
					<p class="our_price_display">
					{if $priceDisplay >= 0 && $priceDisplay <= 2}
						<span id="our_price_display">{convertPrice price=$productPrice}</span>						
					{/if}
					</p>
					
					{if $priceDisplay == 2}
						<br />
						<span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span> {l s='tax excl.'}</span>
					{/if}
				</div>
				{if $packItems|@count && $productPrice < $product->getNoPackPrice()}
					<p class="pack_price">{l s='Instead of'} <span style="text-decoration: line-through;">{convertPrice price=$product->getNoPackPrice()}</span></p>
					<br class="clear" />
				{/if}
				{if $product->ecotax != 0}
					<p class="price-ecotax">{l s='Include'} <span id="ecotax_price_display">{if $priceDisplay == 2}{$ecotax_tax_exc|convertAndFormatPrice}{else}{$ecotax_tax_inc|convertAndFormatPrice}{/if}</span> {l s='For green tax'}
						{if $product->specificPrice AND $product->specificPrice.reduction}
						<br />{l s='(not impacted by the discount)'}
						{/if}
					</p>
				{/if}
				{if !empty($product->unity) && $product->unit_price_ratio > 0.000000}
					 {math equation="pprice / punit_price"  pprice=$productPrice  punit_price=$product->unit_price_ratio assign=unit_price}
					<p class="unit-price"><span id="unit_price_display">{convertPrice price=$unit_price}</span> {l s='per'} {$product->unity|escape:'htmlall':'UTF-8'}</p>
				{/if}
				{*close if for show price*}
				{/if}
				{if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}
					<span class="exclusive">						
						{l s='Add to cart'}
					</span>
				{else}
					<p id="add_to_cart" class="buttons_bottom_block">						
						<input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" />
					</p>
				{/if}
				{if isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS}{$HOOK_PRODUCT_ACTIONS}{/if}
	
				<div class="clear"></div>
			

Auriez vous une idée?

 

Merci d'avance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...