Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

News From Date and Design Active From is set when setting Special Price for product. #4387

Closed
thomasnordkvist opened this issue May 3, 2016 · 14 comments
Labels
bug report Fixed in 2.2.x The issue has been fixed in 2.2 release line Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@thomasnordkvist
Copy link

Steps to reproduce

In backend, set a special price for a product.

Expected result

  1. That only the Special Price is set.

Actual result

  1. The Special Price is set for the product
  2. If you leave the field Special Price From Date blank it is default set to todays date.(This i could consider ok)
  3. The field for News From Date in Autosettings is set to todays date. It's possible to change but it's not possoble to clear it.
  4. The filed Active From in Design is also set and can't be cleared.

Workaround for now is to set the News From Date and News To Date to passed dates if you are using for example a widget showing new products.

@pboisvert
Copy link

@antboiko can you check if this is working as intended/documented or a bug?

@antboiko
Copy link

antboiko commented May 5, 2016

@thomasnordkvist
Hi Thomas, could you please tell me what Magento version you use?

Thanks,
Anton.

@antboiko antboiko added the MX label May 5, 2016
@thomasnordkvist
Copy link
Author

I have this issue in version 2.0.4 whish is the only version I have access to at the moment

@antboiko
Copy link

antboiko commented May 6, 2016

@thomasnordkvist thanks for reporting this issue. Internal ticket MAGETWO-52577 was created.

@duhon duhon self-assigned this Jun 22, 2016
@duhon duhon added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Jun 22, 2016
@vkorotun vkorotun removed the MX label Aug 4, 2016
@duhon duhon removed their assignment Sep 2, 2016
@ghost
Copy link

ghost commented Nov 16, 2016

Hi,
Has this issue been addressed at all? I am using Magento 2.1.2 and still the same issue is happening.
Is there a release planned that fixes this?

@olysenko
Copy link

Hi @joe980 , I increased priority for the fix. It won't be delivered in the next release 2.1.3, so it scheduled for 2.1.4. If any changes happened I inform you

mmansoor-magento pushed a commit that referenced this issue Feb 13, 2017
mmansoor-magento pushed a commit that referenced this issue Feb 13, 2017
mmansoor-magento pushed a commit that referenced this issue Feb 13, 2017
mmansoor-magento pushed a commit that referenced this issue Feb 13, 2017
mmansoor-magento pushed a commit that referenced this issue Feb 13, 2017
@stephansteiner
Copy link

2.1.4 and 2.1.5 are out and bug still exists. can you raise priority so it will be included in 2.1.6?

@jarhody
Copy link

jarhody commented Mar 21, 2017

2.15 still an issue for me.

I used this work around for now. Simply adding a date to all products that have NULL values in these fields.

Login in to PhpMyAdmin
Go to table catalog_product_entity_datetime
Find the attribute ids of news from date and news to date (or go to the attribute in admin and find id in the url key)
Run query below (change the atrribute_id(s) to match your ids obtained from above)

UPDATE catalog_product_entity_datetime
SET value = '2000-01-01 00:00:00'
WHERE attribute_id = 77 AND value IS NULL OR attribute_id = 78 AND value IS NULL

@mattcoz
Copy link

mattcoz commented May 2, 2017

Still an issue in 2.1.6

@digitalredefned
Copy link

Confirmed still an issue for 2.1.6

@1f47a
Copy link

1f47a commented Jun 28, 2017

Confirmed still an issue for 2.1.7

@cherreman
Copy link

The problem is that Magento\Catalog\Model\Attribute\Backend\Startdate sets the from-date to the current date when the product has a special price. This also incorrectly sets all other start/from dates, for instance the news_from_date. A possible fix is to add an extra check for the special_from_date attribute before setting it:

Change

if ($startDate == '' && $object->getSpecialPrice()) {
  $startDate = $this->_localeDate->date();
}

to

if ($attributeName == "special_from_date" && $startDate == '' && $object->getSpecialPrice()) {
  $startDate = $this->_localeDate->date();
}

hostep pushed a commit to hostep/magento2 that referenced this issue Sep 2, 2017
…w from Date and Design Active From is set when setting Special Price magento#4387

(cherry picked from commit a2d59ac)
@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-72252

@magento-team magento-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development labels Sep 4, 2017
@magento-engcom-team magento-engcom-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Sep 11, 2017
magento-team pushed a commit that referenced this issue Sep 20, 2017
… Design Active From is set when setting Special Price #4387 - for 2.1
@magento-engcom-team
Copy link
Contributor

@thomasnordkvist thank you for your report.
The fix for this issue is already fixed in 2.2.0 release

@magento-engcom-team magento-engcom-team added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Sep 20, 2017
magento-engcom-team pushed a commit that referenced this issue Jun 21, 2019
MQE-1604: Move MTF utils out from Magento codebase 2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Fixed in 2.2.x The issue has been fixed in 2.2 release line Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests