Damian Posted January 23, 2018 Share Posted January 23, 2018 Czesc, jak moge wyswietlic w template prestashop 1.7 cene produktu pomnozona o jakas wartosc?? Potrzebuje pokazac na stronie produktu porownanie jego cen gdy zostanie zastosowany dany discount. Np. przy zamowieniu powyzej 5000zl cena bedzie $product.price * 0.87, przy zamowieniu powyzej 10000zl cena bedzie $product.price * 0,7 etc. Probowalem convertPrice price=$product.price*0.87 w prestashop 1.7 to nie dziala. Czy jest jakis inny sposob abym mogl wyswietlic cene produktu pomnozona przez jakas wartosc w prestashop 1.7? Dzieki Link to comment Share on other sites More sharing options...
Przemysław Suszek Posted January 24, 2018 Share Posted January 24, 2018 Damian, pokaż cały kod jaki udało Ci się napisać. Link to comment Share on other sites More sharing options...
Damian Posted January 24, 2018 Author Share Posted January 24, 2018 Czesc @mr.suchy udalo mi sie rozwiazac ten problem. To kod gdyby ktos potrzebowal: <p class="has-discount">{l s='$%price% DEALER $10k+ PRICE <span class="discount discount-percentage">30% OFF</span>' d='Shop.Theme.Catalog' sprintf=['%price%' => round($product.price_without_reduction * 0.7,0)]} 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