Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

10% от стоимости товара


Leva888
 Share

Recommended Posts

Приветствую,

Кто знает как вывести в карточке товара следующие данные

 

"Этот товар можно купить в кредит с первоначальным взносом 940.91 руб." при том что товар стоит 9409.1

 

Т.е. как я понял нужно просто в карточку товара вставить небольшую формулу типа price/10 =res и echo (res) (ну это так, схематично)

 

Вопрос заключается как написать такую формулу чтобы opencart воспринял ее и вывел результат?

 

Спасибо

Link to comment
Share on other sites


хоть бы кто мысли свои накидал, может пришли бы к какому-нибудь решению, а то все только смотрят и молчат

Link to comment
Share on other sites


опять тему можно закрывать. Решение.

 

Этот товар можно купить в кредит с первоначальным взносом <span style="font-size: 23px; font-style: italic;"><?php echo ($price / 10); ?> руб.</span>

Все гениальное просто

Edited by Leva888
Link to comment
Share on other sites


  • 6 months later...
  • 5 months later...

опять тему можно закрывать. Решение.

Этот товар можно купить в кредит с первоначальным взносом <span style="font-size: 23px; font-style: italic;"><?php echo ($price / 10); ?> руб.</span>

Все гениальное просто

 

Сделал как описано выше но цена почемуто округляется вместо 2250 пишет 22 или 20

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
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.