Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.
/ mcpfi Public archive

Wordpress plugin to fetch and display product cards from Google Merchant Center XML feed on your wordpress site.

License

Notifications You must be signed in to change notification settings

l4red0/mcpfi

Repository files navigation

This project is not maintained and now archived. Please do not use it for production enviroment!

Merchant Center product feed importer

Wordpress plugin to fetch and display products from your e-commerce Google Merchant Center XML feed on any wordpress site.

Description

Fetch and display information about products from Google Merchant Center product XML (Google Shopping) feed on your wordpress site. All you need is valid feed URL and plugin will generate shortcodes to display product cards on your site.

Feed structure and specification are explained in Google Merchant Center Help.

Frequently Asked Questions

Does it supports other product feed types?

No. This plugin is only Google Shopping feed specific.

How can I change look of product cards?

Currently you can change price background color of all cards, by using color picker in "Price background color" option on settings page. You can control the size of the cards in two ways. First by setting height of the product image and second, by changing witdh of cards. Both values are in pixels.

Is there any way to add UTM parameters to product url?

Yes. On settings page you can provide UTM source, medium and campagin parameters. Term and content parameters are set automatically and are based on product variables.

What is cache livespan option?

Your feed is copied locally to your plugin directory. With "cache lifespan" you can set interval for refreshing local file. Time is in minutes. Usually few hours should be okay.

Why changing feed url will break shortcodes?

Plugin uses <g:id> parameter from feed to generate product specific shortcode. Changing feed url will also change database for products IDs therefore break shortcodes.

What kind of product feed this plugin is compatible?

Feed must be RSS 2.0 and meet requirements described here. The easiest way to check if your feed is compatible with this plugin is to look for this line in your xml: <rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> If exist, feed should be compatible.

Screenshots

MCPFI

Changelog

  • 1.0

    • Initial release
  • 1.1

    • Added: option for changing image height
    • Added: better product id handling
    • Fixed: removed global styles in favor to inline
    • Fixed: some CSS rendering issues
    • Fixed: better html markup for product boxes
  • 1.15

    • Added: setting for card width
    • Added: additional field validation
    • Added: additional WP related, security check
    • Added: option to disable UTM
    • Fixed: input validation sanitization for backend settings
    • Fixed: UTM url sanitization
    • Fixed: escaping data from xml
    • Fixed: minor layout fixes for settings page

About

Wordpress plugin to fetch and display product cards from Google Merchant Center XML feed on your wordpress site.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published