Prestashop 1.6.1.4 not stacking discounts and showing wrong price - prestashop

I have a problem with my Prestashop: If a product only have quantity discounts the total price shown in the cart is correct, but when I also apply a category general discount (from Price Rules) that involves a product that also had a quantity discount, the last one overrides the category discount.
In the product template (product.tpl) price is correct (I mean, both discounts are applied, firstly the category discount and then the quantity discount) but in the shopping cart only quantity discount is applied.
Is there a way to achieve stacking of these discounts?
Thank you in advanced!

Related

Price calculations (tax and discount)

What is the correct way of calculating product (and order) prices when a coupon is applied (considering the product is taxable). I've noticed that the taxes and discounts are disconnected. They are both applied on product's row price (and then summed up for the total price). I need to apply the tax on discounted product price:
(price - discount) + tax(discounted price)
What is the best approach to implement such calculation?
This behavior is not customizable from UI.
But you can change it in customization:
Decorate OrderLineItemMapper or OrderMapper, depending on your requirements
Use there a price with an applied discount that you can fetch from oro_promotion.promotion_executor service.

Get all products from subcategory in bigcommerce

So I'm customizing a bigcommerce website and we've got a design that calls for a category page being broken up into it's subcategories. So for instance:
Parent Category
Sub Category
product product product product product product product product product product product product product product
Sub Category
product product product product product product product product product product product product product product
Unfortunately the bigcommerce subcategory object is currently very limited. In the docs it says:
subcategories - List of any child categories id - Unique ID for the
subcategory
name - Name of the subcategory
url- URL to the subcategory
description - Merchant-defined description of the
subcategory
image - Image representing this subcategory, in Stencil
image format
product_count - Number of products in the subcategory.
(Counts at the current level only – not recursive to deeper levels.)
So My question is if somebody has found a clever way around this to get the subcategory products.

Calculate price using percentage from product field

I'm using drupal commerce module and drive with pricing rule problem. User and product have percentage fields, which are discount values separately. Final discount gathered from sum of this fields. How can I calculate line item price with discount fields?

how to set discount price for multiple products in prestashop

I am using prestashop version 1.5.4.1
I am need to set clearance sale offer to my shopping site (particular date).
In particular date i need to set discount price for all products in my products by common.
EXAMPLE : I have 250 products in my catalog. I need to discount price $100 for all products from june-24 to june 30. How to set in a one click
You can easily set a "Catalog price rule" in your PrestaShop Back-office.
Go to "Price rules > Catalog price rule" and create a new rule.
It will allow you to select various criteria and the amount or percentage of reduction you would like to apply to all the related products.
You can also cumulate the criteria, example:
For all products in the "T-shirts" category
With "XXXXX" as a Manufacturer
and with the color "Blue"
=> Apply a discount of 30%
Regards,

Product magento discount in Magento table - sales_flat_order_item

If I apply a discount on a product in Magento and make an order...
example: SKU 9999999 Regular $100, Special this week: $95
If I do a query on files sales_flat_order_item and sales_flat_order, where would I find the regular price?
I don't see why you'd need to do this in SQL, but you could look up the product id/sku in the flat products table (I forget its name off the top of my head), and then find the regular price in there.