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

Виведено три ціни. Зробити, щоб працювало все.


Recommended Posts

Виведено в адмінці:
config_min_price_m_opt - порог малого опту;
config_min_price_v_opt - порог великого опту;

Добавлено в oc_product і виведено на сайт (всюди, крім checkout/oct_fastorder):
price_m_opt - ціна малий опт;
price_v_opt - ціна великий опт;

Всі зміни в модифікаторі.

Що потрібно.
1)Змінити вивід цін за шаблоном всюди. total_m_opt та total_v_opt видумані змінні :)

config_min_price_m_opt - total_m_opt(сума малий опт) > 0 
<span class="rm-module-price-actual text-primary mb-1 d-block"><p class="text-success" style="display: inline;">Кр.Опт - </p>{{ product.price_v_opt }}</span>
<span class="rm-module-price-actual text-primary mb-1 d-block"><p class="text-warning" style="display: inline;">Опт - </p>{{ product.price }}</span>
<span class="rm-module-price text-primary mb-1" style="display: block;box-shadow: 0px 0px 3px 1px #dc3545;"><p class="text-success" style="display: inline;">М.Опт - </p>{{ product.price_m_opt }}</span>
total_v_opt(сума великий опт) - config_min_price_v_opt > 0
<span class="rm-module-price text-primary mb-1" style="display: block;box-shadow: 0px 0px 3px 1px green;"><p class="text-success" style="display: inline;">Кр.Опт - </p>{{ product.price_v_opt }}</span>
<span class="rm-module-price-actual text-primary mb-1 d-block"><p class="text-warning" style="display: inline;">Опт - </p>{{ product.price }}</span>
<span class="rm-module-price-actual text-primary mb-1 d-block"><p class="text-danger" style="display: inline;">М.Опт - </p>{{ product.price_m_opt }}</span>
{% else %}
<span class="rm-module-price-actual text-primary mb-1 d-block"><p class="text-success" style="display: inline;">Кр.Опт - </p>{{ product.price_v_opt }}</span>
<span class="rm-module-price text-primary mb-1" style="display: block;box-shadow: 0px 0px 3px 1px #ffc107;"><p class="text-success" style="display: inline;">Опт - </p>{{ product.price }}</span>
<span class="rm-module-price-actual text-primary mb-1 d-block"><p class="text-danger" style="display: inline;">М.Опт - </p>{{ product.price_m_opt }}</span>

2) За цією ж логікою добавити клас/дів до кошика зверху на сайті (я добавлю стилі для різної суми)
3) Добавити три ціни товара за логікою до checkout/oct_fastorder
4) Сума замовлення та ціни мають вірно потрапляти в адмінку, в залежності від тотал, на момент замовлення.
5) Добавити кратно мінімуму на кнопки та в поле вводу всюди, де є вибір кількості.

 

Пишіть, будь ласка, в особисті. По можливості приблизний час виконання та ціну.

Спасибі за увагу.

  • +1 1
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.