Captain Harlock Posted October 13, 2016 Share Posted October 13, 2016 (edited) 0 down vote favorite Greetings ! I am on Prestashop 1.6. When a user is a guest or a member, the mention "tax excl." is displayed next to the price in the products sheets. Like this : I would like this text to appear also for the visitors. For visitors, it currently shoows like this : Thank you in advance for your help ! Edited October 18, 2016 by Captain Harlock (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted October 13, 2016 Share Posted October 13, 2016 Hi, this is simple to accomplish in PrestaShop. The display is based on a country by country basis. back office-->localization-->countries-->edit country scroll to bottom of page, there you can enable/disable display tax inc/excluded. Happy day, el Link to comment Share on other sites More sharing options...
Captain Harlock Posted October 13, 2016 Author Share Posted October 13, 2016 The "tax display" is already enable for every country. I guess that's why logged user can see the "tax excl" label. But still, it won't display for the visitors. Link to comment Share on other sites More sharing options...
El Patron Posted October 13, 2016 Share Posted October 13, 2016 sorry I better understand now, maybe this helps back office-->customers-->groups edit group 'visitor'/'guest' price display method-->change there Link to comment Share on other sites More sharing options...
Captain Harlock Posted October 13, 2016 Author Share Posted October 13, 2016 Thank you but that's already the case. The price showed to the guests is indead tax excluded, but the label still doesn't show. :/ Link to comment Share on other sites More sharing options...
El Patron Posted October 13, 2016 Share Posted October 13, 2016 if default theme, then i cannot guess at issue if non-default theme I suspect your theme... this is of course assuming between the two of us we got config right...lol Link to comment Share on other sites More sharing options...
Captain Harlock Posted October 14, 2016 Author Share Posted October 14, 2016 Well, in /theme/default-bootstrip/product.tpl, about the line 260, I got the following code : <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> I am pretty sure that's the default code, but if anyone has something else and the label "tax excl" appears even for guest, tell me Link to comment Share on other sites More sharing options...
Captain Harlock Posted October 18, 2016 Author Share Posted October 18, 2016 I think I found the solution. In product.tpl, replace <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} With : <span id="our_price_display" class="price" itemprop="price" content="{$productPrice}">{convertPrice price=$productPrice|floatval}</span> {if $priceDisplay == 1} {l s='tax excl.'}{else} {l s='tax incl.'}{/if} 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