Jump to content

Edit History

ayylmaoohnoes

ayylmaoohnoes

Hi,

I'm writing a module for prestashop 1.6.1. Mostly an integration with my team's product focused on invoices.

 

I have two issues that I'd like to discuss about:

1. If the selected discount is "Free shipping", the field "free_shipping" in order_cart_rule table does not update.

66ebe67657.png

On included screen, the row with id_order_cart_rule equal to 8 was added via "free shipping". Sole row was created correctly, however the free shipping was still 0, which makes me unable to check whether free shipment was added or not (via discount).

So the bug is: add discount -> free shipping should create a row in order_cart_rule with "free_shipping" = 1

 

Unless I chose wrong table, but I do not think so that I did.

 

 

2. In discounts in order_cart_rule there is a net price and gross price. No possibility to use percentages, so the values are fixed. There is no possible way to know whether the discount was 50% or not.

My suggestion is - if the discount was given with percentage, shouldn't it sum up? For example if I have products with total gross price of 500£, and I add two discounts - 30% and 70% respectively. Shouldn't the total gross cost evaluate to 0? Or is it supposed to work this way?

Just a suggestion, not really a bug

 

 

Thanks in advance

Maciej Piekarniak

×
×
  • Create New...