d.crysty23 Posted February 25, 2014 Share Posted February 25, 2014 Do you know how I could arrange the price so that it would be on the left, while "availability" and "items in stock" to be on the right? I've attached a link to the site and the respective codes product.tpl file...price tag,availability tag,number of items tag <div class="price"> <p class="our_price_display"> {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display">{convertPrice price=$productPrice}</span> <!--{if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if}--> {/if} </p> {if $product->on_sale} <img src="{$img_dir}onsale_{$lang_iso}.gif" alt="{l s='On sale'}" class="on_sale_img"/> <span class="on_sale">{l s='On sale!'}</span> {elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutReduction > $productPrice} <span class="discount">{l s='Reduced price!'}</span> {/if} {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> <!-- availability --> <p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> <span id="availability_label">{l s='Availability:'}</span> <span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span> </p> <p id="availability_date"{if ($product->quantity > 0) OR !$product->available_for_order OR $PS_CATALOG_MODE OR !isset($product->available_date) OR $product->available_date < $smarty.now|date_format:'%Y-%m-%d'} style="display: none;"{/if}> <span id="availability_date_label">{l s='Availability date:'}</span> <span id="availability_date_value">{dateFormat date=$product->available_date full=false}</span> </p> <!-- number of item in stock --> Thanks in advance http://www.3bwine.com/CRISTY/prestashop/index.php?id_product=1&controller=product Link to comment Share on other sites More sharing options...
vekia Posted February 25, 2014 Share Posted February 25, 2014 use this: #availability_statut, #pQuantityAvailable {text-align:right;} (just paste it for example to product.css file) effect: Link to comment Share on other sites More sharing options...
d.crysty23 Posted February 25, 2014 Author Share Posted February 25, 2014 and what should I add if I want it to be in line with the price? Thanks! Link to comment Share on other sites More sharing options...
d.crysty23 Posted February 25, 2014 Author Share Posted February 25, 2014 #availability_statut { margin: -45px 0 0 0; min-width: 255px; } It is ok? Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 you can also use float params, then these blocks will be displayed inline Link to comment Share on other sites More sharing options...
PROMOTE IT Posted February 26, 2014 Share Posted February 26, 2014 float is much better for the future, when doing any changes to the theme Link to comment Share on other sites More sharing options...
Recommended Posts