vmthang Posted February 14, 2015 Share Posted February 14, 2015 Hello, I follow the post below and the site displays correct product price with and without VAT. However I have a problem that is if a customer registered with VAT number, their cart will display Zero VAT!! This only happens with customer with VAT number which is a required field in customer registration process for us. Anybody can help please? Thank you. AKJV, on 17 Oct 2011 - 2:47 PM, said: Hi KubitDesign,Not sure if you still need any help with this, but I just helped someone else with a similar request and the code change below works in PS 1.4.4.For homefeatured:Copy /modules/homefeatured/homefeatured.tpl to themes/your_theme/homefeatured/ (create the latter folder yourself) and change in copied homefeatured.tpl this (line 44): {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if}in: {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{l s='tax excl.' mod='homefeatured'} {convertPrice price=$product.price_tax_exc}<br />{l s='tax incl.' mod='homefeatured'} {convertPrice price=$product.price}{/if}</span></p>{else}<div style="height:21px;"></div>{/if}For product-lists:Change in /themes/your_theme/product-list.tpl this (line 43): {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if}in: {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{l s='tax excl.'} {convertPrice price=$product.price_tax_exc}<br />{l s='tax incl.'} {convertPrice price=$product.price}{/if}</span><br />{/if}For product pages:Change in /themes/your_theme/product.tpl this (lines 254-259): {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}in: {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span> {l s='tax excl.'}</span><br /> <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}Change 'tax incl/tax excl' in whatever you prefer.Hope this helps. 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