magento / meta-for-magento2

33 stars 19 forks source link

Sale price is not correct if comes from Catalog Price Rule #59

Open Bashev opened 3 months ago

Bashev commented 3 months ago

Logic for getting prices is based on the Special Price attribute, but in case we have catalog price rule sale price in FB Catalog will not be populated. This is visible here. https://github.com/magento/meta-for-magento2/blob/9b12569141be385d6e264eb4c456d1d936745f4e/app/code/Meta/Catalog/Model/Product/Feed/Builder/Tools.php#L207

As additional issue we never check is this sale price in the time frame or not.

Steps to reproduce (*)

  1. Create new Catalog Price Rule - Discount everything with 10%
  2. Save product or Push catalog manually

Expected result (*)

  1. Products have sale price in the Catalog Manager

Actual result (*)

  1. Products have only regular price.
davirs commented 2 months ago

Hello everything is fine? @Bashev, could you confirm for me if obtaining the special price through the catalog rules is already functional? I installed version 1.3.0 of the meta extension on my magento 2.4.6-p3, but within the product catalog on Facebook it is only pulling the default price, the catalog rules are not appearing.

image

When clicking on "See promotions in Commerce Manager" no catalog or cart rules appear.

Note: I am doing this integration through the "test" in the configured form. I don't know if there is any kind of restriction in test mode.