Search the Community
Showing results for tags 'lowest'.
-
I will try to explain you my problem with an example. I have 2 clients (Client A, B), 2 groups (Group 1, 2) and 1 product in my shop. The product has 2 specific prices: Price of 1Euro for "group1" Price of 2Euros for "group2" Client A belongs to group2 and Client B belongs to group1 and group2. They both have "default group" "group2", which means that when both clients check the product they both will have a price of 2Euros. Now what I'm trying to do is for every client to get the cheapest price of all the groups that they belong to. Any ideas where to start with this problem? I could change PrestaShop's code to do this but that it's not the point. I want to do that threw a module. Does anyone have an idea of what classes need to be overwritten or if a hook is available for this purpose? If someone could send me in the right direction it would be awesome. Thank you in advance
-
Hi all, In product.tpl AND product-list.tpl, I need to change: - the original product price for: - the lowest of the prices with quantity discount (when applicable). I've been playing with this code… {if $product.quantity_discounts} {if $quantity_discount.price != 0 OR $quantity_discount.reduction_type == 'amount'}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$productPrice-$quantity_discount.real_value|floatval} {/if} {/if} … but I'm not a programmer and I don't know what I am actually doing, so it didn't work. I think it would be useful for many other people to find an easy solution. ANY IDEAS? THANKS!!!
- 1 reply
-
- product-list.tpl
- product.tpl
-
(and 5 more)
Tagged with: