Download the PHP package and/yandex_yml without Composer
On this page you can find all versions of the php package and/yandex_yml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download and/yandex_yml
More information about and/yandex_yml
Files in and/yandex_yml
Download and/yandex_yml
More information about and/yandex_yml
Files in and/yandex_yml
Vendor and
Package yandex_yml
Short Description Yandex Market YML generator
License MIT
Homepage http://www.symfony-project.org/plugins/sfYandexYMLPlugin/0_1_2
Package yandex_yml
Short Description Yandex Market YML generator
License MIT
Homepage http://www.symfony-project.org/plugins/sfYandexYMLPlugin/0_1_2
Please rate this library. Is it a good library?
Informations about the package yandex_yml
sfYandexYML plugin
Some classes helping to create XML files for the Yandex.Market service. Description of the YML language http://partner.market.yandex.ru/legal/tt/.
Installation
-
Install the plugin
$ symfony plugin:install sfYandexYMLPlugin
-
Clear cache
$ symfony cc
Usage
[PHP]
// creating a YML document
$yml = new sfYandexYML(
'My eShop',
'OOO Roga&Kopita',
'http://my-shop.com');
// creating categories
$cat1 = new sfYandexYMLCategory(1, 'T-shirts');
$cat2 = new sfYandexYMLCategory(2, 'Drinks');
$cat2 = new sfYandexYMLCategory(3, 'Vodka', 2); // child of Drinks
// adding categories to document
$yml->addCategory($cat1);
$yml->addCategory($cat2);
$yml->addCategory($cat3);
// creating a simple offer
$offer = new sfYandexYMLOffer_Model(1, true); // simple offer
$offer->country_of_origin = 'Russia';
$offer->currencyId = 'RUR';
$offer->categoryId = $cat3->getId();
$offer->delivery = true;
$offer->description = $product->getShortDescription();
$offer->downloadable=false;
$offer->local_delivery_cost = 200;
$offer->name = "Stolichnaya 0.5l";
$offer->picture = 'http://my-shop.com/pix/stolichnaya.jpg';
$offer->price = '329.99';
$offer->sales_notes = 'Design bottle';
$offer->url = 'http://my-shop.com/shop/drinks/stolichnaya05l.html';
$offer->vendor = 'OAO Kristall';
$offer->vendorCode = '12712-80';
// adding the offer to document
$yml->addOffer($offer);
$yml->generateYML(); // generate document
$yml_as_string = $yml->saveYML(); // get YML as string
All versions of yandex_yml with dependencies
PHP Build Version
Package Version
No informations.
The package and/yandex_yml contains the following files
Loading the files please wait ....