View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006449 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2016-07-13 14:02 | 2024-03-20 10:41 |
Reporter | preethi | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Fixed in Version | 6.0.0-beta.1 | ||||
Summary | 0006449: The discount "Current Bargain" from the demodata does not work | ||||
Description | A new discount created with the same settings function properly. | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
The below insert statement is from the demodata.sql: INSERT INTO `oxobject2discount` (`OXID`, `OXDISCOUNTID`, `OXOBJECTID`, `OXTYPE`) VALUES ('4e542e4e8f60a0562.61817542', '4e542e4e8dd127836.00288451', '1771', 'oxarticles'), ('79042e787b414fae9.16540313', '4e542e4e8dd127836.00288451', '85b42c94a32b3fdd2.66642220', 'oxarticles'), ('0a842e4fd23a60e04.47404876', '4e542e4e8dd127836.00288451', '1431', 'oxarticles'), ('79042e787aea9e9d9.36926408', '4e542e4e8dd127836.00288451', 'd8842e3cbf9290351.59301740', 'oxarticles'); The 4 "objectid"s ('1771', '85b42c94a32b3fdd2.66642220', '1431', 'd8842e3cbf9290351.59301740') are not valid. No records with these "oxid"s are available in the table "oxarticles". |
|
Small correction: discount doesn't work, after you removed the category and the products assigned to it. Discount isn't valid for all products than. |
|
I believe, discounts that have no articles or categories assigned, are valid for all articles. |
|
Yes, but it isn't valid for all products because of the wrong OXIDs. Discount is still assigned to (no-existing) products and therefore not shown in basket. |
|
You got it right. But for record type "oxcountry", the OXDISCOUNTIDs are wrong. The following pull-request should rectify the problem: https://github.com/OXID-eSales/oxideshop_ce/pull/435/files |