Jump to content

Prijzen exclusief BTW en inclusief BTW


Mickyb75

Recommended Posts

  • 3 months later...

Hoi Tellme,

 

Ik weet niet waar je precies prijzen met en zonder btw wilt tonen: homepage (homefeatured), productenlijsten of op de productpagina's. Waarschijnlijk overal :) Hieronder staan de veranderingen die je kan proberen. Ik heb het zo net getest en het werkt (in elk geval in PS 1.4.4.), maar waarschijnlijk moet je wel zelf nog de layout/style aanpassen.

 

In PS 1.3.7:

 

Voor homepage/homefeatured:

1) kopieer /modules/homefeatured/homefeatured.tpl naar /themes/jouw_theme/homefeatured/ (laatste folder zelf aanmaken)

 

2) en verander in gekopieerde homefeatured.tpl dit (regel 18):

<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>

in:

<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price} {l s='tax incl.' mod='homefeatured'}<br />{convertPrice price=$product.price_tax_exc} {l s='tax excl.' mod='homefeatured'}{/if}</span></p>

 

Voor productenlijsten:

Verander in /themes/jouw_theme/product-list.tpl dit (regel 18):

<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />

in:

<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price} {l s='tax incl.'}<br />{convertPrice price=$product.price_tax_exc} {l s='tax excl.'}{/if}</span><br />

 

Voor productpagina's:

Verander in /themes/jouw_theme/product.tpl dit (regels 196-205):

<span class="our_price_display">
{if !$priceDisplay || $priceDisplay == 2}
 <span id="our_price_display">{convertPrice price=$product->getPrice(true, $smarty.const.NULL, 2)}</span>
  {if $tax_enabled}{l s='tax incl.'}{/if}
{/if}
{if $priceDisplay == 1}
 <span id="our_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span>
  {if $tax_enabled}{l s='tax excl.'}{/if}
{/if}
</span>

in:

<span class="our_price_display">
{if !$priceDisplay || $priceDisplay == 2}
 <span id="our_price_display">{convertPrice price=$product->getPrice(true, $smarty.const.NULL, 2)}</span>
  {if $tax_enabled}{l s='tax incl.'}{/if}<br />
 <span id="our_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span>
  {if $tax_enabled}{l s='tax excl.'}{/if}	
{/if}
{if $priceDisplay == 1}
 <span id="our_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span>
  {if $tax_enabled}{l s='tax excl.'}{/if}
{/if}
</span>

 

Dit zou, als je btw weergave in je beheersysteem aangevinkt hebt, prijzen met en zonder btw onder elkaar moeten laten zien. Vertaal 'tax incl' en 'tax excl' nog wel in het Nederlands in je beheersysteem. En vergeet niet om 'Force compile' tijdelijk aan te zetten en dat page refresh te doen om deze veranderingen door te voeren.

 

 

Voor Mickyb75 (hoewel zijn post al oud is) geldt hetzelfde, maar dan deze code voor PS 1.4.4:

 

Voor homepage/homefeatured:

Verander in gekopieerde homefeatured.tpl dit (regel 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}{convertPrice price=$product.price} {l s='tax incl.' mod='homefeatured'}<br />{convertPrice price=$product.price_tax_exc} {l s='tax excl.' mod='homefeatured'}{/if}</span></p>{else}<div style="height:21px;"></div>{/if}

 

Voor productenlijsten:

Verander in /themes/jouw_theme/product-list.tpl dit (regel 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}{convertPrice price=$product.price} {l s='tax incl.'}<br />{convertPrice price=$product.price_tax_exc} {l s='tax excl.'}{/if}</span><br />{/if}

 

Voor productpagina's:

Verander in /themes/jouw_theme/product.tpl dit (regels 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="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}<br />
  <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span> {l s='tax excl.'}</span>
 {/if}

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Hoi Tellme,

 

Goed te weten dat het werkt in PS 1.3.7 en ik ben blij voor je dat je hiermee geholpen bent!

 

mooie uitleg!

ik gebruik alleen prestashop 1.5, daar heb ik het in geprobeerd en het werkt niet...

als ik de verhalen zo goed lees, is he wel precies waar ik al heel lang naar op zoek ben..

 

ik hoop dat jij mij kunt helpen! :)

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...