PHP code example of notdest / yandex-yml-generator
1. Go to this page and download the library: Download notdest/yandex-yml-generator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
notdest / yandex-yml-generator example snippets
// model, vendor, id, price, currencyId, categoryId , [price from - "цена от ххх руб." ]
$offer = $y->arbitrary( '3811', 'Brand', 'id01id1111', 900, "USD", 15 /* , true*/ );
$offer ->cbid(80) // Размер ставки на карточке товара. 0,8 у.е.
->url("http://magaz.ru/tovar.html") // !!! условно обязательный. URL страницы товара
//->vat('VAT_10_110') отсутствует в схеме // Ставка НДС для товара.
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.