Jump to content
Damian

Cena pomnozona o wartosc prestashop 1.7

Recommended Posts

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

Share this post


Link to post
Share on other sites

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)]}

 

  • Like 1

Share this post


Link to post
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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More