woocommerce yml

YML Dump WordPress + Woocommerce on-line shop content

Describing plugin BG_YML_DUMP to YML Dump WordPress + Woocommerce on-line shop content. YML (Yandex Markup Language) is ridigly formalized by Yandex XML subset. It’s utilized to dump online shop content (categories and products) and load it to Yandex Market and some other partner program. То же самое по-русски

During dump process:

  • header is created with online shop name, company name, web-design agency name, web-designer email address, which are taken from plugin settings;
  • currency section is created. The main currency will be taken from Woocommerce settings and it’s rate is 1. If online shop works for different countries, those countries currencies will be included to this section and rates will be according Central (National) bank of the country, issues main currency;
  • cathegory section is created. If a category is a child one, the parent category will be included;
  • all products is dumped;
  • one can include to the dump only some of product categories or exclude some of them.

Dump is made as scheduled task one a day. File is created on server under WordPress folder tree and has URL http://site_URL/wp-content/uploads/yml/file_name.xml, where file_name is siteURL with dots, replaced by an underscore. For example, the dump file URL for site www.example.com will be http://www.example.com/wp-content/uploads/yml/www_example_com.xml.

If someone needs to get online shop content dump in real time (immediatelly), shortcode [bg-wc-uml-dump] can be placed on any site page. Of cource, it’s better to use specially created page. The dump will be made any time those page is rendered in browser.

Plugin Installation

You have to get plugin file bg_yml_dump.zip here, contains folder /bg_ymp_dump with plugin, readme, licence files and /languages folder with bg_ymp_dump.pot file to translate messages. Russian translation is also included.

Upload the /bg_ymp_dump folder to your /wp-content/plugins/ directory.
Activate the plugin through the Plugins menu in WordPress® (on-line shop site in case of WordPress Multisite).

YML Dump shop content

You have to prepare following information:

  1. On-line shop short name
  2. Owner on-line shop company name.
  3. WEB-design agency or WEB-master name.
  4. WEB-designer email address.
  5. Products vendor name.
  6. If You want to dump in tag typePrefix only the product category or all it’s parents also.
  7. If You want to dump only some product categories or exclude some of them, You need a list of this categories.
  8. If You want to limit max. number of images URL per product, You need this number.

Navigate to the «Settings»->»ProductYML Dump» Options panel for configuration details. On the tab “General Options” You have to fill all fields by prepared information and click button «Save Changes» (Fig. 1.).

Fig. 1. BG_YML_DUMP Plugin settings (Tab 1)

On the second tab “Restrictions” You can enter product category restrictions during dump and/or max. number of images URL per product (Fig. 2.) and click button «Save Changes».

Fig. 2. BG_YML_DUMP Plugin settings (Tab 2)

If You got some problems, You can use the “Help” tab (Fig. 3.) which can be opened clicking “Help” button in the up-right corner of the screen.

Fig. 3. BG_YML_DUMP Plugin settings (Help)

That’s it. You will get your on-line shop content dump every night.

Some Changes in YML Dump file

Only if You understand what You are doing! I recommend to test all changes in the test site first and only then to move to the working site had made backup before.

1. Brand name

It’s possible to print brand name it tag … for m ultibrand online shop. It’s necessary to create Attribute with any name and slug “brand“. All brand names should be values for this attribute.

VERY IMPORTANT! When You create product do not click “Used for variations” checkbox for this Attribute.

2. Change YML file placement

To change YML file position one have to create filter in the child theme functions.php file. This filter should change folder address where YML file will be created:

3. Change category name in tag …

Plugin prints product category name in tag … . In order to change contents of this tag, one have to create a filter in the child theme functions.php file. This filter should create desired contents for this tag:

4. Adding some extra information in the YML product description

Some online shops use third party plugins to add an extra information to their product descriptions. To add product YMP dump with any non standard information for woocommerce, it’s necessary to create a filter in the child theme functions.php file. This filter should looks like:

As the filter result, the variable $product_extra_tags should contain lines like

where tag1 is a valid YML tag.

Described plugin BG_YML_DUMP to YML Dump WordPress + Woocommerce on-line shop content

Description

Context advertising for today remains one of the main source of sales for most online stores.
To publish contextual advertising, you often need a file with a list of goods online store.
The most popular for this purpose is the xml format. It is also necessary that this file is
available for downloading from the Internet. In order for the information about the products
in the xml-file to be up-to-date, it is necessary to regenerate this file periodically.
Then when you change the prices of goods or their availability, information about them will
be relevant in the xml-file.

A Shopping Ad is an ad that advertises a particular product. Accordingly, a category
advertisement advertises a separate category. And if you have ads for each product separately,
then the horizon opens for a sharp increase in the cost effectiveness of advertising.
The effectiveness is related to the cost of the advertising click and the conversion landing page. But this is a separate story.
Out of the box, WooCommerce does not have the ability to export all available products
to an xml file.

all the goods of the online store twice a day and save it in the uploads folder available
from the Internet under the link http://your-domain.com/wp-content/uploads/feed-yml.xml.
In the future, this link can be used to publish contextual advertising with special tools.
For example, such as Laputa (https://laputa.seomarket.ua).

the WooCommerce Build-in Laputa plug-in.

интернет-магазинов. Для публикации контекстной рекламы зачастую требуется файл со списком
товаров интернет-магазина. Наиболее популярным для этой цели является формат xml.
Так же необходимо, чтобы этот файл был доступен для скачивания из Интернета. Чтобы информация
о товарах в xml-файле была актуальной, необходимо периодически по расписанию формировать этот
файл. Тогда при изменении цен товаров или их наличия, информация о них будет актуальна в в
xml-файле.

Товарное объявление — это объявление, которое рекламирует отдельный товар. Соответственно
категорийное объявление рекламирует отдельную категорию. И если у вас есть объявления отдельно
для каждого товара, то открывается горизонт для резкого повышения эффективности затрат на рекламу. Эффективность связана со стоимостью рекламного клика и конверсионностью посадочной странице. Но это уже отдельная история.
Из коробки WooCommerce не имеет возможности экспортировать все имеющиеся товары в xml-файл.

xml-файл со всеми товарами интернет-магазина и сохранять его в папке uploads, доступной
из интернета по ссылке http://your-domain.com/wp-content/uploads/feed-yml.xml.

специальными инструментами. Например, такими как Лапута (https://laputa.seomarket.ua).

с помощь плагина WooCommerce Build-in Laputa.

Description

Сreates a YML-feed to upload to Yandex market. The plug-in Woocommerce is required!

Format and method requirements for product data feeds

For a better understanding of the principles of YML feed – read this: https://yandex.ru/support/market-tech-requirements/index.html

Screenshots

  • screenshot-1.png

Installation

This section describes how to install the plugin and get it working.

  1. Upload the entire yml-for-yandex-market folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Export Yandex Market–>Settings screen to configure the plugin

Read this:
https://yandex.ru/support/partnermarket/registration/how-to-register.html
https://yandex.ru/support/webmaster/goods-prices/connecting-shop.xml
https://yandex.ru/adv/edu/market-exp/vtoroy-magazin

What plugin online store supported by your plugin?

How to create a YML feed?

Go to Yandex Market–>Settings. In the box called “Automatic file creation” select another menu entry (which differs from “off”). You can also change values in other boxes if necessary, then press “Save”.
After 1-7 minutes (depending on the number of products), the feed will be generated and a link will appear instead of this message.

Leave a Reply

Your email address will not be published. Required fields are marked *