Jump to content

Nettó és Bruttó árak


Gable

Recommended Posts

Üdv Mindenkinek!

 

Valaki tudna segíteni, hogy az új Prestashop 1.6.X-ben (default-bootstrap sablon-ban) a product.tpl módosításával az áraim máshogy jelenenek meg?

 

Mind a nettó és a bruttó ár jelenjen meg:

 

# ### Ft + áfa

# ### Ft (Bruttó)

 

Arra rájöttem, hogy ez írja ki a bruttó árat: {convertPrice price=$productPrice|floatval} (264. sor körül)

(persze ez a prestashop beállításától függ, mert a következő feltétel azt vizsgálja, hogy mi van megjelenítve és ennek megfelelően ír oda egy stringet pl: "Adóval")

 

Illetve ha a termék akciós akkor:

 

# ### Ft + áfa

# ### Ft + áfa (Akció)

# ### Ft (Bruttó)

 

A segítséget előre is köszönöm.

Link to comment
Share on other sites

Példák:
 

{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)} {l s='(tax excl.)'}

<span id="our_price_display" itemprop="price">{convertPrice price=$productPrice}</span>

...

{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)} 

...

{convertPrice price=$product.price / 1.27} {l s='(tax excl.)'}

...

{convertPrice price=$product.price_tax_exc}
Link to comment
Share on other sites

  • 3 weeks later...


{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)} {l s='(tax excl.)'}

=> ez kijelzi az árat nettóban

 

<span id="our_price_display" itemprop="price">{convertPrice price=$productPrice}</span>

=> ez kijelzi az árat bruttóban

 

...

 

{convertPrice price=$product.price / 1.27} {l s='(tax excl.)'}

=> ez egy manuális megoldás, kiszámolja a nettó árat úgy, hogy a bruttót elosztja az áfával

 

...

 

{convertPrice price=$product.price_tax_exc}

=> ez szintén kijelzi a nettó árat, de nem mindegyik verzióban működik

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

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