magento / meta-for-magento2

33 stars 19 forks source link

Meta Product Link is mapped to Admin URL by default, not front-end URL. #48

Open william-gooch opened 6 months ago

william-gooch commented 6 months ago

Summary (*)

When attempting to upload products into a Meta product feed, the default mapping for the Link field corresponds to the admin URL for that product, I imagine the one given by the getProductUrl function used here: https://github.com/magento/meta-for-magento2/blob/e2a98a376ad5b0f73e350a779b154b7299f391de/app/code/Meta/Catalog/Model/Product/Feed/Builder.php#L250-L253

Surely it would make more sense for the default to be mapped to the frontend URL? While it's possible to use a post-process step to just find-and-replace on the URL it probably shouldn't be necessary.

vncnt-mb commented 6 months ago

Same problem here (tested 1.2.1 to 1.2.5 & Magento 2.4.6 - 2.4.6-p3) On my side, only appears when child product (of parent configurable product) is not visible individually.

Bashev commented 6 months ago

Fixed in https://github.com/magento/meta-for-magento2/pull/22

william-gooch commented 5 months ago

Does this PR fix that issue? To me it looks like it only affects product images, not the product link itself.

ptrdelgado2207 commented 5 months ago

is there any solution to this problem? since in dynamic ads, the URLs are wrong

vncnt-mb commented 5 months ago

Do you have any updates on this? We can't use dynamic ads on Facebook & Instagram at the moment since the problem occurs

All our products are refused because their links are invalid!

ptrdelgado2207 commented 4 months ago

is there any solution to this problem?