facebookarchive / Facebook-For-OpenCart

Facebook Ads integration with OpenCart
Other
72 stars 54 forks source link

[Feature Request] Add all product categories to product feed, use both product_type and google_product_category fields #492

Open RogerAndersson opened 3 years ago

RogerAndersson commented 3 years ago

Webstore Url https://batritningar.se/

FBE plugin version 3.1.0

Is your feature request related to a problem? Please describe. For products belonging to several categories in OpenCart, only one category appears in google_product_category, and you can't control which one is used. Example: sub-category 2 And the google_product_category is probably not related at all to the categories in your OpenCart Store. To have a working google_product_category you probably need to use datafeed rules in facebook to search and replace values. This is a bit hard to do if only one category exists.

According to Facebook Developers documentation the field product_type should contain: Category the item belongs to, according to your business's product categorization system, if you have one. You can also enter a Google product category. For commerce, represents the product category in your internal system. Example: Home & Garden > Kitchen & Dining > Appliances > Refrigerators product_type is not used in existing feed.

Describe the solution you'd like Add all categories to a product in feed.

google_product_category should contain a comma separated list of all categories. Example: parent category, sub-category 1, sub-category 2

product_type should contain a comma separated list of all category paths. Example: parent category > sub-category 1, parent category > sub-category 2

With this solution it will be easier to search and replace the google_product_category using datafeed rules in facebook, and get a correct google_product_category for all products.

Additional context

RogerAndersson commented 3 years ago

493 Adds support for multiple categories