View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006018 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2015-01-15 16:08 | 2024-09-25 11:33 |
Reporter | JaroslavHerber | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | acknowledged | Resolution | open | ||
Product Version | 4.9.2 / 5.2.2 | ||||
Summary | 0006018: "Skip all negative Discounts" in categories doesn't affect variants | ||||
Description | See point 5. in "Steps To Reproduce". | ||||
Steps To Reproduce | 1. Generate a coupon with 10% discount. 2. Activate "Skip all negative Discounts" for this category: http://demoshop.oxid-esales.com/professional-edition/Kiteboarding/Supplies/ 3. Now put one non-variant-article and one variant-article from this category into basket. 4. Redeem the coupon. 5. As you can see, there is a negative discount, although both articles are in a category with activated "Skip all negative Discounts"-option. This option doesn't work for variant-articles! | ||||
Tags | Coupons, Product domain and basket rewrite, Variants | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
related to | 0005520 | acknowledged | Range price is not calculated correctly when variant has discount |
|
I think the reason is that variant-articles are not stored in oxobject2category-table. And oxarticle::skipDiscounts() looks only for articles which are stored in oxobject2category. |
|
Steps to reproduce: 1. Generate a coupon with -10% discount; 2. Activate "Skip all negative Discounts" for category Jeans; 3. Create product without variants and assign the product to category "Jeans"; 4. Active the checkbox "Skip all negative Discounts" for category "Jeans"; 5. Now put one non-variant-article and one variant-article from this category(Jeans) into basket; 6. Redeem the coupon; 7. As you can see, there is a negative discount, although both articles are in a category with activated "Skip all negative Discounts"-option. This option doesn't work for variant-articles! |