2017 © Pedro Peláez
 

library google-shopping-feed

Google Shopping Feed API (with ns problem fixed)

image

kilylabs/google-shopping-feed

Google Shopping Feed API (with ns problem fixed)

  • Friday, October 28, 2016
  • by kilylabs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 34 Forks
  • 0 Open issues
  • 8 Versions
  • 33 % Grown

The README.md

composer

{
    "require": {
        "lukesnowden/google-shopping-feed": "dev-master"
    }
}

Usage

use LukeSnowden\GoogleShoppingFeed\Containers\GoogleShopping;

GoogleShopping::title('Test Feed');
GoogleShopping::link('http://example.com/');
GoogleShopping::description('Our Google Shopping Feed');

foreach( $products as $product ) {

    $item = GoogleShopping::createItem();
    $item->id($id);
    $item->title($title);
    $item->price($price);
    $item->mpn($SKU);
    $item->sale_price($salePrice);
    $item->link($link);
    $item->image_link($imageLink);
    ...
    ...

    /** create a variant */
    $variant = $item->variant();
    $variant->size($variant::LARGE);
    $variant->color('Red');

    /**
     * One thing to note, if creating variants, delete the initial object after you've done,
     * Google no longer needs it!
     *
     * $item->delete();
     *
     */

}

// boolean value indicates output to browser
GoogleShopping::asRss(true);

Category Taxonomies

returns a list of the categories. The list is updated daily from Googles Documentation, (*1)

$googleCategories = GoogleShopping::categories();

The Versions

28/10 2016

dev-master

9999999-dev https://github.com/lukesnowden/google-shopping-feed

Google Shopping Feed API (with ns problem fixed)

  Sources   Download

MIT

The Requires

 

api feed google shopping google shopping feed

28/10 2016

1.1.4.1

1.1.4.1 https://github.com/lukesnowden/google-shopping-feed

Google Shopping Feed API (with ns problem fixed)

  Sources   Download

MIT

The Requires

 

api feed google shopping google shopping feed

23/06 2016

1.1.4

1.1.4.0 https://github.com/lukesnowden/google-shopping-feed

Google Shopping Feed API

  Sources   Download

MIT

The Requires

 

api feed google shopping google shopping feed

15/03 2016

1.1.3

1.1.3.0 https://github.com/lukesnowden/google-shopping-feed

Google Shopping Feed API

  Sources   Download

MIT

The Requires

 

api feed google shopping google shopping feed

06/07 2015

1.1.2

1.1.2.0 https://github.com/lukesnowden/google-shopping-feed

Google Shopping Feed API

  Sources   Download

MIT

The Requires

 

api feed google shopping google shopping feed

19/05 2015

1.1.1

1.1.1.0 https://github.com/lukesnowden/google-shopping-feed

Google Shopping Feed API

  Sources   Download

MIT

The Requires

 

api feed google shopping google shopping feed

24/04 2015

1.1.0

1.1.0.0 https://github.com/lukesnowden/google-shopping-feed

Google Shopping Feed API

  Sources   Download

MIT

The Requires

 

api feed google shopping google shopping feed

16/02 2015

1.0.0

1.0.0.0 http://luke.sno.wden.co.uk/menu

Google Shopping Feed API

  Sources   Download

MIT

The Requires