Gable Posted November 3, 2015 Share Posted November 3, 2015 Ü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 More sharing options...
pattila01 Posted November 3, 2015 Share Posted November 3, 2015 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 More sharing options...
Gable Posted November 6, 2015 Author Share Posted November 6, 2015 Megkérhetnélek, hogy írd oda a sorokhoz, hogy melyik mit csinál? Link to comment Share on other sites More sharing options...
pattila01 Posted November 24, 2015 Share Posted November 24, 2015 {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 1 Link to comment Share on other sites More sharing options...
Gable Posted December 9, 2015 Author Share Posted December 9, 2015 Sokat segítettél, köszönöm szépen! 1 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