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

lgraf767

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

lgraf767's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Приветствую! Подскажите, есть задача использовать "Скидку" совместно с "Акцией". Проблема с отображением в карточке товара, старой и новой цены (см. фото). Я так понимаю проблема в этом коде: <script type="text/javascript"> function process_discounts(price, quantity) { <?php foreach ($dicounts_unf as $discount) { echo 'if ((quantity >= '.$discount['quantity'].') && ('.$discount['price'].' < price)) price = '.$discount['price'].';'."\n"; } ?> return price; } </script> Этот скрипт заменяет все $price на цену со скидкой, так вот как оставить старую перечеркнутую цену?
Guest
×
  • 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.