grossiste Posted March 12, 2016 Share Posted March 12, 2016 Bonjour, J'aimerais afficher GRATUIT quand les prix sont a zero euro sur les pages catégories et sur la page produits. version 1.6, avec theme. Site: http://www.thefreeglasses.com Pouvez vous m'aiguiller. Merci Link to comment Share on other sites More sharing options...
grossiste Posted March 12, 2016 Author Share Posted March 12, 2016 Je pense que ca devrait etre dans cette parti: <div class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} {hook h="displayProductPriceBlock" product=$product type='before_price'} <span class="price product-price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} {hook h="displayProductPriceBlock" product=$product type="old_price"} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"} {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {hook h="displayProductPriceBlock" product=$product type='after_price'} {/if} Link to comment Share on other sites More sharing options...
grossiste Posted March 12, 2016 Author Share Posted March 12, 2016 Je pense qu'il faudrait marque si le prix = 0 alors afficher GRATUIT quelque chose comme ca. Vous savez comment faire ca? Link to comment Share on other sites More sharing options...
grossiste Posted March 12, 2016 Author Share Posted March 12, 2016 Je pense qu'il faudrait marque si le prix = 0 alors afficher GRATUIT quelque chose comme ca. Vous savez comment faire ca? <div class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} {hook h="displayProductPriceBlock" product=$product type='before_price'} <span class="price product-price"> {if $product.price==0}{l s='FREE'}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} {hook h="displayProductPriceBlock" product=$product type="old_price"} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"} {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {hook h="displayProductPriceBlock" product=$product type='after_price'} {/if} J'ai reussi dans les pages categories, mais dans la page produits, je trouve pas du tout, <!-- prices --> <div class="price"> <p class="our_price_display" itemprop="offers" itemscope itemtype="https://schema.org/Offer">{strip} {if $product->quantity > 0}<link itemprop="availability" href="https://schema.org/InStock"/>{/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display" class="price" itemprop="price" content="{$productPrice}">{convertPrice price=$productPrice|floatval}</span> {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) || !isset($display_tax_label))} {if $priceDisplay == 1} {l s='tax excl.'}{else} {l s='tax incl.'}{/if} {/if} <meta itemprop="priceCurrency" content="{$currency->iso_code}" /> {hook h="displayProductPriceBlock" product=$product type="price"} {/if} {/strip}</p> <p id="reduction_amount" {if $productPriceWithoutReduction <= 0 || !$product->specificPrice || $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|floatval ==0} style="display:none"{/if}>{strip} <span id="reduction_amount_display"> {if $product->specificPrice && $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|floatval !=0} -{convertPrice price=$productPriceWithoutReduction|floatval-$productPrice|floatval} {/if} </span> {/strip}</p> Link to comment Share on other sites More sharing options...
grossiste Posted March 12, 2016 Author Share Posted March 12, 2016 Pouvez vous m'aidez? Vous etes des pro Link to comment Share on other sites More sharing options...
grossiste Posted March 14, 2016 Author Share Posted March 14, 2016 personne? Link to comment Share on other sites More sharing options...
grossiste Posted March 14, 2016 Author Share Posted March 14, 2016 Je donne 10 euro a celui qui me dit juste le code a modifier. avec les motifs a faire. sur les pages produits: http://www.thefreeglasses.com/classic-eyeglasses/23-eyeglasses-henry.html sur les block specials et nouveau produits: http://www.thefreeglasses.com/12-hot-trendy-eyeglasses sur le panier http://www.thefreeglasses.com/order Link to comment Share on other sites More sharing options...
grossiste Posted March 14, 2016 Author Share Posted March 14, 2016 J'ai un peu reussi avec ca: <div class="price"> <p class="our_price_display" itemprop="offers" itemscope itemtype="https://schema.org/Offer">{strip} {if $product->quantity > 0}<link itemprop="availability" href="https://schema.org/InStock"/>{/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display" class="price" itemprop="price" content="{$productPrice}">{if $productPrice>0}{convertPrice price=$productPrice|floatval}{else}{l s='FREE'}{/if}</span> mais le probleme c'est que le mot FREE s'affiche une seconde et le prix 0 se re-affiche 1 seconde plus tard. Link to comment Share on other sites More sharing options...
grossiste Posted March 14, 2016 Author Share Posted March 14, 2016 J'ai trouver il suffit d'effacer span id="our_price_display" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now