Search

Mar 28, 2023

Magento2: Editing a product on website removed its sale price

Steps to reproduce: 

Step 1: We have a Catalog Price Rule for 10% Off Site Wide Sale (Active: Yes) 

Step 2: View frontend product all product have sale 10%(sku 15100 have sale price 10%) 

Step 3: Go to backend and edit any product 

Step 4: Clear cache and View frontend, previously edited and saved product has lost its sale price (sku 15100 has been removed sale price 10%) 

*Expected result: Not removed sale price. 

*Actual result: Previously edited and saved product has lost its sale price.


SOLUTION ON MAGENTO CLOUD:

1. Install the latest QPT package: composer update magento/ece-tools --with-dependencies
 
2. Add to .magento.env.yaml environment variable QUALITY_PATCHES with a <PATCH_ID> to apply. PATCH_ID is MDVA-31763:

Example:
stage:
   build:
      QUALITY_PATCHES:
          - <PATCH_ID>

No comments:

Post a Comment