Skip to content

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

Closed
@william-gooch

Description

@william-gooch

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:

$parentUrl = $product->getParentProductUrl();
// use parent product URL if a simple product has a parent and is not visible individually
$url = (!$product->isVisibleInSiteVisibility() && $parentUrl) ? $parentUrl : $product->getProductUrl();
return $this->builderTools->replaceLocalUrlWithDummyUrl($url);

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions