Step Description | Expected result |
---|---|
Go to BO > Orders > Orders page and view last order created | The Order view page is well displayed |
Click Add new discount | A pop up “Add new cart rule” is displayed and the “Add” button is disabled |
Set these fields: # Name # Value = invalid with characters => 10% and click on “Add” |
An alert “Discount value must be a number.” |
Click Add new discount | A pop up “Add new cart rule” is displayed and the “Add” button is disabled |
Set these fields: # Name # Value > 100 => 500 # Type : Percent and click on Save |
An alert “Percent value cannot exceed 100.” |
Click Add new discount | A pop up “Add new cart rule” is displayed and the “Add” button is disabled |
Set these fields: # Name # Value < 0 => -2 # Type : Percent and click on Save |
Percent value must be greater than 0. |
Click Add new discount | A pop up “Add new cart rule” is displayed and the “Add” button is disabled |
Set these fields: # Name # Value # Type : Percent and click on Save |
An alert “Successful update.” alert is displayed and Discounts = Total products - Value A new line is added |
Click on Remove to delete the discount | An alert “Successful update.” is displayed The line discount is removed |
Click Add new discount | A pop up “Add new cart rule” is displayed and the “Add” button is disabled |
Set these fields: # Name # Type = Amount # Value: invalid with characters and click on Save |
An alert “Discount value must be a number.” is displayed |
Click Add new discount | A pop up “Add new cart rule” is displayed and the “Add” button is disabled |
Set these fields: # Name # Type = Amount # Value: < 0 and click on Save |
An alert “Amount value must be greater than 0.” is displayed |
Click Add new discount | A pop up “Add new cart rule” is displayed and the “Add” button is disabled |
Set these fields: # Name # Type = Amount # Value: > Total order and click on Save |
An alert “Discount value cannot exceed the total price of this order.” is displayed |
Click Add new discount | A pop up “Add new cart rule” is displayed and the “Add” button is disabled |
Set these fields: # Name # Type = Amount # Value and click on Save |
An alert “Successful update.” alert is displayed and Discounts = Total products - Value A new line is added |
Go to BO > Catalog > Discounts page | check that the cart rule is well displayed with same name |
Go back to the last Order and Click on Remove to delete the discount | An alert “Successful update.” is displayed The line discount is removed |
Click Add new discount | A pop up “Add new cart rule” is displayed and the “Add” button is disabled |
Set these fields: # Name # Type = Free shipping and click on Save |
An alert “Successful update.” alert is displayed and Discounts = fees of shipping A new line is added |
Click on the Carriers Tab and click on Edit | A pop up: “Edit shipping details” is displayed |
Select another carrier and click on Update | An alert “Successful update.” is displayed and check in the discount block, the value of free shipping is updated |
Click on Remove to delete the discount | An alert “Successful update.” is displayed The line discount is removed |