Creating Products

It’s possible to create Woocommerce products with Scraper. After installing WooCommerce you could follow introductions below to install a product task on Scraper.

Enable Custom Fields for WooCommerce

  1. Scraper gets all custom fields from already created posts. To enable WooCommerce’s custom fields, you should create an empty product with filling these fields. For example if you need to fill “price” field on Woocommerce, you should fill this field with anything before create your task on Scraper.
  2. After creating your empty product, Scraper will display all possible fields for your task. You could add any custom field on data field list.

Setting Up Product Tags

  1. On “Post Content” section click “Add New Data Field” button.
  2. Select “Product Tags” from data type list. It’s labeled “Type”.
  3. Select your path with visual selector.
  4. Transform your input content if needed. (In some cases you need to split content with delimiter, you could do that on transform functions)

After that visual editor will set taxonomy as “product_tag” which is a tag taxonomy for Woocommerce. You’ll also notice that “Is Multiple?” option is checked.Plugin checks this option because tax taxonomy only accepts array value on database.

Setting Up Product Categories

  1. On “Post Content” section click “Add New Data Field” button.
  2. Select “Product Categories” from data type list. It’s labeled “Type”.
  3. Select your path with visual selector.
  4. Transform your input content if needed. (In some cases you need to split content with delimiter, you could do that on transform functions)

After that visual editor will set taxonomy as “product_cat” which is a tag taxonomy for Woocommerce. You’ll also notice that “Is Multiple?” option is checked. Plugin checks this option because tax taxonomy only accepts array value on database.

Product Attributes

To define a product attribute on Scraper, you should create an attribute on Woocommerce. You could create attribute with following introduction :

  1. Go to Products > Attributes menu on WooCommerce.
  2. Name your attribute and click “Add Attribute” button on form.
  3. After creating attribute, it will appear on the list beside the form. Click your attribute’s name from this table.
  4. It will redirect you to product attribute page. The page has an URL structure that has taxonomy variable. It will be like this : wordpress/wp-admin/edit-tags.php?taxonomy=pa_color&post_type=product
  5. Copy this taxonomy value to use on Scraper. In this case, we copied “pa_color” name.

Now, you have defined product attribute on your WooCommerce system. We could go to Scraper and setup our product attribute field.

  1. Click “Add New Data Field” button on data fields list.
  2. Select “Product Attribute” from that list.
  3. Paste your attribute taxonomy on “Name” field which is “pa_color” in our case.
  4. Select your path with visual editor and transform your input if needed.

The article written for 1.0.35 version of plugin.