first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
So you found my to-do list for this plugin? Well, hope you enjoy the little sneak preview of what's coming.
Missing some features you might like? Drop me a line at support@adtribes.io and we might just add it to the list. Thanks!
Tutorial / Blog posts:
- Explain all the different fields/attributes that can be selected from the drop-downs
- product highlight / details article
Priority issues:
- Add automotive fields for Facebook feed, see: https://developers.facebook.com/docs/marketing-api/dynamic-ads-auto/auto-catalog/
- Add AddToCart event on buttons again
- Add Pinterest Tag; https://help.pinterest.com/nl/business/article/install-the-pinterest-tag
- License key input field needs to be a password field (asterixes)
- A seperate FB pixel per WPML website / language
- Own hosted plugin updating: https://rudrastyh.com/wordpress/self-hosted-plugin-update.html
- Add support for Wordpress Multisites
- Make extra woosea fields available for front-end usage
- Add header to extra fields on product edit pages
- Add possibility to create OR rules
- AMAZON integration:
- requires a professional seller account, 39 dollar a month, before being able to create a developer account
- only then we can use their MWS service needed to connect our plugin

View File

@@ -0,0 +1,5 @@
<?php
/**
* Nothing to see here
*/
?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
<?php
/**
* Nothing to see here
*/
?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,163 @@
<?php
/**
* Settings for Beslist feeds
*/
class WooSEA_beslist {
public $beslist;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$beslist = array(
"Feed fields" => array(
"Title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"Price" => array(
"name" => "price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"Unique code" => array(
"name" => "unique_code",
"feed_name" => "unique_code",
"format" => "required",
"woo_suggest" => "id",
),
"Product URL" => array(
"name" => "product_url",
"feed_name" => "product_url",
"format" => "required",
"woo_suggest" => "link",
),
"Image URL" => array(
"name" => "image_url",
"feed_name" => "image_url",
"format" => "required",
"woo_suggest" => "image",
),
"Extra image 1" => array(
"name" => "extra_image_1",
"feed_name" => "extra_image_1",
"format" => "optional",
),
"Extra image 2" => array(
"name" => "extra_image_2",
"feed_name" => "extra_image_2",
"format" => "optional",
),
"Extra image 3" => array(
"name" => "extra_image_3",
"feed_name" => "extra_image_3",
"format" => "optional",
),
"Extra image 4" => array(
"name" => "extra_image_4",
"feed_name" => "extra_image_4",
"format" => "optional",
),
"Extra image 5" => array(
"name" => "extra_image_5",
"feed_name" => "extra_image_5",
"format" => "optional",
),
"Extra image 6" => array(
"name" => "extra_image_6",
"feed_name" => "extra_image_6",
"format" => "optional",
),
"Extra image 7" => array(
"name" => "extra_image_7",
"feed_name" => "extra_image_7",
"format" => "optional",
),
"Extra image 8" => array(
"name" => "extra_image_8",
"feed_name" => "extra_image_8",
"format" => "optional",
),
"Extra image 9" => array(
"name" => "extra_image_9",
"feed_name" => "extra_image_9",
"format" => "optional",
),
"Category" => array(
"name" => "category",
"feed_name" => "category",
"format" => "required",
"woo_suggest" => "category_path_short",
),
"Delivery period" => array(
"name" => "delivery_period",
"feed_name" => "delivery_period",
"format" => "required",
"woo_suggest" => "",
),
"Delivery charges" => array(
"name" => "delivery_charges",
"feed_name" => "delivery_charges",
"format" => "required",
),
"EAN" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "required",
),
"Product description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"Display" => array(
"name" => "display",
"feed_name" => "display",
"format" => "optional",
),
"SKU" => array(
"name" => "SKU",
"feed_name" => "SKU",
"format" => "optional",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "brand",
"format" => "optional",
),
"Size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "optional",
),
"Condition" => array(
"name" => "condition",
"feed_name" => "condition",
"format" => "optional",
"woo_suggest" => "condition",
),
"Variant code" => array(
"name" => "variant_code",
"feed_name" => "variant_code",
"format" => "optional",
),
"Model code" => array(
"name" => "model_code",
"feed_name" => "model_code",
"format" => "optional",
),
"Old price" => array(
"name" => "old_price",
"feed_name" => "old_price",
"format" => "optional",
),
),
);
return $beslist;
}
}
?>

View File

@@ -0,0 +1,141 @@
<?php
/**
* Settings for Bestprice feeds
*/
class WooSEA_bestprice {
public $bestprice;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$bestprice = array(
"Feed fields" => array(
"productId" => array(
"name" => "productId",
"feed_name" => "productId",
"format" => "required",
"woo_suggest" => "id",
),
"title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"productURL" => array(
"name" => "productURL",
"feed_name" => "productURL",
"format" => "required",
"woo_suggest" => "link",
),
"imageURL" => array(
"name" => "imageURL",
"feed_name" => "imageURL",
"format" => "required",
"woo_suggest" => "image",
),
"imagesURL" => array(
"name" => "imagesURL",
"feed_name" => "imagesURL",
"format" => "optional",
),
"price" => array(
"name" => "price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"category_path" => array(
"name" => "category_path",
"feed_name" => "category_path",
"format" => "required",
"woo_suggest" => "category_path_short",
),
"category_id" => array(
"name" => "category_id",
"feed_name" => "category_id",
"format" => "optional",
),
"availability" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "required",
"woo_suggest" => "availability",
),
"stock" => array(
"name" => "stock",
"feed_name" => "stock",
"format" => "optional",
),
"brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"EAN" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "required",
),
"Barcode" => array(
"name" => "Barcode",
"feed_name" => "Barcode",
"format" => "required",
),
"MPN" => array(
"name" => "MPN",
"feed_name" => "MPN",
"format" => "required",
),
"SKU" => array(
"name" => "SKU",
"feed_name" => "SKU",
"format" => "required",
),
"size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "optional",
),
"color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "optional",
),
"warranty_provider" => array(
"name" => "warranty_provider",
"feed_name" => "warranty_provider",
"format" => "optional",
),
"warranty_duration" => array(
"name" => "warranty_duration",
"feed_name" => "warranty_duration",
"format" => "optional",
),
"isBundle" => array(
"name" => "isBundle",
"feed_name" => "isBundle",
"format" => "optional",
),
"features" => array(
"name" => "features",
"feed_name" => "features",
"format" => "optional",
),
"weight" => array(
"name" => "weight",
"feed_name" => "weight",
"format" => "optional",
),
"shipping" => array(
"name" => "shipping",
"feed_name" => "shipping",
"format" => "optional",
),
),
);
return $bestprice;
}
}
?>

View File

@@ -0,0 +1,201 @@
<?php
/**
* Settings for Billiger feeds
*/
class WooSEA_billiger {
public $billiger;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$billiger = array(
"Feed fields" => array(
"AID" => array(
"name" => "aid / sku",
"feed_name" => "aid",
"format" => "required",
"woo_suggest" => "id",
),
"Name" => array(
"name" => "name",
"feed_name" => "name",
"format" => "required",
"woo_suggest" => "title",
),
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Link" => array(
"name" => "link",
"feed_name" => "link",
"format" => "required",
"woo_suggest" => "link",
),
"Image" => array(
"name" => "image",
"feed_name" => "image",
"format" => "required",
"woo_suggest" => "image",
),
"Product description" => array(
"name" => "desc",
"feed_name" => "desc",
"format" => "required",
"woo_suggest" => "description",
),
"Shop category" => array(
"name" => "shop_cat",
"feed_name" => "shop_cat",
"format" => "required",
"woo_suggest" => "categories",
),
"Price" => array(
"name" => "price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"Base price" => array(
"name" => "base_price",
"feed_name" => "base_price",
"format" => "optional",
),
"Old price" => array(
"name" => "old_price",
"feed_name" => "old_price",
"format" => "optional",
),
"EAN" => array(
"name" => "ean / gtin",
"feed_name" => "ean",
"format" => "required",
),
"MPNR" => array(
"name" => "mpn(r)",
"feed_name" => "mpnr",
"format" => "required",
),
"Delivery time" => array(
"name" => "dlv_time",
"feed_name" => "dlv_time",
"format" => "required",
),
"Delivery cost" => array(
"name" => "dlv_cost",
"feed_name" => "dlv_cost",
"format" => "required",
),
"Delivery cost Austria" => array(
"name" => "dlv_cost_at",
"feed_name" => "dlv_cost_at",
"format" => "optional",
),
"Promotional text" => array(
"name" => "promo_text",
"feed_name" => "promo_text",
"format" => "optional",
),
"Voucher text" => array(
"name" => "voucher_text",
"feed_name" => "voucher_text",
"format" => "optional",
),
"Size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "optional",
),
"Color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "optional",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "optional",
),
"Material" => array(
"name" => "material",
"feed_name" => "material",
"format" => "optional",
),
"Class" => array(
"name" => "class",
"feed_name" => "class",
"format" => "optional",
),
"Features" => array(
"name" => "features",
"feed_name" => "features",
"format" => "optional",
),
"Style" => array(
"name" => "style",
"feed_name" => "style",
"format" => "optional",
),
"EEK" => array(
"name" => "eek",
"feed_name" => "eek",
"format" => "optional",
),
"Light socket" => array(
"name" => "light_socket",
"feed_name" => "light_socket",
"format" => "optional",
),
"Wet adhesion" => array(
"name" => "wet_adhesion",
"feed_name" => "wet_adhesion",
"format" => "optional",
),
"Fuel" => array(
"name" => "fuel",
"feed_name" => "fuel",
"format" => "optional",
),
"External rolling noise" => array(
"name" => "rollgeraeusch",
"feed_name" => "rollgeraeusch",
"format" => "optional",
),
"HSN and TSN" => array(
"name" => "hsn_tsn",
"feed_name" => "hsn_tsn",
"format" => "optional",
),
"Slide" => array(
"name" => "diameter",
"feed_name" => "slide",
"format" => "optional",
),
"Base Curve" => array(
"name" => "bc",
"feed_name" => "bc",
"format" => "optional",
),
"Diopters" => array(
"name" => "sph_pwr",
"feed_name" => "sph_pwr",
"format" => "optional",
),
"Cylinder" => array(
"name" => "cyl",
"feed_name" => "cyl",
"format" => "optional",
),
"Axis" => array(
"name" => "axis",
"feed_name" => "axis",
"format" => "optional",
),
),
);
return $billiger;
}
}
?>

View File

@@ -0,0 +1,223 @@
<?php
/**
* Settings for Bing Shopping product feeds
*/
class WooSEA_bing_shopping {
public $bing_attributes;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$bing_attributes = array(
"Required fields" => array(
"id" => array(
"name" => "id",
"feed_name" => "id",
"format" => "required",
"woo_suggest" => "id",
),
"title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"link" => array(
"name" => "link",
"feed_name" => "link",
"format" => "required",
"woo_suggest" => "link",
),
"price" => array(
"name" => "price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"image_link" => array(
"name" => "image_link",
"feed_name" => "image_link",
"format" => "required",
"woo_suggest" => "image",
),
"shipping" => array(
"name" => "shipping",
"feed_name" => "shipping",
"format" => "required",
),
),
"Item identification" => array(
"mpn" => array(
"name" => "mpn",
"feed_name" => "mpn",
"format" => "optional",
),
"gtin" => array(
"name" => "gtin",
"feed_name" => "gtin",
"format" => "optional",
),
"brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "optional",
),
),
"Apparal products" => array(
"gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "optional",
),
"age_group" => array(
"name" => "age_group",
"feed_name" => "age_group",
"format" => "optional",
),
"color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "optional",
),
"size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "optional",
),
),
"Product variants" => array(
"item_group_id" => array(
"name" => "item_group_id",
"feed_name" => "item_group_id",
"format" => "optional",
"woo_suggest" => "item_group_id",
),
"material" => array(
"name" => "material",
"feed_name" => "material",
"format" => "optional",
),
"pattern" => array(
"name" => "pattern",
"feed_name" => "pattern",
"format" => "optional",
),
),
"Other" => array(
"adult" => array(
"name" => "adult",
"feed_name" => "adult",
"format" => "optional",
),
"availability" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "optional",
),
"product_category" => array(
"name" => "product_category",
"feed_name" => "product_category",
"format" => "optional",
),
"condition" => array(
"name" => "condition",
"feed_name" => "condition",
"format" => "optional",
),
"expiration_date" => array(
"name" => "expiration_date",
"feed_name" => "expiration_date",
"format" => "optional",
),
"multipack" => array(
"name" => "multipack",
"feed_name" => "multipack",
"format" => "optional",
),
"product_type" => array(
"name" => "product_type",
"feed_name" => "product_type",
"format" => "optional",
),
"mobile_link" => array(
"name" => "mobile_link",
"feed_name" => "mobile_link",
"format" => "optional",
),
),
"Bing attributes" => array(
"seller_name" => array(
"name" => "seller_name",
"feed_name" => "seller_name",
"format" => "optional",
),
"bingads_grouping" => array(
"name" => "bingads_grouping",
"feed_name" => "bingads_grouping",
"format" => "optional",
),
"bingads_label" => array(
"name" => "bingads_label",
"feed_name" => "bingads_label",
"format" => "optional",
),
"bingads_redirect" => array(
"name" => "bingads_redirect",
"feed_name" => "bingads_redirect",
"format" => "optional",
),
"custom_label_0" => array(
"name" => "custom_label_0",
"feed_name" => "custom_label_0",
"format" => "optional",
),
"custom_label_1" => array(
"name" => "custom_label_1",
"feed_name" => "custom_label_1",
"format" => "optional",
),
"custom_label_2" => array(
"name" => "custom_label_2",
"feed_name" => "custom_label_2",
"format" => "optional",
),
"custom_label_3" => array(
"name" => "custom_label_3",
"feed_name" => "custom_label_3",
"format" => "optional",
),
"custom_label_4" => array(
"name" => "custom_label_4",
"feed_name" => "custom_label_4",
"format" => "optional",
),
),
"Sales and promotions" => array(
"sale_price" => array(
"name" => "sale_price",
"feed_name" => "sale_price",
"format" => "optional",
),
"sale_price_effective_date" => array(
"name" => "sale_price_effective_date",
"feed_name" => "sale_price_effective_date",
"format" => "optional",
),
"promotion_ID" => array(
"name" => "promotion_ID",
"feed_name" => "promotion_ID",
"format" => "optional",
),
),
);
return $bing_attributes;
}
}
?>

View File

@@ -0,0 +1,105 @@
<?php
/**
* Settings for Bing Shopping Promotions feeds
*/
class WooSEA_bing_shopping_promotions {
public $bing_attributes_promotions;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$bing_attributes_promotions = array(
"Feed fields" => array(
"promotion_id" => array(
"name" => "promotion_id",
"feed_name" => "promotion_id",
"format" => "required",
),
"product_applicability" => array(
"name" => "product_applicability",
"feed_name" => "product_applicability",
"format" => "required",
),
"offer_type" => array(
"name" => "offer_type",
"feed_name" => "offer_type",
"format" => "required",
),
"long_title" => array(
"name" => "long_title",
"feed_name" => "long_title",
"format" => "required",
),
"promotion_effective_dates" => array(
"name" => "promotion_effective_dates",
"feed_name" => "promotion_effective_dates",
"format" => "required",
),
"redemption_channel" => array(
"name" => "redemption_channel",
"feed_name" => "redemption_channel",
"format" => "required",
),
"promotional_display_dates" => array(
"name" => "promotional_display_dates",
"feed_name" => "promotional_display_dates",
"format" => "optional",
),
"minimum_purchase_amount" => array(
"name" => "minimum_purchase_amount",
"feed_name" => "minimum_purchase_amount",
"format" => "optional",
),
"generic_redemption_code" => array(
"name" => "generic_redemption_code",
"feed_name" => "generic_redemption_code",
"format" => "optional",
),
),
"Structured data attributes" => array(
"percent_off" => array(
"name" => "percent_off",
"feed_name" => "percent_off",
"format" => "optional",
),
"money_off_amount" => array(
"name" => "percent_off_amount",
"feed_name" => "percent_off_amount",
"format" => "optional",
),
"buy_this_quantity" => array(
"name" => "buy_this_quantity",
"feed_name" => "buy_this_quantity",
"format" => "optional",
),
"get_this_quantity_discounted" => array(
"name" => "get_this_quantity_discounted",
"feed_name" => "get_this_quantity_discounted",
"format" => "optional",
),
"free_shipping" => array(
"name" => "free_shipping",
"feed_name" => "free_shipping",
"format" => "optional",
),
"free_gift_value" => array(
"name" => "free_gift_value",
"feed_name" => "free_gift_value",
"format" => "optional",
),
"free_gift_description" => array(
"name" => "free_gift_description",
"feed_name" => "free_gift_description",
"format" => "optional",
),
"free_gift_item_id" => array(
"name" => "free_gift_item_id",
"feed_name" => "free_gift_item_id",
"format" => "optional",
),
),
);
return $bing_attributes_promotions;
}
}
?>

View File

@@ -0,0 +1,133 @@
<?php
/**
* Settings for Boetiek.nl feeds
*/
class WooSEA_boetiek {
public $boetiek;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$boetiek = array(
"Feed fields" => array(
"Product ID" => array(
"name" => "ProductID",
"feed_name" => "ProductID",
"format" => "required",
"woo_suggest" => "id",
),
"Product Name" => array(
"name" => "ProductName",
"feed_name" => "ProductName",
"format" => "required",
"woo_suggest" => "title",
),
"Product URL" => array(
"name" => "ProductURL",
"feed_name" => "ProductURL",
"format" => "required",
"woo_suggest" => "link",
),
"Product Image" => array(
"name" => "ProductImage",
"feed_name" => "ProductImage",
"format" => "required",
"woo_suggest" => "image",
),
"Product Description" => array(
"name" => "ProductDescription",
"feed_name" => "ProductDescription",
"format" => "required",
"woo_suggest" => "description",
),
"Category Path" => array(
"name" => "CategoryPath",
"feed_name" => "CategoryPath",
"format" => "required",
"woo_suggest" => "category_path",
),
"Brand Name" => array(
"name" => "BrandName",
"feed_name" => "BrandName",
"format" => "required",
),
"Product Price" => array(
"name" => "ProductPrice",
"feed_name" => "ProductPrice",
"format" => "required",
"woo_suggest" => "price",
),
"Product Sale Price" => array(
"name" => "ProductSalePrice",
"feed_name" => "ProductSalePrice",
"format" => "required",
"woo_suggest" => "sale_price",
),
"In Stock" => array(
"name" => "InStock",
"feed_name" => "InStock",
"format" => "required",
"woo_suggest" => "availability",
),
"Colour" => array(
"name" => "Colour",
"feed_name" => "Colour",
"format" => "optional",
),
"Material" => array(
"name" => "Material",
"feed_name" => "Material",
"format" => "optional",
),
"Gender" => array(
"name" => "Gender",
"feed_name" => "Gender",
"format" => "optional",
),
"Sustainable" => array(
"name" => "Sustainable",
"feed_name" => "Sustainable",
"format" => "optional",
),
"Sizes" => array(
"name" => "Sizes",
"feed_name" => "Sizes",
"format" => "optional",
),
"Parent/Group ID" => array(
"name" => "ParentGroupID",
"feed_name" => "ParentGroupID",
"format" => "optional",
),
"Stock Quantity" => array(
"name" => "StockQuantity",
"feed_name" => "StockQuantity",
"format" => "optional",
),
"Alternative Images" => array(
"name" => "AlternativeImages",
"feed_name" => "AlternativeImages",
"format" => "optional",
),
"Long Description" => array(
"name" => "LongDescription",
"feed_name" => "LongDescription",
"format" => "optional",
),
"Delivery Time" => array(
"name" => "DeliveryTime",
"feed_name" => "DeliveryTime",
"format" => "optional",
),
"Delivery Cost" => array(
"name" => "DeliveryCost",
"feed_name" => "DeliveryCost",
"format" => "optional",
),
),
);
return $boetiek;
}
}
?>

View File

@@ -0,0 +1,70 @@
<?php
/**
* Settings for Bol.com product feeds
*/
class WooSEA_bol {
public $bol;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$bol = array(
"Feed fields" => array(
"Reference" => array(
"name" => "Reference",
"feed_name" => "Reference",
"format" => "required",
"woo_suggest" => "id",
),
"EAN" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "required",
),
"Condition" => array(
"name" => "Condition",
"feed_name" => "Condition",
"format" => "required",
"woo_suggest" => "condition",
),
"Stock" => array(
"name" => "Stock",
"feed_name" => "Stock",
"format" => "required",
"woo_suggest" => "availability",
),
"Price" => array(
"name" => "Price",
"feed_name" => "Price",
"format" => "required",
"woo_suggest" => "price",
),
"Fullfillment by" => array(
"name" => "Fullfillment by",
"feed_name" => "Fullfillment by",
"format" => "required",
),
"Offer description" => array(
"name" => "Offer description",
"feed_name" => "Offer description",
"format" => "required",
"woo_suggest" => "description",
),
"For sale" => array(
"name" => "For sale",
"feed_name" => "For sale",
"format" => "required",
),
"Title" => array(
"name" => "Title",
"feed_name" => "Title",
"format" => "required",
"woo_suggest" => "title",
),
),
);
return $bol;
}
}
?>

View File

@@ -0,0 +1,179 @@
<?php
/**
* Settings for Catch.com.au feeds
*/
class WooSEA_catchcomau {
public $catchcomau;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$catchcomau = array(
"Feed fields" => array(
"Product ID" => array(
"name" => "Product ID",
"feed_name" => "product-id",
"format" => "required",
"woo_suggest" => "id",
),
"Product ID Type" => array(
"name" => "Product ID Type",
"feed_name" => "product-id-type",
"format" => "optional",
),
"Category" => array(
"name" => "Category",
"feed_name" => "category",
"format" => "required",
"woo_suggest" => "category",
),
"Internal SKU" => array(
"name" => "Internal SKU",
"feed_name" => "internal-sku",
"format" => "required",
"woo_suggest" => "SKU",
),
"Product title" => array(
"name" => "Product title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"Product reference type" => array(
"name" => "Product reference type",
"feed_name" => "product-reference-type",
"format" => "required",
),
"Product reference value" => array(
"name" => "Product reference value",
"feed_name" => "product-reference-value",
"format" => "required",
),
"Variant ID" => array(
"name" => "Variant ID",
"feed_name" => "variant-id",
"format" => "optional",
),
"Variant Size Value" => array(
"name" => "Variant Size Value",
"feed_name" => "variant-size-value",
"format" => "optional",
),
"Image 1" => array(
"name" => "Image 1",
"feed_name" => "image-1",
"format" => "required",
"woo_suggest" => "image",
),
"Image 2" => array(
"name" => "Image 2",
"feed_name" => "image-2",
"format" => "optional",
),
"Image 3" => array(
"name" => "Image 3",
"feed_name" => "image-3",
"format" => "optional",
),
"Image 4" => array(
"name" => "Image 4",
"feed_name" => "image-4",
"format" => "optional",
),
"Image 5" => array(
"name" => "Image 5",
"feed_name" => "image-5",
"format" => "optional",
),
"Image 6" => array(
"name" => "Image 6",
"feed_name" => "image-6",
"format" => "optional",
),
"Image Size Chart" => array(
"name" => "Image Size Chart",
"feed_name" => "image-size-chart",
"format" => "optional",
),
"Description" => array(
"name" => "Description",
"feed_name" => "product-description",
"format" => "required",
"woo_suggest" => "description",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "brand",
"format" => "required",
),
"Adult" => array(
"name" => "Adult",
"feed_name" => "adult",
"format" => "required",
),
"Keywords" => array(
"name" => "Keywords",
"feed_name" => "keywords",
"format" => "optional",
),
"Offer SKU" => array(
"name" => "Offer SKU",
"feed_name" => "sku",
"format" => "required",
),
"Offer Price" => array(
"name" => "Offer Price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"Offer Quantity" => array(
"name" => "Offer Quantity",
"feed_name" => "quantity",
"format" => "required",
"woo_suggest" => "quantity",
),
"Minimum Quantity Alert" => array(
"name" => "Minimum Quantity Alert",
"feed_name" => "min-quantity-alert",
"format" => "optional",
),
"Offer State" => array(
"name" => "Offer State",
"feed_name" => "state",
"format" => "required",
"woo_suggest" => "condition",
),
"Logistic Class" => array(
"name" => "Logistic Class",
"feed_name" => "logistic-class",
"format" => "required",
),
"Discount Price" => array(
"name" => "Discount Price",
"feed_name" => "discount-price",
"format" => "optional",
"woo_suggest" => "sale_price",
),
"Lead Time to Ship" => array(
"name" => "Lead Time to Ship",
"feed_name" => "leadtime-to-ship",
"format" => "required",
),
"Club Catch eligible" => array(
"name" => "Club Catch eligible",
"feed_name" => "club-catch-eligible",
"format" => "required",
),
"GST %" => array(
"name" => "GST %",
"feed_name" => "tax-au",
"format" => "required",
),
),
);
return $catchcomau;
}
}
?>

View File

@@ -0,0 +1,117 @@
<?php
/**
* Settings for Compari Romania feeds
*/
class WooSEA_compari_ro {
public $compari_ro;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$compari_ro = array(
"Feed fields" => array(
"productid" => array(
"name" => "productid",
"feed_name" => "productid",
"format" => "required",
"woo_suggest" => "id",
),
"manufacturer" => array(
"name" => "manufacturer",
"feed_name" => "manufacturer",
"format" => "required",
),
"name" => array(
"name" => "name",
"feed_name" => "name",
"format" => "required",
"woo_suggest" => "title",
),
"category" => array(
"name" => "category",
"feed_name" => "category",
"format" => "required",
"woo_suggest" => "categories",
),
"product_url" => array(
"name" => "product_url",
"feed_name" => "product_url",
"format" => "required",
"woo_suggest" => "link",
),
"price" => array(
"name" => "price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"identifier" => array(
"name" => "identifier",
"feed_name" => "identifier",
"format" => "required",
),
"image_url" => array(
"name" => "image_url",
"feed_name" => "image_url",
"format" => "optional",
"woo_suggest" => "image",
),
"image_url_2" => array(
"name" => "image_url_2",
"feed_name" => "image_url_2",
"format" => "optional",
),
"image_url_3" => array(
"name" => "image_url_3",
"feed_name" => "image_url_3",
"format" => "optional",
),
"description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "optional",
"woo_suggest" => "description",
),
"delivery_time" => array(
"name" => "delivery_time",
"feed_name" => "delivery_time",
"format" => "optional",
),
"delivery_cost" => array(
"name" => "delivery_cost",
"feed_name" => "delivery_cost",
"format" => "optional",
),
"EAN_code" => array(
"name" => "EAN_code",
"feed_name" => "EAN_code",
"format" => "optional",
),
"net_price" => array(
"name" => "net_price",
"feed_name" => "net_price",
"format" => "optional",
),
"color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "optional",
),
"size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "optional",
),
"GroupId" => array(
"name" => "GroupId",
"feed_name" => "GroupId",
"format" => "optional",
"woo_suggest" => "item_group_id",
),
),
);
return $compari_ro;
}
}
?>

View File

@@ -0,0 +1,261 @@
<?php
/**
* Settings for Custom product feeds
*/
class WooSEA_customfeed {
public $customfeed;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$customfeed = array(
"Basic product data" => array(
"Product ID" => array(
"name" => "id",
"feed_name" => "id",
"format" => "required",
"woo_suggest" => "id",
),
"Product title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"Product description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"Product URL" => array(
"name" => "link",
"feed_name" => "link",
"format" => "required",
"woo_suggest" => "link",
),
"Main image URL" => array(
"name" => "image_link",
"feed_name" => "image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image URL" => array(
"name" => "additional_image_link",
"feed_name" => "additional_image_link",
"format" => "optional",
),
"Product URL mobile" => array(
"name" => "mobile_link",
"feed_name" => "mobile_link",
"format" => "optional",
),
),
"Price & availability" => array(
"Stock status" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "optional",
"woo_suggest" => "availability",
),
"Availability date" => array(
"name" => "availability_date",
"feed_name" => "availability_date",
"format" => "optional",
),
"Expiration date" => array(
"name" => "expiration_date",
"feed_name" => "expiration_date",
"format" => "optional",
),
"Price" => array(
"name" => "Price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"Sale price" => array(
"name" => "sale_price",
"feed_name" => "sale_price",
"format" => "optional",
"woo_suggest" => "sale_price",
),
"Sale price effective date" => array(
"name" => "sale_price_effective_date",
"feed_name" => "sale_price_effective_date",
"format" => "optional",
),
"Unit pricing measure" => array(
"name" => "unit_pricing_measure",
"feed_name" => "unit_pricing_measure",
"format" => "optional",
),
"Unit pricing base measure" => array(
"name" => "unit_pricing_measure",
"feed_name" => "unit_pricing_measure",
"format" => "optional",
),
"Installment" => array(
"name" => "installment",
"feed_name" => "installment",
"format" => "optional",
),
"Loyalty points" => array(
"name" => "loyalty_points",
"feed_name" => "loyalty_points",
"format" => "optional",
),
),
"Product category" => array(
"Categories" => array(
"name" => "categories",
"feed_name" => "categories",
"format" => "required",
"woo_suggest" => "categories",
),
"Product type" => array(
"name" => "product_type",
"feed_name" => "product_type",
"format" => "optional",
"woo_suggest" => "product_type",
),
),
"Product identifiers" => array(
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Gtin" => array(
"name" => "gtin",
"feed_name" => "gtin",
"format" => "optional",
),
"MPN" => array(
"name" => "mpn",
"feed_name" => "mpn",
"format" => "optional",
),
"EAN" => array(
"name" => "ean",
"feed_name" => "ean",
"format" => "optional",
),
),
"Detailed product description" => array(
"Condition" => array(
"name" => "condition",
"feed_name" => "condition",
"format" => "optional",
"woo_suggest" => "condition",
),
"Adult" => array(
"name" => "adult",
"feed_name" => "adult",
"format" => "optional",
),
"Multipack" => array(
"name" => "multipack",
"feed_name" => "multipack",
"format" => "optional",
),
"Is bundle" => array(
"name" => "is_bundle",
"feed_name" => "is_bundle",
"format" => "optional",
),
"Energy efficiency class" => array(
"name" => "energy_efficiency_class",
"feed_name" => "energy_efficiency_class",
"format" => "optional",
),
"Age group" => array(
"name" => "age_group",
"feed_name" => "age_group",
"format" => "optional",
),
"Color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "optional",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "optional",
),
"Material" => array(
"name" => "material",
"feed_name" => "material",
"format" => "optional",
),
"Pattern" => array(
"name" => "pattern",
"feed_name" => "pattern",
"format" => "optional",
),
"Size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "optional",
),
"Size type" => array(
"name" => "size_type",
"feed_name" => "size_type",
"format" => "optional",
),
"Size system" => array(
"name" => "size_system",
"feed_name" => "size_system",
"format" => "optional",
),
"Item group ID" => array(
"name" => "item_group_id",
"feed_name" => "item_group_id",
"format" => "optional",
),
),
"Shipping" => array(
"Shipping" => array(
"name" => "shipping",
"feed_name" => "shipping",
"format" => "optional",
),
"Shipping label" => array(
"name" => "shipping_label",
"feed_name" => "shipping_label",
"format" => "optional",
),
"Shipping weight" => array(
"name" => "shipping_weight",
"feed_name" => "shipping_weight",
"format" => "optional",
),
"Shipping length" => array(
"name" => "shipping_length",
"feed_name" => "shipping_length",
"format" => "optional",
),
"Shipping width" => array(
"name" => "shipping_width",
"feed_name" => "shipping_width",
"format" => "optional",
),
"Shipping height" => array(
"name" => "shipping_height",
"feed_name" => "shipping_height",
"format" => "optional",
),
),
"Tax" => array(
"Tax" => array(
"name" => "tax",
"feed_name" => "tax",
"format" => "optional",
),
),
);
return $customfeed;
}
}
?>

View File

@@ -0,0 +1,248 @@
<?php
/**
* Settings for Daisycon huis & tuin feeds
*/
class WooSEA_daisyconhuisentuin {
public $daisyconhuisentuin;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$daisyconhuisentuin = array(
"Feed fields" => array(
"description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"link" => array(
"name" => "link",
"feed_name" => "link",
"format" => "required",
"woo_suggest" => "link",
),
"price" => array(
"name" => "price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"sku" => array(
"name" => "sku",
"feed_name" => "sku",
"format" => "required",
"woo_suggest" => "sku",
),
"title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"additional_costs" => array(
"name" => "additional_costs",
"feed_name" => "additional_costs",
"format" => "optional",
),
"brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "optional",
),
"brand_logo" => array(
"name" => "brand_logo",
"feed_name" => "brand_log",
"format" => "optional",
),
"category" => array(
"name" => "category",
"feed_name" => "category",
"format" => "optional",
),
"category_path" => array(
"name" => "category_path",
"feed_name" => "category_path",
"format" => "optional",
"woo_suggest" => "category_path",
),
"color_primary" => array(
"name" => "color_primary",
"feed_name" => "color_primary",
"format" => "optional",
),
"condition" => array(
"name" => "condition",
"feed_name" => "condition",
"format" => "optional",
"woo_suggest" => "condition",
),
"delivery_description" => array(
"name" => "delivery_description",
"feed_name" => "delivery_description",
"format" => "optional",
),
"delivery_time" => array(
"name" => "delivery_time",
"feed_name" => "delivery_time",
"format" => "optional",
),
"designer" => array(
"name" => "designer",
"feed_name" => "designer",
"format" => "optional",
),
"ean" => array(
"name" => "ean",
"feed_name" => "ean",
"format" => "optional",
),
"gender_target" => array(
"name" => "gender_target",
"feed_name" => "gender_target",
"format" => "optional",
),
"google_category_id" => array(
"name" => "google_category_id",
"feed_name" => "google_category_id",
"format" => "optional",
"woo_suggest" => "category",
),
"in_stock" => array(
"name" => "in_stock",
"feed_name" => "in_stock",
"format" => "optional",
"woo_suggest" => "stock",
),
"in_stock_amount" => array(
"name" => "in_stock_amount",
"feed_name" => "in_stock_amount",
"format" => "optional",
),
"keywords" => array(
"name" => "keywords",
"feed_name" => "keywords",
"format" => "optional",
),
"made_in_country" => array(
"name" => "made_in_country",
"feed_name" => "made_in_country",
"format" => "optional",
),
"material_1" => array(
"name" => "material_1",
"feed_name" => "material_1",
"format" => "optional",
),
"material_2" => array(
"name" => "material_2",
"feed_name" => "material_2",
"format" => "optional",
),
"material_3" => array(
"name" => "material_3",
"feed_name" => "material_3",
"format" => "optional",
),
"model" => array(
"name" => "model",
"feed_name" => "model",
"format" => "optional",
),
"price_old" => array(
"name" => "price_old",
"feed_name" => "price_old",
"format" => "optional",
),
"price_shipping" => array(
"name" => "price_shipping",
"feed_name" => "price_shipping",
"format" => "optional",
),
"priority" => array(
"name" => "priority",
"feed_name" => "priority",
"format" => "optional",
),
"size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "optional",
),
"size_description" => array(
"name" => "size_description",
"feed_name" => "size_description",
"format" => "optional",
),
"size_length" => array(
"name" => "size_length",
"feed_name" => "size_length",
"format" => "optional",
),
"size_width" => array(
"name" => "size_width",
"feed_name" => "size_width",
"format" => "optional",
),
"terms_condition" => array(
"name" => "terms_condition",
"feed_name" => "terms_condition",
"format" => "optional",
),
"weight" => array(
"name" => "weight",
"feed_name" => "weight",
"format" => "optional",
),
"image_link_1" => array(
"name" => "image_link_1",
"feed_name" => "image_link_1",
"format" => "optional",
),
"image_link_2" => array(
"name" => "image_link_2",
"feed_name" => "image_link_2",
"format" => "optional",
),
"image_link_3" => array(
"name" => "image_link_3",
"feed_name" => "image_link_3",
"format" => "optional",
),
"image_link_4" => array(
"name" => "image_link_4",
"feed_name" => "image_link_4",
"format" => "optional",
),
"image_link_5" => array(
"name" => "image_link_5",
"feed_name" => "image_link_5",
"format" => "optional",
),
"image_link_6" => array(
"name" => "image_link_6",
"feed_name" => "image_link_6",
"format" => "optional",
),
"image_link_7" => array(
"name" => "image_link_7",
"feed_name" => "image_link_7",
"format" => "optional",
),
"image_link_8" => array(
"name" => "image_link_8",
"feed_name" => "image_link_8",
"format" => "optional",
),
"image_link_9" => array(
"name" => "image_link_9",
"feed_name" => "image_link_9",
"format" => "optional",
),
),
);
return $daisyconhuisentuin;
}
}
?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,123 @@
<?php
/**
* Settings for Fashionchick feeds
*/
class WooSEA_fashionchick {
public $fashionchick;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$fashionchick = array(
"Feed fields" => array(
"Product ID" => array(
"name" => "Product ID",
"feed_name" => "Product ID",
"format" => "required",
"woo_suggest" => "id",
),
"Url" => array(
"name" => "Url",
"feed_name" => "Url",
"format" => "required",
"woo_suggest" => "link",
),
"Titel" => array(
"name" => "Titel",
"feed_name" => "Titel",
"format" => "required",
"woo_suggest" => "title",
),
"Image" => array(
"name" => "Image",
"feed_name" => "Image",
"format" => "required",
"woo_suggest" => "image",
),
"Omschrijving" => array(
"name" => "Omschrijving",
"feed_name" => "Omschrijving",
"format" => "required",
"woo_suggest" => "description",
),
"Category (pad)" => array(
"name" => "Category (pad)",
"feed_name" => "Category (pad)",
"format" => "required",
"woo_suggest" => "category_path",
),
"SubCategory" => array(
"name" => "SubCategory",
"feed_name" => "SubCategory",
"format" => "required",
"woo_suggest" => "one_category",
),
"Prijs" => array(
"name" => "Prijs",
"feed_name" => "Prijs",
"format" => "required",
"woo_suggest" => "price",
),
"Merk" => array(
"name" => "Merk",
"feed_name" => "Merk",
"format" => "required",
),
"Kleur" => array(
"name" => "Kleur",
"feed_name" => "Kleur",
"format" => "required",
),
"Cluster ID" => array(
"name" => "Cluster ID",
"feed_name" => "Cluster ID",
"format" => "optional",
),
"Levertijd" => array(
"name" => "Levertijd",
"feed_name" => "Levertijd",
"format" => "optional",
),
"Verzendkosten" => array(
"name" => "Verzendkosten",
"feed_name" => "Verzendkosten",
"format" => "optional",
),
"Oude prijs" => array(
"name" => "Oude prijs",
"feed_name" => "Oude prijs",
"format" => "optional",
),
"Product maten" => array(
"name" => "Product maten",
"feed_name" => "Product maten",
"format" => "required",
"woo_suggest" => "description",
),
"Voorraad" => array(
"name" => "Voorraad",
"feed_name" => "Voorraad",
"format" => "optional",
),
"Voorrraad aantal" => array(
"name" => "Voorraad aantal",
"feed_name" => "Voorraad aantal",
"format" => "required",
),
"Materiaal" => array(
"name" => "Materiaal",
"feed_name" => "Materiaal",
"format" => "required",
),
"Geslacht" => array(
"name" => "Geslacht",
"feed_name" => "Geslacht",
"format" => "required",
),
),
);
return $fashionchick;
}
}
?>

View File

@@ -0,0 +1,233 @@
<?php
/**
* Settings for Fruugoaustralia.com feeds
*/
class WooSEA_fruugoaus {
public $fruugoaus;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$fruugoaus = array(
"Feed fields" => array(
"Product Id" => array(
"name" => "ProductId",
"feed_name" => "ProductId",
"format" => "required",
"woo_suggest" => "id",
),
"Sku Id" => array(
"name" => "SkuId",
"feed_name" => "SkuId",
"format" => "required",
"woo_suggest" => "sku",
),
"GTINs" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "required",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "Brand",
"format" => "required",
),
"Category" => array(
"name" => "Category",
"feed_name" => "Category",
"format" => "required",
"woo_suggest" => "category",
),
"Image URL 1" => array(
"name" => "Imageurl1",
"feed_name" => "Imageurl1",
"format" => "required",
"woo_suggest" => "image",
),
"Stock Status" => array(
"name" => "StockStatus",
"feed_name" => "StockStatus",
"format" => "required",
"woo_suggest" => "availability",
),
"Quantity in Stock" => array(
"name" => "StockQuantity",
"feed_name" => "StockQuantity",
"format" => "required",
),
"Title" => array(
"name" => "Title",
"feed_name" => "Title",
"format" => "required",
"woo_suggest" => "title",
),
"Description" => array(
"name" => "Description",
"feed_name" => "Description",
"format" => "required",
"woo_suggest" => "description",
),
"Normal Price With VAT" => array(
"name" => "NormalPriceWithVat",
"feed_name" => "NormalPriceWithVat",
"format" => "required",
"woo_suggest" => "price",
),
"Normal Price Without VAT" => array(
"name" => "NormalPriceWithoutVat",
"feed_name" => "NormalPriceWithoutVat",
"format" => "optional",
),
"VAT Rate" => array(
"name" => "VATRate",
"feed_name" => "VATRate",
"format" => "required",
"woo_suggest" => "vat",
),
"Image URL 2" => array(
"name" => "Imageurl2",
"feed_name" => "Imageurl2",
"format" => "optional",
),
"Image URL 3" => array(
"name" => "Imageurl3",
"feed_name" => "Imageurl3",
"format" => "optional",
),
"Image URL 4" => array(
"name" => "Imageurl4",
"feed_name" => "Imageurl4",
"format" => "optional",
),
"Image URL 5" => array(
"name" => "Imageurl5",
"feed_name" => "Imageurl5",
"format" => "optional",
),
"Language" => array(
"name" => "Language",
"feed_name" => "Language",
"format" => "optional",
),
"Attribute Size" => array(
"name" => "AttributeSize",
"feed_name" => "AttributeSize",
"format" => "optional",
),
"Attribute Color" => array(
"name" => "AttributeColor",
"feed_name" => "AttributeColor",
"format" => "optional",
),
"Currency" => array(
"name" => "Currency",
"feed_name" => "Currency",
"format" => "optional",
),
"Discount Price Without VAT" => array(
"name" => "DiscountPriceWithoutVAT",
"feed_name" => "DiscountPriceWithoutVAT",
"format" => "optional",
),
"Discount Price With VAT" => array(
"name" => "DiscountPriceWithVAT",
"feed_name" => "DiscountPriceWithVAT",
"format" => "optional",
),
"ISBN" => array(
"name" => "ISBN",
"feed_name" => "ISBN",
"format" => "optional",
),
"Manufacturer" => array(
"name" => "Manufacturer",
"feed_name" => "Manufacturer",
"format" => "optional",
),
"Restock Date" => array(
"name" => "RestockDate",
"feed_name" => "RestockDate",
"format" => "optional",
),
"Lead Time" => array(
"name" => "LeadTime",
"feed_name" => "LeadTime",
"format" => "optional",
),
"Package Weight" => array(
"name" => "PackageWeight",
"feed_name" => "PackageWeight",
"format" => "optional",
),
"Attribute 1" => array(
"name" => "Attribute1",
"feed_name" => "Attribute1",
"format" => "optional",
),
"Attribute 2" => array(
"name" => "Attribute2",
"feed_name" => "Attribute2",
"format" => "optional",
),
"Attribute 3" => array(
"name" => "Attribute3",
"feed_name" => "Attribute3",
"format" => "optional",
),
"Attribute 4" => array(
"name" => "Attribute4",
"feed_name" => "Attribute4",
"format" => "optional",
),
"Attribute 5" => array(
"name" => "Attribute5",
"feed_name" => "Attribute5",
"format" => "optional",
),
"Attribute 6" => array(
"name" => "Attribute6",
"feed_name" => "Attribute6",
"format" => "optional",
),
"Attribute 7" => array(
"name" => "Attribute7",
"feed_name" => "Attribute7",
"format" => "optional",
),
"Attribute 8" => array(
"name" => "Attribute8",
"feed_name" => "Attribute8",
"format" => "optional",
),
"Attribute 9" => array(
"name" => "Attribute9",
"feed_name" => "Attribute9",
"format" => "optional",
),
"Attribute 10" => array(
"name" => "Attribute10",
"feed_name" => "Attribute10",
"format" => "optional",
),
"Country" => array(
"name" => "Country",
"feed_name" => "Country",
"format" => "optional",
),
"Discount Price Start Date" => array(
"name" => "DiscountPriceStartDate",
"feed_name" => "DiscountPriceStartDate",
"format" => "optional",
),
"Discount Price End Date" => array(
"name" => "DiscountPriceEndDate",
"feed_name" => "DiscountPriceEndDate",
"format" => "optional",
),
),
);
return $fruugoaus;
}
}
?>

View File

@@ -0,0 +1,233 @@
<?php
/**
* Settings for Fruugo.es feeds
*/
class WooSEA_fruugoes {
public $fruugoes;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$fruugoes = array(
"Feed fields" => array(
"Product Id" => array(
"name" => "ProductId",
"feed_name" => "ProductId",
"format" => "required",
"woo_suggest" => "id",
),
"Sku Id" => array(
"name" => "SkuId",
"feed_name" => "SkuId",
"format" => "required",
"woo_suggest" => "sku",
),
"GTINs" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "required",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "Brand",
"format" => "required",
),
"Category" => array(
"name" => "Category",
"feed_name" => "Category",
"format" => "required",
"woo_suggest" => "category",
),
"Image URL 1" => array(
"name" => "Imageurl1",
"feed_name" => "Imageurl1",
"format" => "required",
"woo_suggest" => "image",
),
"Stock Status" => array(
"name" => "StockStatus",
"feed_name" => "StockStatus",
"format" => "required",
"woo_suggest" => "availability",
),
"Quantity in Stock" => array(
"name" => "StockQuantity",
"feed_name" => "StockQuantity",
"format" => "required",
),
"Title" => array(
"name" => "Title",
"feed_name" => "Title",
"format" => "required",
"woo_suggest" => "title",
),
"Description" => array(
"name" => "Description",
"feed_name" => "Description",
"format" => "required",
"woo_suggest" => "description",
),
"Normal Price With VAT" => array(
"name" => "NormalPriceWithVAT",
"feed_name" => "NormalPriceWithVAT",
"format" => "required",
"woo_suggest" => "price",
),
"Normal Price Without VAT" => array(
"name" => "NormalPriceWithoutVAT",
"feed_name" => "NormalPriceWithoutVAT",
"format" => "optional",
),
"VAT Rate" => array(
"name" => "VATRate",
"feed_name" => "VATRate",
"format" => "required",
"woo_suggest" => "vat",
),
"Image URL 2" => array(
"name" => "Imageurl2",
"feed_name" => "Imageurl2",
"format" => "optional",
),
"Image URL 3" => array(
"name" => "Imageurl3",
"feed_name" => "Imageurl3",
"format" => "optional",
),
"Image URL 4" => array(
"name" => "Imageurl4",
"feed_name" => "Imageurl4",
"format" => "optional",
),
"Image URL 5" => array(
"name" => "Imageurl5",
"feed_name" => "Imageurl5",
"format" => "optional",
),
"Language" => array(
"name" => "Language",
"feed_name" => "Language",
"format" => "optional",
),
"Attribute Size" => array(
"name" => "AttributeSize",
"feed_name" => "AttributeSize",
"format" => "optional",
),
"Attribute Color" => array(
"name" => "AttributeColor",
"feed_name" => "AttributeColor",
"format" => "optional",
),
"Currency" => array(
"name" => "Currency",
"feed_name" => "Currency",
"format" => "optional",
),
"Discount Price Without VAT" => array(
"name" => "DiscountPriceWithoutVAT",
"feed_name" => "DiscountPriceWithoutVAT",
"format" => "optional",
),
"Discount Price With VAT" => array(
"name" => "DiscountPriceWithVAT",
"feed_name" => "DiscountPriceWithVAT",
"format" => "optional",
),
"ISBN" => array(
"name" => "ISBN",
"feed_name" => "ISBN",
"format" => "optional",
),
"Manufacturer" => array(
"name" => "Manufacturer",
"feed_name" => "Manufacturer",
"format" => "optional",
),
"Restock Date" => array(
"name" => "RestockDate",
"feed_name" => "RestockDate",
"format" => "optional",
),
"Lead Time" => array(
"name" => "LeadTime",
"feed_name" => "LeadTime",
"format" => "optional",
),
"Package Weight" => array(
"name" => "PackageWeight",
"feed_name" => "PackageWeight",
"format" => "optional",
),
"Attribute 1" => array(
"name" => "Attribute1",
"feed_name" => "Attribute1",
"format" => "optional",
),
"Attribute 2" => array(
"name" => "Attribute2",
"feed_name" => "Attribute2",
"format" => "optional",
),
"Attribute 3" => array(
"name" => "Attribute3",
"feed_name" => "Attribute3",
"format" => "optional",
),
"Attribute 4" => array(
"name" => "Attribute4",
"feed_name" => "Attribute4",
"format" => "optional",
),
"Attribute 5" => array(
"name" => "Attribute5",
"feed_name" => "Attribute5",
"format" => "optional",
),
"Attribute 6" => array(
"name" => "Attribute6",
"feed_name" => "Attribute6",
"format" => "optional",
),
"Attribute 7" => array(
"name" => "Attribute7",
"feed_name" => "Attribute7",
"format" => "optional",
),
"Attribute 8" => array(
"name" => "Attribute8",
"feed_name" => "Attribute8",
"format" => "optional",
),
"Attribute 9" => array(
"name" => "Attribute9",
"feed_name" => "Attribute9",
"format" => "optional",
),
"Attribute 10" => array(
"name" => "Attribute10",
"feed_name" => "Attribute10",
"format" => "optional",
),
"Country" => array(
"name" => "Country",
"feed_name" => "Country",
"format" => "optional",
),
"Discount Price Start Date" => array(
"name" => "DiscountPriceStartDate",
"feed_name" => "DiscountPriceStartDate",
"format" => "optional",
),
"Discount Price End Date" => array(
"name" => "DiscountPriceEndDate",
"feed_name" => "DiscountPriceEndDate",
"format" => "optional",
),
),
);
return $fruugoes;
}
}
?>

View File

@@ -0,0 +1,233 @@
<?php
/**
* Settings for Fruugo.nl feeds
*/
class WooSEA_fruugonl {
public $fruugonl;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$fruugonl = array(
"Feed fields" => array(
"Product Id" => array(
"name" => "ProductId",
"feed_name" => "ProductId",
"format" => "required",
"woo_suggest" => "id",
),
"Sku Id" => array(
"name" => "SkuId",
"feed_name" => "SkuId",
"format" => "required",
"woo_suggest" => "sku",
),
"GTINs" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "required",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "Brand",
"format" => "required",
),
"Category" => array(
"name" => "Category",
"feed_name" => "Category",
"format" => "required",
"woo_suggest" => "category",
),
"Image URL 1" => array(
"name" => "Imageurl1",
"feed_name" => "Imageurl1",
"format" => "required",
"woo_suggest" => "image",
),
"Stock Status" => array(
"name" => "StockStatus",
"feed_name" => "StockStatus",
"format" => "required",
"woo_suggest" => "availability",
),
"Quantity in Stock" => array(
"name" => "StockQuantity",
"feed_name" => "StockQuantity",
"format" => "required",
),
"Title" => array(
"name" => "Title",
"feed_name" => "Title",
"format" => "required",
"woo_suggest" => "title",
),
"Description" => array(
"name" => "Description",
"feed_name" => "Description",
"format" => "required",
"woo_suggest" => "description",
),
"Normal Price With VAT" => array(
"name" => "NormalPriceWithVAT",
"feed_name" => "NormalPriceWithVAT",
"format" => "required",
"woo_suggest" => "price",
),
"Normal Price Without VAT" => array(
"name" => "NormalPriceWithoutVAT",
"feed_name" => "NormalPriceWithoutVAT",
"format" => "optional",
),
"VAT Rate" => array(
"name" => "VATRate",
"feed_name" => "VATRate",
"format" => "required",
"woo_suggest" => "vat",
),
"Image URL 2" => array(
"name" => "Imageurl2",
"feed_name" => "Imageurl2",
"format" => "optional",
),
"Image URL 3" => array(
"name" => "Imageurl3",
"feed_name" => "Imageurl3",
"format" => "optional",
),
"Image URL 4" => array(
"name" => "Imageurl4",
"feed_name" => "Imageurl4",
"format" => "optional",
),
"Image URL 5" => array(
"name" => "Imageurl5",
"feed_name" => "Imageurl5",
"format" => "optional",
),
"Language" => array(
"name" => "Language",
"feed_name" => "Language",
"format" => "optional",
),
"Attribute Size" => array(
"name" => "AttributeSize",
"feed_name" => "AttributeSize",
"format" => "optional",
),
"Attribute Color" => array(
"name" => "AttributeColor",
"feed_name" => "AttributeColor",
"format" => "optional",
),
"Currency" => array(
"name" => "Currency",
"feed_name" => "Currency",
"format" => "optional",
),
"Discount Price Without VAT" => array(
"name" => "DiscountPriceWithoutVAT",
"feed_name" => "DiscountPriceWithoutVAT",
"format" => "optional",
),
"Discount Price With VAT" => array(
"name" => "DiscountPriceWithVAT",
"feed_name" => "DiscountPriceWithVAT",
"format" => "optional",
),
"ISBN" => array(
"name" => "ISBN",
"feed_name" => "ISBN",
"format" => "optional",
),
"Manufacturer" => array(
"name" => "Manufacturer",
"feed_name" => "Manufacturer",
"format" => "optional",
),
"Restock Date" => array(
"name" => "RestockDate",
"feed_name" => "RestockDate",
"format" => "optional",
),
"Lead Time" => array(
"name" => "LeadTime",
"feed_name" => "LeadTime",
"format" => "optional",
),
"Package Weight" => array(
"name" => "PackageWeight",
"feed_name" => "PackageWeight",
"format" => "optional",
),
"Attribute 1" => array(
"name" => "Attribute1",
"feed_name" => "Attribute1",
"format" => "optional",
),
"Attribute 2" => array(
"name" => "Attribute2",
"feed_name" => "Attribute2",
"format" => "optional",
),
"Attribute 3" => array(
"name" => "Attribute3",
"feed_name" => "Attribute3",
"format" => "optional",
),
"Attribute 4" => array(
"name" => "Attribute4",
"feed_name" => "Attribute4",
"format" => "optional",
),
"Attribute 5" => array(
"name" => "Attribute5",
"feed_name" => "Attribute5",
"format" => "optional",
),
"Attribute 6" => array(
"name" => "Attribute6",
"feed_name" => "Attribute6",
"format" => "optional",
),
"Attribute 7" => array(
"name" => "Attribute7",
"feed_name" => "Attribute7",
"format" => "optional",
),
"Attribute 8" => array(
"name" => "Attribute8",
"feed_name" => "Attribute8",
"format" => "optional",
),
"Attribute 9" => array(
"name" => "Attribute9",
"feed_name" => "Attribute9",
"format" => "optional",
),
"Attribute 10" => array(
"name" => "Attribute10",
"feed_name" => "Attribute10",
"format" => "optional",
),
"Country" => array(
"name" => "Country",
"feed_name" => "Country",
"format" => "optional",
),
"Discount Price Start Date" => array(
"name" => "DiscountPriceStartDate",
"feed_name" => "DiscountPriceStartDate",
"format" => "optional",
),
"Discount Price End Date" => array(
"name" => "DiscountPriceEndDate",
"feed_name" => "DiscountPriceEndDate",
"format" => "optional",
),
),
);
return $fruugonl;
}
}
?>

View File

@@ -0,0 +1,234 @@
<?php
/**
* Settings for Fruugo.co.uk feeds
*/
class WooSEA_fruugouk {
public $fruugouk;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$fruugouk = array(
"Feed fields" => array(
"Product Id" => array(
"name" => "ProductId",
"feed_name" => "ProductId",
"format" => "required",
"woo_suggest" => "id",
),
"Sku Id" => array(
"name" => "SkuId",
"feed_name" => "SkuId",
"format" => "required",
"woo_suggest" => "sku",
),
"GTINs" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "required",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "Brand",
"format" => "required",
),
"Category" => array(
"name" => "Category",
"feed_name" => "Category",
"format" => "required",
"woo_suggest" => "category",
),
"Image URL 1" => array(
"name" => "Imageurl1",
"feed_name" => "Imageurl1",
"format" => "required",
"woo_suggest" => "image",
),
"Stock Status" => array(
"name" => "StockStatus",
"feed_name" => "StockStatus",
"format" => "required",
"woo_suggest" => "availability",
),
"Quantity in Stock" => array(
"name" => "StockQuantity",
"feed_name" => "StockQuantity",
"format" => "required",
),
"Title" => array(
"name" => "Title",
"feed_name" => "Title",
"format" => "required",
"woo_suggest" => "title",
),
"Description" => array(
"name" => "Description",
"feed_name" => "Description",
"format" => "required",
"woo_suggest" => "description",
),
"Normal Price Without VAT" => array(
"name" => "NormalPriceWithoutVAT",
"feed_name" => "NormalPriceWithoutVAT",
"format" => "optional",
),
"Normal Price With VAT" => array(
"name" => "NormalPriceWithVAT",
"feed_name" => "NormalPriceWithVAT",
"format" => "required",
"woo_suggest" => "price",
),
"VAT Rate" => array(
"name" => "VATRate",
"feed_name" => "VATRate",
"format" => "required",
"woo_suggest" => "vat",
),
"Image URL 2" => array(
"name" => "Imageurl2",
"feed_name" => "Imageurl2",
"format" => "optional",
),
"Image URL 3" => array(
"name" => "Imageurl3",
"feed_name" => "Imageurl3",
"format" => "optional",
),
"Image URL 4" => array(
"name" => "Imageurl4",
"feed_name" => "Imageurl4",
"format" => "optional",
),
"Image URL 5" => array(
"name" => "Imageurl5",
"feed_name" => "Imageurl5",
"format" => "optional",
),
"Language" => array(
"name" => "Language",
"feed_name" => "Language",
"format" => "optional",
),
"Attribute Size" => array(
"name" => "AttributeSize",
"feed_name" => "AttributeSize",
"format" => "optional",
),
"Attribute Color" => array(
"name" => "AttributeColor",
"feed_name" => "AttributeColor",
"format" => "optional",
),
"Currency" => array(
"name" => "Currency",
"feed_name" => "Currency",
"format" => "optional",
),
"Discount Price Without VAT" => array(
"name" => "DiscountPriceWithoutVAT",
"feed_name" => "DiscountPriceWithoutVAT",
"format" => "optional",
),
"Discount Price With VAT" => array(
"name" => "DiscountPriceWithVAT",
"feed_name" => "DiscountPriceWithVAT",
"format" => "optional",
),
"ISBN" => array(
"name" => "ISBN",
"feed_name" => "ISBN",
"format" => "optional",
),
"Manufacturer" => array(
"name" => "Manufacturer",
"feed_name" => "Manufacturer",
"format" => "optional",
),
"Restock Date" => array(
"name" => "RestockDate",
"feed_name" => "RestockDate",
"format" => "optional",
),
"Lead Time" => array(
"name" => "LeadTime",
"feed_name" => "LeadTime",
"format" => "optional",
),
"Package Weight" => array(
"name" => "PackageWeight",
"feed_name" => "PackageWeight",
"format" => "optional",
),
"Attribute 1" => array(
"name" => "Attribute1",
"feed_name" => "Attribute1",
"format" => "optional",
),
"Attribute 2" => array(
"name" => "Attribute2",
"feed_name" => "Attribute2",
"format" => "optional",
),
"Attribute 3" => array(
"name" => "Attribute3",
"feed_name" => "Attribute3",
"format" => "optional",
),
"Attribute 4" => array(
"name" => "Attribute4",
"feed_name" => "Attribute4",
"format" => "optional",
),
"Attribute 5" => array(
"name" => "Attribute5",
"feed_name" => "Attribute5",
"format" => "optional",
),
"Attribute 6" => array(
"name" => "Attribute6",
"feed_name" => "Attribute6",
"format" => "optional",
),
"Attribute 7" => array(
"name" => "Attribute7",
"feed_name" => "Attribute7",
"format" => "optional",
),
"Attribute 8" => array(
"name" => "Attribute8",
"feed_name" => "Attribute8",
"format" => "optional",
),
"Attribute 9" => array(
"name" => "Attribute9",
"feed_name" => "Attribute9",
"format" => "optional",
),
"Attribute 10" => array(
"name" => "Attribute10",
"feed_name" => "Attribute10",
"format" => "optional",
),
"Country" => array(
"name" => "Country",
"feed_name" => "Country",
"format" => "optional",
),
"Discount Price Start Date" => array(
"name" => "DiscountPriceStartDate",
"feed_name" => "DiscountPriceStartDate",
"format" => "optional",
),
"Discount Price End Date" => array(
"name" => "DiscountPriceEndDate",
"feed_name" => "DiscountPriceEndDate",
"format" => "optional",
),
),
);
return $fruugouk;
}
}
?>

View File

@@ -0,0 +1,233 @@
<?php
/**
* Settings for Fruugo.us feeds
*/
class WooSEA_fruugous {
public $fruugous;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$fruugous = array(
"Feed fields" => array(
"Product Id" => array(
"name" => "ProductId",
"feed_name" => "ProductId",
"format" => "required",
"woo_suggest" => "id",
),
"Sku Id" => array(
"name" => "SkuId",
"feed_name" => "SkuId",
"format" => "required",
"woo_suggest" => "sku",
),
"GTINs" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "required",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "Brand",
"format" => "required",
),
"Category" => array(
"name" => "Category",
"feed_name" => "Category",
"format" => "required",
"woo_suggest" => "category",
),
"Image URL 1" => array(
"name" => "Imageurl1",
"feed_name" => "Imageurl1",
"format" => "required",
"woo_suggest" => "image",
),
"Stock Status" => array(
"name" => "StockStatus",
"feed_name" => "StockStatus",
"format" => "required",
"woo_suggest" => "availability",
),
"Quantity in Stock" => array(
"name" => "StockQuantity",
"feed_name" => "StockQuantity",
"format" => "required",
),
"Title" => array(
"name" => "Title",
"feed_name" => "Title",
"format" => "required",
"woo_suggest" => "title",
),
"Description" => array(
"name" => "Description",
"feed_name" => "Description",
"format" => "required",
"woo_suggest" => "description",
),
"Normal Price With VAT" => array(
"name" => "NormalPriceWithVAT",
"feed_name" => "NormalPriceWithVAT",
"format" => "required",
"woo_suggest" => "price",
),
"Normal Price Without VAT" => array(
"name" => "NormalPriceWithoutVAT",
"feed_name" => "NormalPriceWithoutVAT",
"format" => "optional",
),
"VAT Rate" => array(
"name" => "VATRate",
"feed_name" => "VATRate",
"format" => "required",
"woo_suggest" => "vat",
),
"Image URL 2" => array(
"name" => "Imageurl2",
"feed_name" => "Imageurl2",
"format" => "optional",
),
"Image URL 3" => array(
"name" => "Imageurl3",
"feed_name" => "Imageurl3",
"format" => "optional",
),
"Image URL 4" => array(
"name" => "Imageurl4",
"feed_name" => "Imageurl4",
"format" => "optional",
),
"Image URL 5" => array(
"name" => "Imageurl5",
"feed_name" => "Imageurl5",
"format" => "optional",
),
"Language" => array(
"name" => "Language",
"feed_name" => "Language",
"format" => "optional",
),
"Attribute Size" => array(
"name" => "AttributeSize",
"feed_name" => "AttributeSize",
"format" => "optional",
),
"Attribute Color" => array(
"name" => "AttributeColor",
"feed_name" => "AttributeColor",
"format" => "optional",
),
"Currency" => array(
"name" => "Currency",
"feed_name" => "Currency",
"format" => "optional",
),
"Discount Price Without VAT" => array(
"name" => "DiscountPriceWithoutVAT",
"feed_name" => "DiscountPriceWithoutVAT",
"format" => "optional",
),
"Discount Price With VAT" => array(
"name" => "DiscountPriceWithVAT",
"feed_name" => "DiscountPriceWithVAT",
"format" => "optional",
),
"ISBN" => array(
"name" => "ISBN",
"feed_name" => "ISBN",
"format" => "optional",
),
"Manufacturer" => array(
"name" => "Manufacturer",
"feed_name" => "Manufacturer",
"format" => "optional",
),
"Restock Date" => array(
"name" => "RestockDate",
"feed_name" => "RestockDate",
"format" => "optional",
),
"Lead Time" => array(
"name" => "LeadTime",
"feed_name" => "LeadTime",
"format" => "optional",
),
"Package Weight" => array(
"name" => "PackageWeight",
"feed_name" => "PackageWeight",
"format" => "optional",
),
"Attribute 1" => array(
"name" => "Attribute1",
"feed_name" => "Attribute1",
"format" => "optional",
),
"Attribute 2" => array(
"name" => "Attribute2",
"feed_name" => "Attribute2",
"format" => "optional",
),
"Attribute 3" => array(
"name" => "Attribute3",
"feed_name" => "Attribute3",
"format" => "optional",
),
"Attribute 4" => array(
"name" => "Attribute4",
"feed_name" => "Attribute4",
"format" => "optional",
),
"Attribute 5" => array(
"name" => "Attribute5",
"feed_name" => "Attribute5",
"format" => "optional",
),
"Attribute 6" => array(
"name" => "Attribute6",
"feed_name" => "Attribute6",
"format" => "optional",
),
"Attribute 7" => array(
"name" => "Attribute7",
"feed_name" => "Attribute7",
"format" => "optional",
),
"Attribute 8" => array(
"name" => "Attribute8",
"feed_name" => "Attribute8",
"format" => "optional",
),
"Attribute 9" => array(
"name" => "Attribute9",
"feed_name" => "Attribute9",
"format" => "optional",
),
"Attribute 10" => array(
"name" => "Attribute10",
"feed_name" => "Attribute10",
"format" => "optional",
),
"Country" => array(
"name" => "Country",
"feed_name" => "Country",
"format" => "optional",
),
"Discount Price Start Date" => array(
"name" => "DiscountPriceStartDate",
"feed_name" => "DiscountPriceStartDate",
"format" => "optional",
),
"Discount Price End Date" => array(
"name" => "DiscountPriceEndDate",
"feed_name" => "DiscountPriceEndDate",
"format" => "optional",
),
),
);
return $fruugous;
}
}
?>

View File

@@ -0,0 +1,107 @@
<?php
/**
* Settings for Glami feeds
*/
class WooSEA_glami {
public $glami;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$glami = array(
"Feed fields" => array(
"ITEM_ID" => array(
"name" => "ITEM_ID",
"feed_name" => "ITEM_ID",
"format" => "required",
"woo_suggest" => "id",
),
"ITEMGROUP_ID" => array(
"name" => "ITEMGROUP_ID",
"feed_name" => "ITEMGROUP_ID",
"format" => "optional",
"woo_suggest" => "item_group_id",
),
"PRODUCTNAME" => array(
"name" => "PRODUCTNAME",
"feed_name" => "PRODUCTNAME",
"format" => "required",
"woo_suggest" => "title",
),
"DESCRIPTION" => array(
"name" => "DESCRIPTION",
"feed_name" => "DESCRIPTION",
"format" => "required",
"woo_suggest" => "description",
),
"URL" => array(
"name" => "URL",
"feed_name" => "URL",
"format" => "required",
"woo_suggest" => "link",
),
"URL_SIZE" => array(
"name" => "URL_SIZE",
"feed_name" => "URL_SIZE",
"format" => "optional",
),
"IMGURL" => array(
"name" => "IMGURL",
"feed_name" => "IMGURL",
"format" => "required",
"woo_suggest" => "image",
),
"IMGURL_ALTERNATIVE" => array(
"name" => "IMGURL_ALTERNATIVE",
"feed_name" => "IMGURL_ALTERNATIVE",
"format" => "optional",
),
"PRICE_VAT" => array(
"name" => "PRICE_VAT",
"feed_name" => "PRICE_VAT",
"format" => "required",
"woo_suggest" => "price",
),
"MANUFACTURER" => array(
"name" => "MANUFACTURER",
"feed_name" => "MANUFACTURER",
"format" => "required",
),
"CATEGORYTEXT" => array(
"name" => "CATEGORYTEXT",
"feed_name" => "CATEGORYTEXT",
"format" => "required",
"woo_suggest" => "categories",
),
"CATEGORY_ID" => array(
"name" => "CATEGORY_ID",
"feed_name" => "CATEGORY_ID",
"format" => "optional",
),
"GLAMI_CPC" => array(
"name" => "GLAMI_CPC",
"feed_name" => "GLAMI_CPC",
"format" => "optional",
),
"PROMOTION_ID" => array(
"name" => "PROMOTION_ID",
"feed_name" => "PROMOTION_ID",
"format" => "optional",
),
"DELIVERY_DATE" => array(
"name" => "DELIVERY_DATE",
"feed_name" => "DELIVERY_DATE",
"format" => "required",
),
"DELIVERY" => array(
"name" => "DELIVERY",
"feed_name" => "DELIVERY",
"format" => "optional",
),
),
);
return $glami;
}
}
?>

View File

@@ -0,0 +1,108 @@
<?php
/**
* Settings for Google DRM product feeds
*/
class WooSEA_google_drm {
public $google_drm;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$google_drm = array(
"Remarketing fields" => array(
"ID" => array(
"name" => "ID",
"feed_name" => "ID",
"format" => "required",
"woo_suggest" => "id",
),
"ID2" => array(
"name" => "ID2",
"feed_name" => "ID2",
"format" => "optional",
),
"Item title" => array(
"name" => "Item title",
"feed_name" => "Item title",
"format" => "required",
"woo_suggest" => "title",
),
"Item subtitle" => array(
"name" => "Item subtitle",
"feed_name" => "Item subtitle",
"format" => "optional",
),
"Final URL" => array(
"name" => "Final URL",
"feed_name" => "Final URL",
"format" => "required",
"woo_suggest" => "link",
),
"Image URL" => array(
"name" => "Image URL",
"feed_name" => "Image URL",
"format" => "optional",
"woo_suggest" => "image_link",
),
"Item description" => array(
"name" => "Item description",
"feed_name" => "Item description",
"format" => "optional",
"woo_suggest" => "description",
),
"Item category" => array(
"name" => "Item category",
"feed_name" => "Item category",
"format" => "optional",
"woo_suggest" => "categories",
),
"Price" => array(
"name" => "Price",
"feed_name" => "Price",
"format" => "optional",
"woo_suggest" => "price",
),
"Sale price" => array(
"name" => "Sale price",
"feed_name" => "Sale price",
"format" => "optional",
"woo_suggest" => "sale_price",
),
"Sale price effective date" => array(
"name" => "Sale price effective date",
"feed_name" => "Sale price effective date",
"format" => "optional",
"woo_suggest" => "sale_price_effective_date",
),
"Contextual keywords" => array(
"name" => "Contextual keywords",
"feed_name" => "Contextual keywords",
"format" => "optional",
),
"Item address" => array(
"name" => "Item address",
"feed_name" => "Item address",
"format" => "optional",
),
"Tracking template" => array(
"name" => "Tracking template",
"feed_name" => "Tracking template",
"format" => "optional",
),
"Custom parameter" => array(
"name" => "Custom parameter",
"feed_name" => "Custom parameter",
"format" => "optional",
),
"Item group ID" => array(
"name" => "item_group_id",
"feed_name" => "g:item_group_id",
"format" => "optional",
),
),
);
return $google_drm;
}
}
?>

View File

@@ -0,0 +1,30 @@
<?php
/**
* Settings for Google DSA product feeds
*/
class WooSEA_google_dsa {
public $google_dsa;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$google_dsa = array(
"DSA fields" => array(
"Page URL" => array(
"name" => "Page URL",
"feed_name" => "Page URL",
"format" => "required",
"woo_suggest" => "link",
),
"Custom label" => array(
"name" => "Custom label",
"feed_name" => "Custom label",
"format" => "required",
),
),
);
return $google_dsa;
}
}
?>

View File

@@ -0,0 +1,80 @@
<?php
/**
* Settings for Google Local Product Inventory feeds
*/
class WooSEA_google_local {
public $google_local;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$google_local = array(
"Local product inventory fields" => array(
"Itemid" => array(
"name" => "itemid",
"feed_name" => "g:itemid",
"format" => "required",
"woo_suggest" => "id",
),
"Store code" => array(
"name" => "Store code",
"feed_name" => "g:store_code",
"format" => "required",
),
"Quantity" => array(
"name" => "Quantity",
"feed_name" => "g:quantity",
"format" => "required",
"woo_suggest" => "quantity",
),
"Price" => array(
"name" => "Price",
"feed_name" => "g:price",
"format" => "required",
"woo_suggest" => "price",
),
"Sale price" => array(
"name" => "Sale price",
"feed_name" => "g:sale_price",
"format" => "optional",
"woo_suggest" => "sale_price",
),
"Sale price effective date" => array(
"name" => "Sale price effective date",
"feed_name" => "g:sale_price_effective_date",
"format" => "optional",
"woo_suggest" => "sale_price_effective_date",
),
"Availability" => array(
"name" => "Availability",
"feed_name" => "g:availability",
"format" => "optional",
"woo_suggest" => "availability",
),
"Weeks of supply" => array(
"name" => "Weeks of supply",
"feed_name" => "g:weeks_of_supply",
"format" => "optional",
),
"Pickup method" => array(
"name" => "Pickup method",
"feed_name" => "g:pickup_method",
"format" => "optional",
),
"Pickup sla" => array(
"name" => "Pickup sla",
"feed_name" => "g:pickup_sla",
"format" => "optional",
),
"Webitemid" => array(
"name" => "Webitemid",
"feed_name" => "g:webitemid",
"format" => "optional",
),
),
);
return $google_local;
}
}
?>

View File

@@ -0,0 +1,178 @@
<?php
/**
* Settings for Google Local Products feeds
*/
class WooSEA_google_local_products {
public $google_local_products;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$google_local_products = array(
"Local products fields" => array(
"Itemid" => array(
"name" => "Id",
"feed_name" => "g:id",
"format" => "required",
"woo_suggest" => "id",
),
"Title" => array(
"name" => "Title",
"feed_name" => "g:title",
"format" => "required",
"woo_suggest" => "title",
),
"Description" => array(
"name" => "Description",
"feed_name" => "g:description",
"format" => "optional",
"woo_suggest" => "description",
),
"Image link" => array(
"name" => "image_link",
"feed_name" => "g:image_link",
"format" => "optional",
"woo_suggest" => "image",
),
"Condition" => array(
"name" => "condition",
"feed_name" => "g:condition",
"format" => "optional",
"woo_suggest" => "condition",
),
"Gtin" => array(
"name" => "gtin",
"feed_name" => "g:gtin",
"format" => "optional",
),
"MPN" => array(
"name" => "MPN",
"feed_name" => "g:mpn",
"format" => "optional",
),
"Brand" => array(
"name" => "brand",
"feed_name" => "g:brand",
"format" => "optional",
),
"Google product category" => array(
"name" => "google_product_category",
"feed_name" => "g:google_product_category",
"format" => "optional",
"woo_suggest" => "categories",
),
"Energy efficiency class" => array(
"name" => "energy_efficiency_class",
"feed_name" => "g:energy_efficiency_class",
"format" => "optional",
),
"Energy efficiency class min" => array(
"name" => "energy_efficiency_class_min",
"feed_name" => "g:energy_efficiency_class_min",
"format" => "optional",
),
"Energy efficiency class max" => array(
"name" => "energy_efficiency_class_max",
"feed_name" => "g:energy_efficiency_class_max",
"format" => "optional",
),
"Webitemid" => array(
"name" => "webitemid",
"feed_name" => "g:webitemid",
"format" => "optional",
),
"Price" => array(
"name" => "Price",
"feed_name" => "g:price",
"format" => "optional",
"woo_suggest" => "price",
),
"Sale price" => array(
"name" => "Sale price",
"feed_name" => "g:sale_price",
"format" => "optional",
"woo_suggest" => "sale_price",
),
"Sale price effective date" => array(
"name" => "Sale price effective date",
"feed_name" => "g:sale_price_effective_date",
"format" => "optional",
"woo_suggest" => "sale_price_effective_date",
),
"Unit pricing measure" => array(
"name" => "unit_pricing_measure",
"feed_name" => "g:unit_pricing_measure",
"format" => "optional",
),
"Unit pricing base measure" => array(
"name" => "unit_pricing_base_measure",
"feed_name" => "g:unit_pricing_base_measure",
"format" => "optional",
),
"Pickup method" => array(
"name" => "Pickup method",
"feed_name" => "g:pickup_method",
"format" => "optional",
),
"Pickup SLA" => array(
"name" => "Pickup SLA",
"feed_name" => "g:pickup_sla",
"format" => "optional",
),
"Pickup link template" => array(
"name" => "Pickup link template",
"feed_name" => "g:pickup_link_template",
"format" => "optional",
),
"Mobile pickup link template" => array(
"name" => "Mobile pickup link template",
"feed_name" => "g:mobile_pickup_link_template",
"format" => "optional",
),
"Link template" => array(
"name" => "Link template",
"feed_name" => "g:link_template",
"format" => "optional",
),
"Mobile link template" => array(
"name" => "Mobile link template",
"feed_name" => "g:mobile_link_template",
"format" => "optional",
),
"Ads redirect" => array(
"name" => "Ads redirect",
"feed_name" => "g:ads_redirect",
"format" => "optional",
),
"Age group" => array(
"name" => "age_group",
"feed_name" => "g:age_group",
"format" => "optional",
),
"Color" => array(
"name" => "color",
"feed_name" => "g:color",
"format" => "optional",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "g:gender",
"format" => "optional",
),
"Size" => array(
"name" => "size",
"feed_name" => "g:size",
"format" => "optional",
),
"Item group ID" => array(
"name" => "item_group_id",
"feed_name" => "g:item_group_id",
"format" => "optional",
),
),
);
return $google_local_products;
}
}
?>

View File

@@ -0,0 +1,64 @@
<?php
/**
* Settings for Google Product Review feeds
*/
class WooSEA_google_product_review {
public $google_product_review;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$google_product_review = array(
"Product review fields" => array(
"product_name" => array(
"name" => "product_name",
"feed_name" => "product_name",
"format" => "required",
"woo_suggest" => "title",
),
"product_url" => array(
"name" => "product_url",
"feed_name" => "product_url",
"format" => "required",
"woo_suggest" => "link",
),
"gtin" => array(
"name" => "gtin",
"feed_name" => "gtin",
"format" => "required",
),
"mpn" => array(
"name" => "mpn",
"feed_name" => "mpn",
"format" => "required",
),
"sku" => array(
"name" => "sku",
"feed_name" => "sku",
"format" => "required",
"woo_suggest" => "sku",
),
"brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"reviews" => array(
"name" => "reviews",
"feed_name" => "reviews",
"format" => "required",
"woo_suggest" => "reviews",
),
"review_url" => array(
"name" => "review_url",
"feed_name" => "review_url",
"format" => "required",
"woo_suggest" => "link",
),
),
);
return $google_product_review;
}
}
?>

View File

@@ -0,0 +1,725 @@
<?php
/**
* Settings for Google Shopping product feeds
*/
class WooSEA_google_shopping {
public $google_attributes;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$google_attributes = array(
"Basic product data" => array(
"Product ID" => array(
"name" => "id",
"feed_name" => "g:id",
"format" => "required",
"woo_suggest" => "id",
),
"Product title" => array(
"name" => "title",
"feed_name" => "g:title",
"format" => "required",
"woo_suggest" => "title",
),
"Short title" => array(
"name" => "short_title",
"feed_name" => "g:short_title",
"format" => "optional",
"woo_suggest" => "title",
),
"Product description" => array(
"name" => "description",
"feed_name" => "g:description",
"format" => "required",
"woo_suggest" => "description",
),
"Product URL" => array(
"name" => "link",
"feed_name" => "g:link",
"format" => "required",
"woo_suggest" => "link",
),
"Main image URL" => array(
"name" => "image_link",
"feed_name" => "g:image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image URL" => array(
"name" => "additional_image_link",
"feed_name" => "g:additional_image_link",
"format" => "optional",
),
"Canonical product URL" => array(
"name" => "canonical_link",
"feed_name" => "g:canonical_link",
"format" => "optional",
),
"Product URL mobile" => array(
"name" => "mobile_link",
"feed_name" => "g:mobile_link",
"format" => "optional",
),
"Checkout link template" => array(
"name" => "checkout_link_template",
"feed_name" => "g:checkout_link_template",
"format" => "required",
"woo_suggest" => "cart_link",
),
),
"Price & availability" => array(
"Stock status" => array(
"name" => "availability",
"feed_name" => "g:availability",
"format" => "required",
"woo_suggest" => "availability",
),
"Availability date" => array(
"name" => "availability_date",
"feed_name" => "g:availability_date",
"format" => "optional",
),
"Expiration date" => array(
"name" => "expiration_date",
"feed_name" => "g:expiration_date",
"format" => "optional",
),
"Price" => array(
"name" => "Price",
"feed_name" => "g:price",
"format" => "required",
"woo_suggest" => "price",
),
"Sale price" => array(
"name" => "sale_price",
"feed_name" => "g:sale_price",
"format" => "optional",
"woo_suggest" => "sale_price",
),
"Sale price effective date" => array(
"name" => "sale_price_effective_date",
"feed_name" => "g:sale_price_effective_date",
"format" => "optional",
"woo_suggest" => "sale_price_effective_date",
),
"Unit pricing measure" => array(
"name" => "unit_pricing_measure",
"feed_name" => "g:unit_pricing_measure",
"format" => "optional",
),
"Unit pricing base measure" => array(
"name" => "unit_pricing_base_measure",
"feed_name" => "g:unit_pricing_base_measure",
"format" => "optional",
),
"Cost of goods sold" => array(
"name" => "cost_of_goods_sold",
"feed_name" => "g:cost_of_goods_sold",
"format" => "optional",
),
"Installment" => array(
"name" => "installment",
"feed_name" => "g:installment",
"format" => "optional",
),
"Subscription cost" => array(
"name" => "subscription_cost",
"feed_name" => "g:subscription_cost",
"format" => "optional",
),
"Loyalty points" => array(
"name" => "loyalty_points",
"feed_name" => "g:loyalty_points",
"format" => "optional",
),
"Auto pricing min price" => array(
"name" => "auto_pricing_min_price",
"feed_name" => "g:auto_pricing_min_price",
"format" => "optional",
),
),
"Product category" => array(
"Google product category" => array(
"name" => "google_product_category",
"feed_name" => "g:google_product_category",
"format" => "required",
"woo_suggest" => "categories",
),
"Product type" => array(
"name" => "product_type",
"feed_name" => "g:product_type",
"format" => "required",
"woo_suggest" => "category_path",
),
),
"Product identifiers" => array(
"Brand" => array(
"name" => "brand",
"feed_name" => "g:brand",
"format" => "required",
),
"Gtin" => array(
"name" => "gtin",
"feed_name" => "g:gtin",
"format" => "required",
),
"MPN" => array(
"name" => "mpn",
"feed_name" => "g:mpn",
"format" => "required",
),
"Identifier exists" => array(
"name" => "identifier_exists",
"feed_name" => "g:identifier_exists",
"woo_suggest" => "calculated",
"format" => "required",
),
),
"Detailed product description" => array(
"Condition" => array(
"name" => "condition",
"feed_name" => "g:condition",
"format" => "required",
"woo_suggest" => "condition",
),
"Adult" => array(
"name" => "adult",
"feed_name" => "g:adult",
"format" => "optional",
),
"Multipack" => array(
"name" => "multipack",
"feed_name" => "g:multipack",
"format" => "optional",
),
"Is bundle" => array(
"name" => "is_bundle",
"feed_name" => "g:is_bundle",
"format" => "optional",
),
"Energy efficiency class" => array(
"name" => "energy_efficiency_class",
"feed_name" => "g:energy_efficiency_class",
"format" => "optional",
),
"Minimum energy efficiency class" => array(
"name" => "min_energy_efficiency_class",
"feed_name" => "g:min_energy_efficiency_class",
"format" => "optional",
),
"Maximum energy efficiency class" => array(
"name" => "max_energy_efficiency_class",
"feed_name" => "g:max_energy_efficiency_class",
"format" => "optional",
),
"Age group" => array(
"name" => "age_group",
"feed_name" => "g:age_group",
"format" => "optional",
),
"Color" => array(
"name" => "color",
"feed_name" => "g:color",
"format" => "optional",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "g:gender",
"format" => "optional",
),
"Material" => array(
"name" => "material",
"feed_name" => "g:material",
"format" => "optional",
),
"Pattern" => array(
"name" => "pattern",
"feed_name" => "g:pattern",
"format" => "optional",
),
"Size" => array(
"name" => "size",
"feed_name" => "g:size",
"format" => "optional",
),
"Size type" => array(
"name" => "size_type",
"feed_name" => "g:size_type",
"format" => "optional",
),
"Size system" => array(
"name" => "size_system",
"feed_name" => "g:size_system",
"format" => "optional",
),
"Item group ID" => array(
"name" => "item_group_id",
"feed_name" => "g:item_group_id",
"format" => "required",
"woo_suggest" => "item_group_id",
),
),
"Shopping campaigns" => array(
"Ads redirect (new)" => array(
"name" => "ads_redirect",
"feed_name" => "g:ads_redirect",
"format" => "optional",
),
"Excluded destination" => array(
"name" => "excluded_destination",
"feed_name" => "g:excluded_destination",
"format" => "optional",
),
"Custom label 0" => array(
"name" => "custom_label_0",
"feed_name" => "g:custom_label_0",
"format" => "optional",
),
"Custom label 1" => array(
"name" => "custom_label_1",
"feed_name" => "g:custom_label_1",
"format" => "optional",
),
"Custom label 2" => array(
"name" => "custom_label_2",
"feed_name" => "g:custom_label_2",
"format" => "optional",
),
"Custom label 3" => array(
"name" => "custom_label_3",
"feed_name" => "g:custom_label_3",
"format" => "optional",
),
"Custom label 4" => array(
"name" => "custom_label_4",
"feed_name" => "g:custom_label_4",
"format" => "optional",
),
"Promotion ID" => array(
"name" => "promotion_id",
"feed_name" => "g:promotion_id",
"format" => "optional",
),
"Included destination" => array(
"name" => "included_destination",
"feed_name" => "included_destination",
"format" => "optional",
),
"Ads grouping" => array(
"name" => "ads_grouping",
"feed_name" => "g:ads_grouping",
"format" => "optional",
),
"Ads labels" => array(
"name" => "ads_labels",
"feed_name" => "g:ads_labels",
"format" => "optional",
),
"Feed label" => array(
"name" => "feed_label",
"feed_name" => "g:feed_label",
"format" => "optional",
),
"Product country" => array(
"name" => "product_country",
"feed_name" => "g:product_country",
"format" => "optional",
),
"Adwords grouping (BING)" => array(
"name" => "adwords_grouping",
"feed_name" => "g:adwords_grouping",
"format" => "optional",
),
"Adwords labels (BING)" => array(
"name" => "adwords_labels",
"feed_name" => "g:adwords_labels",
"format" => "optional",
),
"Adwords redirect (BING)" => array(
"name" => "adwords_redirect",
"feed_name" => "g:adwords_redirect",
"format" => "optional",
),
),
"Shipping" => array(
"Shipping" => array(
"name" => "shipping",
"feed_name" => "g:shipping",
"format" => "optional",
),
"Shipping label" => array(
"name" => "shipping_label",
"feed_name" => "g:shipping_label",
"format" => "optional",
),
"Shipping weight" => array(
"name" => "shipping_weight",
"feed_name" => "g:shipping_weight",
"format" => "optional",
),
"Shipping length" => array(
"name" => "shipping_length",
"feed_name" => "g:shipping_length",
"format" => "optional",
),
"Shipping width" => array(
"name" => "shipping_width",
"feed_name" => "g:shipping_width",
"format" => "optional",
),
"Shipping height" => array(
"name" => "shipping_height",
"feed_name" => "g:shipping_height",
"format" => "optional",
),
"Transit time label" => array(
"name" => "transit_time_label",
"feed_name" => "g:transit_time_label",
"format" => "optional",
),
"Minimum handling time" => array(
"name" => "min_handling_time",
"feed_name" => "g:min_handling_time",
"format" => "optional",
),
"Maximum handling time" => array(
"name" => "max_handling_time",
"feed_name" => "g:max_handling_time",
"format" => "optional",
),
"Ships from country" => array(
"name" => "ships_from_country",
"feed_name" => "g:ships_from_country",
"format" => "optional",
),
"Region Id" => array(
"name" => "region_id",
"feed_name" => "g:region_id",
"format" => "optional",
),
),
"Tax" => array(
"Tax" => array(
"name" => "tax",
"feed_name" => "g:tax",
"format" => "optional",
),
"Tax category" => array(
"name" => "tax_category",
"feed_name" => "g:tax_category",
"format" => "optional",
),
),
"Shopping Actions" => array(
"Product fee" => array(
"name" => "product_fee",
"feed_name" => "g:product_fee",
"format" => "optional",
),
"Purchase quantity limit" => array(
"name" => "purchase_quantity_limit",
"feed_name" => "g:purchase_quantity_limit",
"format" => "optional",
),
"Sell on google quantity" => array(
"name" => "sell_on_google_quantity",
"feed_name" => "g:sell_on_google_quantity",
"format" => "optional",
),
"Consumer datasheet" => array(
"name" => "consumer_datasheet",
"feed_name" => "g:consumer_datasheet",
"format" => "optional",
),
"Consumer notice 1" => array(
"name" => "consumer_notice_1",
"feed_name" => "g:consumer_notice",
"format" => "optional",
),
"Consumer notice 2" => array(
"name" => "consumer_notice_2",
"feed_name" => "g:consumer_notice",
"format" => "optional",
),
"Consumer notice 3" => array(
"name" => "consumer_notice_3",
"feed_name" => "g:consumer_notice",
"format" => "optional",
),
"Energy label image link" => array(
"name" => "energy_label_image_link",
"feed_name" => "g:energy_label_image_link",
"format" => "optional",
),
"Excluding countries for Shopping ads" => array(
"name" => "shopping_ads_excluded_country",
"feed_name" => "g:shopping_ads_excluded_country",
"format" => "optional",
),
"Product detail 1" => array(
"name" => "product_detail_1",
"feed_name" => "g:product_detail",
"format" => "optional",
),
"Product detail 2" => array(
"name" => "product_detail_2",
"feed_name" => "g:product_detail",
"format" => "optional",
),
"Product detail 3" => array(
"name" => "product_detail_3",
"feed_name" => "g:product_detail",
"format" => "optional",
),
"Product detail 4" => array(
"name" => "product_detail_4",
"feed_name" => "g:product_detail",
"format" => "optional",
),
"Product detail 5" => array(
"name" => "product_detail_5",
"feed_name" => "g:product_detail",
"format" => "optional",
),
"Product detail 6" => array(
"name" => "product_detail_6",
"feed_name" => "g:product_detail",
"format" => "optional",
),
"Product detail 7" => array(
"name" => "product_detail_7",
"feed_name" => "g:product_detail",
"format" => "optional",
),
"Product detail 8" => array(
"name" => "product_detail_8",
"feed_name" => "g:product_detail",
"format" => "optional",
),
"Product detail 9" => array(
"name" => "product_detail_9",
"feed_name" => "g:product_detail",
"format" => "optional",
),
"Product detail 10" => array(
"name" => "product_detail_10",
"feed_name" => "g:product_detail",
"format" => "optional",
),
"Product highlight" => array(
"name" => "product_highlight",
"feed_name" => "g:product_highlight",
"format" => "optional",
),
"Return address label" => array(
"name" => "return_address_label",
"feed_name" => "g:return_address_label",
"format" => "optional",
),
"Return policy label" => array(
"name" => "return_policy_label",
"feed_name" => "g:return_policy_label",
"format" => "optional",
),
"Google funded promotion eligibility" => array(
"name" => "google_funded_promotion_eligibility",
"feed_name" => "g:google_funded_promotion_eligibility",
"format" => "optional",
),
"Pickup method" => array(
"name" => "pickup_method",
"feed_name" => "g:pickup_method",
"format" => "optional",
),
"Pickup SLA" => array(
"name" => "pickup_SLA",
"feed_name" => "g:pickup_SLA",
"format" => "optional",
),
"Pickup link template" => array(
"name" => "pickup_link_template",
"feed_name" => "g:pickup_link_template",
"format" => "optional",
),
"Store code" => array(
"name" => "store_code",
"feed_name" => "g:store_code",
"format" => "optional",
),
"Mobile pickup link template" => array(
"name" => "mobile_pickup_link_template",
"feed_name" => "g:mobile_pickup_link_template",
"format" => "optional",
),
"Link template" => array(
"name" => "link_template",
"feed_name" => "g:link_template",
"format" => "optional",
),
"Seller name" => array(
"name" => "seller_name",
"feed_name" => "g:seller_name",
"format" => "optional",
),
"Count" => array(
"name" => "count",
"feed_name" => "g:count",
"format" => "optional",
),
"Disclosure date" => array(
"name" => "disclosure_date",
"feed_name" => "g:disclosure_date",
"format" => "optional",
),
"Feature description" => array(
"name" => "feature_description",
"feed_name" => "g:feature_description",
"format" => "optional",
),
"Flavor" => array(
"name" => "flavor",
"feed_name" => "g:flavor",
"format" => "optional",
),
"Scent" => array(
"name" => "scent",
"feed_name" => "g:scent",
"format" => "optional",
),
"Format" => array(
"name" => "format",
"feed_name" => "g:format",
"format" => "optional",
),
"Release date" => array(
"name" => "release_date",
"feed_name" => "g:release_date",
"format" => "optional",
),
"Rich product content" => array(
"name" => "rich_product_content",
"feed_name" => "g:rich_product_content",
"format" => "optional",
),
"Product line" => array(
"name" => "product_line",
"feed_name" => "g:product_line",
"format" => "optional",
),
"Product name" => array(
"name" => "product_name",
"feed_name" => "g:product_name",
"format" => "optional",
),
"Product page url" => array(
"name" => "product_page_url",
"feed_name" => "g:product_page_url",
"format" => "optional",
),
"Product length" => array(
"name" => "product_length",
"feed_name" => "g:product_length",
"format" => "optional",
),
"Product width" => array(
"name" => "product_width",
"feed_name" => "g:product_width",
"format" => "optional",
),
"Product height" => array(
"name" => "product_height",
"feed_name" => "g:product_height",
"format" => "optional",
),
"Product weight" => array(
"name" => "product_weight",
"feed_name" => "g:product_weight",
"format" => "optional",
),
"Size system" => array(
"name" => "size_system",
"feed_name" => "g:size_system",
"format" => "optional",
),
"Size type" => array(
"name" => "size_type",
"feed_name" => "g:size_type",
"format" => "optional",
),
"Capacity" => array(
"name" => "capacity",
"feed_name" => "g:capacity",
"format" => "optional",
),
"Suggested retail price" => array(
"name" => "suggested_retail_price",
"feed_name" => "g:suggested_retail_price",
"format" => "optional",
),
"Theme" => array(
"name" => "theme",
"feed_name" => "g:theme",
"format" => "optional",
),
"Video link" => array(
"name" => "video_link",
"feed_name" => "g:video_link",
"format" => "optional",
),
"Display ads ID" => array(
"name" => "display_ads_id",
"feed_name" => "g:display_ads_id",
"format" => "optional",
),
"Display ads Similar ID" => array(
"name" => "display_ads_similar_id",
"feed_name" => "g:display_ads_similar_id",
"format" => "optional",
),
"Display ads Title" => array(
"name" => "display_ads_title",
"feed_name" => "g:display_ads_title",
"format" => "optional",
),
"Display ads Link" => array(
"name" => "display_ads_link",
"feed_name" => "g:display_ads_link",
"format" => "optional",
),
"Display ads Value" => array(
"name" => "display_ads_value",
"feed_name" => "g:display_ads_value",
"format" => "optional",
),
"3D model link" => array(
"name" => "virtual_model_link",
"feed_name" => "g:virtual_model_link",
"format" => "optional",
),
"Certification" => array(
"name" => "certification",
"feed_name" => "g:certification",
"format" => "optional",
),
"Lifestyle image link" => array(
"name" => "lifestyle_image_link",
"feed_name" => "g:lifestyle_image_link",
"format" => "optional",
),
"External seller ID" => array(
"name" => "external_seller_id",
"feed_name" => "g:external_seller_id",
"format" => "optional",
),
"Pause" => array(
"name" => "pause",
"feed_name" => "g:pause",
"format" => "optional",
),
),
);
return $google_attributes;
}
}
?>

View File

@@ -0,0 +1,105 @@
<?php
/**
* Settings for Google Shopping Promotions feeds
*/
class WooSEA_google_shopping_promotions {
public $google_attributes_promotions;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$google_attributes_promotions = array(
"Feed fields" => array(
"promotion_id" => array(
"name" => "promotion_id",
"feed_name" => "promotion_id",
"format" => "required",
),
"product_applicability" => array(
"name" => "product_applicability",
"feed_name" => "product_applicability",
"format" => "required",
),
"offer_type" => array(
"name" => "offer_type",
"feed_name" => "offer_type",
"format" => "required",
),
"long_title" => array(
"name" => "long_title",
"feed_name" => "long_title",
"format" => "required",
),
"promotion_effective_dates" => array(
"name" => "promotion_effective_dates",
"feed_name" => "promotion_effective_dates",
"format" => "required",
),
"redemption_channel" => array(
"name" => "redemption_channel",
"feed_name" => "redemption_channel",
"format" => "required",
),
"promotional_display_dates" => array(
"name" => "promotional_display_dates",
"feed_name" => "promotional_display_dates",
"format" => "optional",
),
"minimum_purchase_amount" => array(
"name" => "minimum_purchase_amount",
"feed_name" => "minimum_purchase_amount",
"format" => "optional",
),
"generic_redemption_code" => array(
"name" => "generic_redemption_code",
"feed_name" => "generic_redemption_code",
"format" => "optional",
),
),
"Structured data attributes" => array(
"percent_off" => array(
"name" => "percent_off",
"feed_name" => "percent_off",
"format" => "optional",
),
"money_off_amount" => array(
"name" => "percent_off_amount",
"feed_name" => "percent_off_amount",
"format" => "optional",
),
"buy_this_quantity" => array(
"name" => "buy_this_quantity",
"feed_name" => "buy_this_quantity",
"format" => "optional",
),
"get_this_quantity_discounted" => array(
"name" => "get_this_quantity_discounted",
"feed_name" => "get_this_quantity_discounted",
"format" => "optional",
),
"free_shipping" => array(
"name" => "free_shipping",
"feed_name" => "free_shipping",
"format" => "optional",
),
"free_gift_value" => array(
"name" => "free_gift_value",
"feed_name" => "free_gift_value",
"format" => "optional",
),
"free_gift_description" => array(
"name" => "free_gift_description",
"feed_name" => "free_gift_description",
"format" => "optional",
),
"free_gift_item_id" => array(
"name" => "free_gift_item_id",
"feed_name" => "free_gift_item_id",
"format" => "optional",
),
),
);
return $google_attributes_promotions;
}
}
?>

View File

@@ -0,0 +1,171 @@
<?php
/**
* Settings for Guenstiger feeds
*/
class WooSEA_guenstiger {
public $guenstiger;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$guenstiger = array(
"Feed fields" => array(
"Bestellnummer" => array(
"name" => "bestellnummer",
"feed_name" => "bestellnummer",
"format" => "required",
"woo_suggest" => "id",
),
"HerstellerArtNr" => array(
"name" => "HerstellerArtNr",
"feed_name" => "HerstellerArtNr",
"format" => "required",
),
"Hersteller" => array(
"name" => "Hersteller",
"feed_name" => "Hersteller",
"format" => "required",
),
"ProductLink" => array(
"name" => "ProductLink",
"feed_name" => "ProductLink",
"format" => "required",
"woo_suggest" => "link",
),
"FotoLink" => array(
"name" => "FotoLink",
"feed_name" => "FotoLink",
"format" => "required",
"woo_suggest" => "image",
),
"ProducktBeschreibung" => array(
"name" => "ProduktBeschreibung",
"feed_name" => "ProduktBeschreibung",
"format" => "required",
"woo_suggest" => "description",
),
"ProduktBezeichnung" => array(
"name" => "ProduktBezeichnung",
"feed_name" => "ProduktBezeichnung",
"format" => "required",
"woo_suggest" => "title",
),
"Preis" => array(
"name" => "Preis",
"feed_name" => "Preis",
"format" => "required",
"woo_suggest" => "price",
),
"Lieferzeit" => array(
"name" => "Lieferzeit",
"feed_name" => "Lieferzeit",
"format" => "required",
),
"EANCode" => array(
"name" => "EANCode",
"feed_name" => "EANCode",
"format" => "required",
),
"Kategorie" => array(
"name" => "Kategorie",
"feed_name" => "Kategorie",
"format" => "required",
"woo_suggest" => "category",
),
"VersandVorkasse" => array(
"name" => "VersandVorkasse",
"feed_name" => "VersandVorkasse",
"format" => "required",
),
"VersandPayPal" => array(
"name" => "VersandPayPal",
"feed_name" => "VersandPaypal",
"format" => "required",
),
"VersandKreditkarte" => array(
"name" => "VersandKreditkarte",
"feed_name" => "VersandKreditkarte",
"format" => "required",
),
"VersandLastschrift" => array(
"name" => "VersandLastschrift",
"feed_name" => "VersandLandschrift",
"format" => "required",
),
"VersandRechnung" => array(
"name" => "VersandRechnung",
"feed_name" => "VersandRechnung",
"format" => "required",
),
"VersandNachnahme" => array(
"name" => "VersandNachnahme",
"feed_name" => "VersandNachnahme",
"format" => "required",
),
"Grundpreis komplett" => array(
"name" => "Grundpreis komplett",
"feed_name" => "Grundpres komplett",
"format" => "optional",
),
"Energieeffizienzklasse" => array(
"name" => "Energieeffizienzklasse",
"feed_name" => "Energieeffizienzklasse",
"format" => "optional",
),
"Keyword" => array(
"name" => "Keyword",
"feed_name" => "Keyword",
"format" => "optional",
),
"Gewicht" => array(
"name" => "Gewicht",
"feed_name" => "Gewicht",
"format" => "optional",
),
"Groesse" => array(
"name" => "Groesse",
"feed_name" => "Groesse",
"format" => "optional",
),
"Farbe" => array(
"name" => "Farbe",
"feed_name" => "Farbe",
"format" => "optional",
),
"Geschlecht" => array(
"name" => "Geschlecht",
"feed_name" => "Geschlecht",
"format" => "optional",
),
"Erwachsene / Kind" => array(
"name" => "Erwachsene / Kind",
"feed_name" => "Erwachsene / Kind",
"format" => "optional",
),
"PZN" => array(
"name" => "PZN",
"feed_name" => "PZN",
"format" => "optional",
),
"Reifentyp" => array(
"name" => "Reifentyp",
"feed_name" => "Reifentyp",
"format" => "optional",
),
"Reifensaison" => array(
"name" => "Reifensaison",
"feed_name" => "Reifensaison",
"format" => "optional",
),
"Reifenmass" => array(
"name" => "Reifenmass",
"feed_name" => "Reifenmass",
"format" => "optional",
),
),
);
return $guenstiger;
}
}
?>

View File

@@ -0,0 +1,196 @@
<?php
/**
* Settings for Heureka feeds
*/
class WooSEA_heureka {
public $heureka;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$heureka = array(
"Feed fields" => array(
"ITEM_ID" => array(
"name" => "ITEM_ID",
"feed_name" => "ITEM_ID",
"format" => "required",
"woo_suggest" => "id",
),
"PRODUCTNAME" => array(
"name" => "PRODUCTNAME",
"feed_name" => "PRODUCTNAME",
"format" => "required",
"woo_suggest" => "title",
),
"DESCRIPTION" => array(
"name" => "DESCRIPTION",
"feed_name" => "DESCRIPTION",
"format" => "required",
"woo_suggest" => "description",
),
"URL" => array(
"name" => "URL",
"feed_name" => "URL",
"format" => "required",
"woo_suggest" => "link",
),
"PRICE_VAT" => array(
"name" => "PRICE_VAT",
"feed_name" => "PRICE_VAT",
"format" => "required",
"woo_suggest" => "price",
),
"DELIVERY_DATE" => array(
"name" => "DELIVERY_DATE",
"feed_name" => "DELIVERY_DATE",
"format" => "required",
),
"DELIVERY" => array(
"name" => "DELIVERY",
"feed_name" => "DELIVERY",
"format" => "required",
"woo_suggest" => "shipping",
),
"CATEGORYTEXT" => array(
"name" => "CATEGORYTEXT",
"feed_name" => "CATEGORYTEXT",
"format" => "optional",
"woo_suggest" => "categories",
),
"IMGURL" => array(
"name" => "IMGURL",
"feed_name" => "IMGURL",
"format" => "optional",
"woo_suggest" => "image",
),
"EAN" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "optional",
),
"ISBN" => array(
"name" => "ISBN",
"feed_name" => "ISBN",
"format" => "optional",
),
"PRODUCTNO" => array(
"name" => "PRODUCTNO",
"feed_name" => "PRODUCTNO",
"format" => "optional",
),
"ITEMGROUP_ID" => array(
"name" => "ITEMGROUP_ID",
"feed_name" => "ITEMGROUP_ID",
"format" => "optional",
),
"MANUFACTURER" => array(
"name" => "MANUFACTURER",
"feed_name" => "MANUFACTURER",
"format" => "optional",
),
"EROTIC" => array(
"name" => "EROTIC",
"feed_name" => "EROTIC",
"format" => "optional",
),
"BRAND" => array(
"name" => "BRAND",
"feed_name" => "BRAND",
"format" => "optional",
),
"PRODUCT" => array(
"name" => "PRODUCT",
"feed_name" => "PRODUCT",
"format" => "optional",
),
"ITEM_TYPE" => array(
"name" => "ITEM_TYPE",
"feed_name" => "ITEM_TYPE",
"format" => "optional",
),
"EXTRA_MESSAGE" => array(
"name" => "EXTRA_MESSAGE",
"feed_name" => "EXTRA_MESSAGE",
"format" => "optional",
),
"SHOP_DEPOTS" => array(
"name" => "SHOP_DEPOTS",
"feed_name" => "SHOP_DEPOTS",
"format" => "optional",
),
"VISIBILITY" => array(
"name" => "VISIBILITY",
"feed_name" => "VISIBILITY",
"format" => "optional",
),
"CUSTOM_LABEL_0" => array(
"name" => "CUSTOM_LABEL_0",
"feed_name" => "CUSTOM_LABEL_0",
"format" => "optional",
),
"CUSTOM_LABEL_1" => array(
"name" => "CUSTOM_LABEL_1",
"feed_name" => "CUSTOM_LABEL_1",
"format" => "optional",
),
"CUSTOM_LABEL_2" => array(
"name" => "CUSTOM_LABEL_2",
"feed_name" => "CUSTOM_LABEL_2",
"format" => "optional",
),
"CUSTOM_LABEL_3" => array(
"name" => "CUSTOM_LABEL_3",
"feed_name" => "CUSTOM_LABEL_3",
"format" => "optional",
),
"CUSTOM_LABEL_4" => array(
"name" => "CUSTOM_LABEL_4",
"feed_name" => "CUSTOM_LABEL_4",
"format" => "optional",
),
"CUSTOM_LABEL_5" => array(
"name" => "CUSTOM_LABEL_5",
"feed_name" => "CUSTOM_LABEL_5",
"format" => "optional",
),
"MAX_CPC" => array(
"name" => "MAX_CPC",
"feed_name" => "MAX_CPC",
"format" => "optional",
),
"MAX_CPC_SEARCH" => array(
"name" => "MAX_CPC_SEARCH",
"feed_name" => "MAX_CPC_SEARCH",
"format" => "optional",
),
"LENGTH" => array(
"name" => "LENGTH",
"feed_name" => "LENGTH",
"format" => "optional",
),
"VOLUME" => array(
"name" => "VOLUME",
"feed_name" => "VOLUME",
"format" => "optional",
),
"SIZE" => array(
"name" => "SIZE",
"feed_name" => "SIZE",
"format" => "optional",
),
"COLOR" => array(
"name" => "COLOR",
"feed_name" => "COLOR",
"format" => "optional",
),
"PURPOSE" => array(
"name" => "PURPOSE",
"feed_name" => "PURPOSE",
"format" => "optional",
),
),
);
return $heureka;
}
}
?>

View File

@@ -0,0 +1,446 @@
<?php
/**
* Settings for Idealo feeds
*/
class WooSEA_idealo {
public $idealo;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$idealo = array(
"Feed fields" => array(
"SKU" => array(
"name" => "SKU",
"feed_name" => "sku",
"format" => "required",
"woo_suggest" => "sku",
),
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"CategoryPath" => array(
"name" => "categoryPath",
"feed_name" => "categoryPath",
"format" => "required",
"woo_suggest" => "category_path",
),
"url" => array(
"name" => "url",
"feed_name" => "url",
"format" => "required",
"woo_suggest" => "link",
),
"hans" => array(
"name" => "hans",
"feed_name" => "hans",
"format" => "optional",
),
"Description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"ImageUrls" => array(
"name" => "imageUrls",
"feed_name" => "imageUrls",
"format" => "optional",
"woo_suggest" => "image",
),
"eec" => array(
"name" => "eec",
"feed_name" => "eec",
"format" => "optional",
),
"merchantName" => array(
"name" => "merchantName",
"feed_name" => "merchantName",
"format" => "optional",
),
"merchantId" => array(
"name" => "merchantId",
"feed_name" => "merchanId",
"format" => "optional",
),
"price" => array(
"name" => "price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"basePrice" => array(
"name" => "basePrice",
"feed_name" => "basePrice",
"format" => "optional",
),
"formerPrice" => array(
"name" => "formerPrice",
"feed_name" => "formerPrice",
"format" => "optional",
),
"voucherCode" => array(
"name" => "voucherCode",
"feed_name" => "voucherCode",
"format" => "optional",
),
"deposit" => array(
"name" => "deposit",
"feed_name" => "deposit",
"format" => "optional",
),
"deliveryTime" => array(
"name" => "deliveryTime",
"feed_name" => "deliveryTime",
"format" => "optional",
),
"deliveryComment" => array(
"name" => "deliveryComment",
"feed_name" => "deliveryComment",
"format" => "optional",
),
"maxOrderProcessingTime" => array(
"name" => "maxOrderProcessingTime",
"feed_name" => "maxOrderProcessingTime",
"format" => "optional",
),
"freeReturnDays" => array(
"name" => "freeReturnDays",
"feed_name" => "freeReturnDays",
"format" => "optional",
),
"checkout" => array(
"name" => "checkout",
"feed_name" => "checkout",
"format" => "required",
),
"minimumPrice" => array(
"name" => "minimumPrice",
"feed_name" => "minimumPrice",
"format" => "required",
),
"fullfillmentType" => array(
"name" => "fulfillmentType",
"feed_name" => "fulfillmentType",
"format" => "required",
),
"checkoutLimitPerPeriod" => array(
"name" => "checkoutLimitPerPeriod",
"feed_name" => "checkoutLimitPerPeriod",
"format" => "required",
),
"quantityPerOrder" => array(
"name" => "quantityPerOrder",
"feed_name" => "quantityPerOrder",
"format" => "optional",
),
"twoManHandlingFee" => array(
"name" => "twoManHandlingFee",
"feed_name" => "twoManHandlingFee",
"format" => "optional",
),
"disposalFee" => array(
"name" => "disposalFee",
"feed_name" => "disposalFee",
"format" => "optional",
),
"eans" => array(
"name" => "eans",
"feed_name" => "eans",
"format" => "required",
),
"packagingUnit" => array(
"name" => "packagingUnit",
"feed_name" => "packagingUnit",
"format" => "optional",
),
"deliveryCost_ups" => array(
"name" => "deliveryCost_ups",
"feed_name" => "deliveryCost_ups",
"format" => "optional",
),
"deliveryCost_fedex" => array(
"name" => "deliveryCost_fedex",
"feed_name" => "deliveryCost_fedex",
"format" => "optional",
),
"deliveryCost_deutsche_post" => array(
"name" => "deliveryCost_deutsche_post",
"feed_name" => "deliveryCost_deutsche_post",
"format" => "optional",
),
"deliveryCost_dhl" => array(
"name" => "deliveryCost_dhl",
"feed_name" => "deliveryCost_dhl",
"format" => "optional",
),
"deliveryCost_dhl_go_green" => array(
"name" => "deliveryCost_dhl_go_green",
"feed_name" => "deliveryCost_dhl_go_green",
"format" => "optional",
),
"deliveryCost_download" => array(
"name" => "deliveryCost_download",
"feed_name" => "deliveryCost_download",
"format" => "optional",
),
"deliveryCost_dpd" => array(
"name" => "deliveryCost_dpd",
"feed_name" => "deliveryCost_dpd",
"format" => "optional",
),
"deliveryCost_german_express_logistics" => array(
"name" => "deliveryCost_german_express_logistics",
"feed_name" => "deliveryCost_german_express_logistics",
"format" => "optional",
),
"deliveryCost_gls" => array(
"name" => "deliveryCost_gls",
"feed_name" => "deliveryCost_gls",
"format" => "optional",
),
"deliveryCost_gls_think_green" => array(
"name" => "deliveryCost_gls_think_green",
"feed_name" => "deliveryCost_gls_think_green",
"format" => "optional",
),
"deliveryCost_hermes" => array(
"name" => "deliveryCost_hermes",
"feed_name" => "deliveryCost_hermes",
"format" => "optional",
),
"deliveryCost_pick_point" => array(
"name" => "deliveryCost_pick_points",
"feed_name" => "deliveryCost_pick_point",
"format" => "optional",
),
"deliveryCost_spedition" => array(
"name" => "deliveryCost_spedition",
"feed_name" => "deliveryCost_spedition",
"format" => "optional",
),
"deliveryCost_tnt" => array(
"name" => "deliveryCost_tnt",
"feed_name" => "deliveryCost_tnt",
"format" => "optional",
),
"deliveryCost_trans_o_flex" => array(
"name" => "deliveryCost_trans_o_flex",
"feed_name" => "deliveryCost_trand_o_flex",
"format" => "optional",
),
"paymentCosts_credit_card" => array(
"name" => "paymentCosts_credit_card",
"feed_name" => "paymentCosts_credit_card",
"format" => "optional",
),
"paymentCosts_cash_in_advance" => array(
"name" => "paymentCosts_cash_in_advance",
"feed_name" => "paymentCosts_cash_in_advance",
"format" => "optional",
),
"paymentCosts_cash_on_delivery" => array(
"name" => "paymentCosts_cash_on_delivery",
"feed_name" => "paymentCosts_cash_on_delivery",
"format" => "optional",
),
"paymentCosts_paypal" => array(
"name" => "paymentCosts_paypal",
"feed_name" => "paymentCosts_paypal",
"format" => "optional",
),
"paymentCosts_giropay" => array(
"name" => "paymentCosts_giropay",
"feed_name" => "paymentCosts_giropay",
"format" => "optional",
),
"paymentCosts_direct_debit" => array(
"name" => "paymentCosts_direct_debit",
"feed_name" => "paymentCosts_direct_debit",
"format" => "optional",
),
"paymentCosts_google_checkout" => array(
"name" => "paymentCosts_google_checkout",
"feed_name" => "paymentCosts_google_checkout",
"format" => "optional",
),
"paymentCosts_invoice" => array(
"name" => "paymentCosts_invoice",
"feed_name" => "paymentCosts_invoice",
"format" => "optional",
),
"paymentCosts_postal_order" => array(
"name" => "paymentCosts_postal_order",
"feed_name" => "paymentCosts_postal_order",
"format" => "optional",
),
"paymentCosts_paysafecard" => array(
"name" => "paymentCosts_paysafecard",
"feed_name" => "paymentCosts_paysafecard",
"format" => "optional",
),
"paymentCosts_sofortueberweisung" => array(
"name" => "paymentCosts_sofortueberweisung",
"feed_name" => "paymentCosts_sofortueberweisung",
"format" => "optional",
),
"paymentCosts_amazon_payment" => array(
"name" => "paymentCosts_amazon_payment",
"feed_name" => "paymentCosts_amazon_payment",
"format" => "optional",
),
"paymentCosts_electronical_payment_standard" => array(
"name" => "paymentCosts_electronical_payment_standard",
"feed_name" => "paymentCosts_electronical_payment_standard",
"format" => "optional",
),
"paymentCosts_ecotax" => array(
"name" => "paymentCosts_ecotax",
"feed_name" => "paymentCosts_ecotax",
"format" => "optional",
),
"used" => array(
"name" => "used",
"feed_name" => "used",
"format" => "optional",
),
"download" => array(
"name" => "download",
"feed_name" => "download",
"format" => "optional",
),
"replica" => array(
"name" => "replica",
"feed_name" => "replica",
"format" => "optional",
),
"size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "optional",
),
"colour" => array(
"name" => "colour",
"feed_name" => "colour",
"format" => "optional",
),
"gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "optional",
),
"material" => array(
"name" => "material",
"feed_name" => "material",
"format" => "optional",
),
"oens" => array(
"name" => "oens",
"feed_name" => "oens",
"format" => "optional",
),
"kbas" => array(
"name" => "kbas",
"feed_name" => "kbas",
"format" => "optional",
),
"diopter" => array(
"name" => "diopter",
"feed_name" => "diopter",
"format" => "optional",
),
"baseCurve" => array(
"name" => "baseCurve",
"feed_name" => "baseCurve",
"format" => "optional",
),
"diameter" => array(
"name" => "diameter",
"feed_name" => "diameter",
"format" => "optional",
),
"cylinder" => array(
"name" => "cylinder",
"feed_name" => "cylinder",
"format" => "optional",
),
"axis" => array(
"name" => "axis",
"feed_name" => "axis",
"format" => "optional",
),
"addition" => array(
"name" => "addition",
"feed_name" => "addition",
"format" => "optional",
),
"pzns" => array(
"name" => "pzns",
"feed_name" => "pzns",
"format" => "optional",
),
"quantity" => array(
"name" => "quantity",
"feed_name" => "quantity",
"format" => "optional",
),
"fuelEfficiency" => array(
"name" => "fuelEfficiency",
"feed_name" => "fuelEfficiency",
"format" => "optional",
),
"wetGrip" => array(
"name" => "wetGrip",
"feed_name" => "wetGrip",
"format" => "optional",
),
"externalRollingNoise" => array(
"name" => "externalRollingNoise",
"feed_name" => "externalRollingNoise",
"format" => "optional",
),
"rollingNoiseClass" => array(
"name" => "rollingNoiseClass",
"feed_name" => "rollingNoiseClass",
"format" => "optional",
),
"alcoholicContent" => array(
"name" => "alcoholicContent",
"feed_name" => "alcoholicConent",
"format" => "optional",
),
"allergenInformation" => array(
"name" => "allergenInformation",
"feed_name" => "allergenInformation",
"format" => "optional",
),
"countryOfOrigin" => array(
"name" => "countryOfOrigin",
"feed_name" => "countryOfOrigin",
"format" => "optional",
),
"bottler" => array(
"name" => "bottler",
"feed_name" => "bottler",
"format" => "optional",
),
"importer" => array(
"name" => "importer",
"feed_name" => "importer",
"format" => "optional",
),
),
);
return $idealo;
}
}
?>

View File

@@ -0,0 +1,121 @@
<?php
/**
* Settings for Katoni feeds
*/
class WooSEA_katoni {
public $katoni;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$katoni = array(
"Feed fields" => array(
"GTIN" => array(
"name" => "gtin",
"feed_name" => "gtin",
"format" => "required",
),
"Item Group ID" => array(
"name" => "item_group_id",
"feed_name" => "item_group_id",
"format" => "required",
"woo_suggest" => "item_group_id",
),
"Product ID" => array(
"name" => "id",
"feed_name" => "g:id",
"format" => "required",
"woo_suggest" => "id",
),
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"Product Type" => array(
"name" => "product_type",
"feed_name" => "product_type",
"format" => "required",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "required",
),
"Size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "required",
),
"Image link" => array(
"name" => "image_link",
"feed_name" => "image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image link" => array(
"name" => "additional_image_link",
"feed_name" => "additional_image_link",
"format" => "optional",
),
"Availability" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "optional",
"woo_suggest" => "availability",
),
"Stock level" => array(
"name" => "stock_level",
"feed_name" => "stock_level",
"format" => "optional",
),
"Season" => array(
"name" => "season",
"feed_name" => "season",
"format" => "optional",
),
"Description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"Material" => array(
"name" => "material",
"feed_name" => "material",
"format" => "optional",
),
"Washing" => array(
"name" => "washing",
"feed_name" => "washing",
"format" => "optional",
),
"Discount retail price" => array(
"name" => "discount_retail_price",
"feed_name" => "discount_retail_price",
"format" => "optional",
),
"Retail price" => array(
"name" => "retail_price",
"feed_name" => "retail_price",
"format" => "required",
"woo_suggest" => "price",
),
"Wholsesale price" => array(
"name" => "wholesale_price",
"feed_name" => "wholesale_price",
"format" => "optional",
),
),
);
return $katoni;
}
}
?>

View File

@@ -0,0 +1,130 @@
<?php
/**
* Settings for Kijiji Italy feeds
*/
class WooSEA_kijiji {
public $kijiji;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$kijiji = array(
"Feed fields" => array(
"PartnerId" => array(
"name" => "PartnerId",
"feed_name" => "PartnerId",
"format" => "required",
"woo_suggest" => "id",
),
"Action" => array(
"name" => "Action",
"feed_name" => "Action",
"format" => "required",
),
"Title" => array(
"name" => "Title",
"feed_name" => "Title",
"format" => "required",
"woo_suggest" => "title",
),
"Description" => array(
"name" => "Description",
"feed_name" => "Description",
"format" => "required",
"woo_suggest" => "description",
),
"E-mail" => array(
"name" => "E-mail",
"feed_name" => "Email",
"format" => "required",
),
"URL" => array(
"name" => "URL",
"feed_name" => "URL",
"format" => "required",
"woo_suggest" => "link",
),
"Price" => array(
"name" => "Price",
"feed_name" => "Price",
"format" => "required",
"woo_suggest" => "price",
),
"Tipo Prezzo" => array(
"name" => "Tipo Prezzo",
"feed_name" => "Tipo Prezzo",
"format" => "optional",
),
"Municipality code" => array(
"name" => "Municipality code",
"feed_name" => "Municipality code",
"format" => "optional",
),
"Category" => array(
"name" => "Category",
"feed_name" => "Category",
"format" => "required",
"woo_suggest" => "categories",
),
"Seller type" => array(
"name" => "Seller type",
"feed_name" => "Seller type",
"format" => "optional",
),
"Publication date" => array(
"name" => "Publication date",
"feed_name" => "Publication date",
"format" => "required",
"woo_suggest" => "publication_date",
),
"Pic 1" => array(
"name" => "Pic 1",
"feed_name" => "Pic 1",
"format" => "optional",
),
"Pic 2" => array(
"name" => "Pic 2",
"feed_name" => "Pic 2",
"format" => "optional",
),
"Pic 3" => array(
"name" => "Pic 3",
"feed_name" => "Pic 3",
"format" => "optional",
),
"Pic 4" => array(
"name" => "Pic 4",
"feed_name" => "Pic 4",
"format" => "optional",
),
"Pic 5" => array(
"name" => "Pic 5",
"feed_name" => "Pic 5",
"format" => "optional",
),
"Pic 6" => array(
"name" => "Pic 6",
"feed_name" => "Pic 6",
"format" => "optional",
),
"Pic 7" => array(
"name" => "Pic 7",
"feed_name" => "Pic 7",
"format" => "optional",
),
"Pic 8" => array(
"name" => "Pic 8",
"feed_name" => "Pic 8",
"format" => "optional",
),
"Pic 9" => array(
"name" => "Pic 9",
"feed_name" => "Pic 9",
"format" => "optional",
),
),
);
return $kijiji;
}
}
?>

View File

@@ -0,0 +1,105 @@
<?php
/**
* Settings for Kogan.com.au feeds
*/
class WooSEA_kogan {
public $kogan;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$kogan = array(
"Feed fields" => array(
"PRODUCT_SKU" => array(
"name" => "PRODUCT_SKU",
"feed_name" => "PRODUCT_SKU",
"format" => "required",
"woo_suggest" => "sku",
),
"PRODUCT_TITLE" => array(
"name" => "PRODUCT_TITLE",
"feed_name" => "PRODUCT_TITLE",
"format" => "required",
"woo_suggest" => "title",
),
"PRODUCT_DESCRIPTION" => array(
"name" => "PRODUCT_DESCRIPTION",
"feed_name" => "PRODUCT_DESCRIPTION",
"format" => "required",
"woo_suggest" => "description",
),
"BRAND" => array(
"name" => "BRAND",
"feed_name" => "BRAND",
"format" => "required",
),
"CATEGORY" => array(
"name" => "CATEGORY",
"feed_name" => "CATEGORY",
"format" => "required",
),
"DEPARTMENT" => array(
"name" => "DEPARTMENT",
"feed_name" => "DEPARTMENT",
"format" => "required",
),
"STOCK" => array(
"name" => "STOCK",
"feed_name" => "STOCK",
"format" => "required",
"woo_suggest" => "quantity",
),
"PRICE" => array(
"name" => "PRICE",
"feed_name" => "PRICE",
"format" => "required",
"woo_suggest" => "price",
),
"SHIPPING" => array(
"name" => "SHIPPING",
"feed_name" => "SHIPPING",
"format" => "required",
),
"IMAGES" => array(
"name" => "IMAGES",
"feed_name" => "IMAGES",
"format" => "required",
"woo_suggest" => "all_images_kogan",
),
"product_subtitle" => array(
"name" => "product_subtitle",
"feed_name" => "product_subtitle",
"format" => "optional",
),
"product_inbox" => array(
"name" => "product_inbox",
"feed_name" => "product_inbox",
"format" => "optional",
),
"product_gtin" => array(
"name" => "product_gtin",
"feed_name" => "product_gtin",
"format" => "optional",
),
"rrp" => array(
"name" => "rrp",
"feed_name" => "rrp",
"format" => "optional",
),
"handling_days" => array(
"name" => "handling_days",
"feed_name" => "handling_days",
"format" => "optional",
),
"product_location" => array(
"name" => "product_location",
"feed_name" => "product_location",
"format" => "optional",
),
),
);
return $kogan;
}
}
?>

View File

@@ -0,0 +1,121 @@
<?php
/**
* Settings for Mall feeds
*/
class WooSEA_mall {
public $mall;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$mall = array(
"Feed fields" => array(
"ID" => array(
"name" => "ID",
"feed_name" => "ID",
"format" => "required",
"woo_suggest" => "id",
),
"STAGE" => array(
"name" => "STAGE",
"feed_name" => "STAGE",
"format" => "required",
),
"ITEMGROUP_ID" => array(
"name" => "ITEMGROUP_ID",
"feed_name" => "ITEMGROUP_ID",
"format" => "required",
"woo_suggest" => "item_group_id",
),
"ITEMGROUP_TITLE" => array(
"name" => "ITEMGROUP_TITLE",
"feed_name" => "ITEMGROUP_TITLE",
"format" => "required",
"woo_suggest" => "mother_title",
),
"CATEGORY_ID" => array(
"name" => "CATEGORY_ID",
"feed_name" => "CATEGORY_ID",
"format" => "required",
),
"BRAND_ID" => array(
"name" => "BRAND_ID",
"feed_name" => "BRAND_ID",
"format" => "required",
),
"TITLE" => array(
"name" => "TITLE",
"feed_name" => "TITLE",
"format" => "required",
"woo_suggest" => "title",
),
"SHORTDESC" => array(
"name" => "SHORTDESC",
"feed_name" => "SHORTDESC",
"format" => "required",
"woo_suggest" => "short_description",
),
"LONGDESC" => array(
"name" => "LONGDESC",
"feed_name" => "LONGDESC",
"format" => "optional",
"woo_suggest" => "description",
),
"PRIORITY" => array(
"name" => "PRIORITY",
"feed_name" => "PRIORITY",
"format" => "required",
),
"PACKAGE_SIZE" => array(
"name" => "PACKAGE_SIZE",
"feed_name" => "PACKAGE_SIZE",
"format" => "optional",
),
"BARCODE" => array(
"name" => "BARCODE",
"feed_name" => "BARCODE",
"format" => "required",
),
"PRICE" => array(
"name" => "PRICE",
"feed_name" => "PRICE",
"format" => "required",
"woo_suggest" => "price",
),
"VAT" => array(
"name" => "VAT",
"feed_name" => "VAT",
"format" => "optional",
),
"RRP" => array(
"name" => "RRP",
"feed_name" => "RRP",
"format" => "optional",
),
"VARIABLE_PARAMS" => array(
"name" => "VARIABLE_PARAMS",
"feed_name" => "VARIABLE_PARAMS",
"format" => "required",
"woo_suggest" => "calculated",
),
"MEDIA" => array(
"name" => "MEDIA",
"feed_name" => "MEDIA",
"format" => "optional",
),
"DELIVERY_DELAY" => array(
"name" => "DELIVERY_DELAY",
"feed_name" => "DELIVERY_DELAY",
"format" => "optional",
),
"FREE_DELIVERY" => array(
"name" => "FREE_DELIVERY",
"feed_name" => "FREE_DELIVERY",
"format" => "optional",
),
),
);
return $mall;
}
}
?>

View File

@@ -0,0 +1,35 @@
<?php
/**
* Settings for Mall availability feeds
*/
class WooSEA_mall_availability {
public $mall_availability;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$mall_availability = array(
"Feed fields" => array(
"ID" => array(
"name" => "ID",
"feed_name" => "ID",
"format" => "required",
"woo_suggest" => "id",
),
"IN_STOCK" => array(
"name" => "IN_STOCK",
"feed_name" => "IN_STOCK",
"format" => "required",
"woo_suggest" => "quantity",
),
"ACTIVE" => array(
"name" => "ACTIVE",
"feed_name" => "ACTIVE",
"format" => "required",
),
),
);
return $mall_availability;
}
}
?>

View File

@@ -0,0 +1,270 @@
<?php
/**
* Settings for ManoMano.co.uk feeds
*/
class WooSEA_manomano {
public $manomano;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$manomano = array(
"Feed fields" => array(
"SKU" => array(
"name" => "sku",
"feed_name" => "sku",
"format" => "required",
"woo_suggest" => "id",
),
"SKU Manufacturer" => array(
"name" => "sku manufacturer",
"feed_name" => "sku_manufacturer",
"format" => "required",
),
"EAN" => array(
"name" => "ean",
"feed_name" => "ean",
"format" => "required",
),
"title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "mother_title",
),
"description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"Product price vat inc" => array(
"name" => "product price vat inc",
"feed_name" => "product_price_vat_inc",
"format" => "required",
"woo_suggest" => "price",
),
"Shipping price vat inc" => array(
"name" => "shipping price vat inc",
"feed_name" => "shipping_price_vat_inc",
"format" => "required",
),
"Quantity" => array(
"name" => "quantity",
"feed_name" => "quantity",
"format" => "required",
),
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Merchant category" => array(
"name" => "merchant category",
"feed_name" => "merchant_category",
"format" => "required",
),
"Product URL" => array(
"name" => "product url",
"feed_name" => "product_url",
"format" => "required",
"woo_suggest" => "link",
),
"Image 1" => array(
"name" => "image 1",
"feed_name" => "image_1",
"format" => "required",
"woo_suggest" => "image",
),
"Image 2" => array(
"name" => "image 2",
"feed_name" => "image_2",
"format" => "optional",
),
"Image 3" => array(
"name" => "image 3",
"feed_name" => "image_3",
"format" => "optional",
),
"Image 4" => array(
"name" => "image 4",
"feed_name" => "image_4",
"format" => "optional",
),
"Image 5" => array(
"name" => "image 5",
"feed_name" => "image_5",
"format" => "optional",
),
"Retail price vat inc" => array(
"name" => "retail price vat inc",
"feed_name" => "retail_price_vat_inc",
"format" => "optional",
),
"Product vat rate" => array(
"name" => "product vat rate",
"feed_name" => "product_vat_rate",
"format" => "optional",
),
"Shipping vat rate" => array(
"name" => "shipping vat rate",
"feed_name" => "shipping_vat_rate",
"format" => "optional",
),
"Manufacturer PDF" => array(
"name" => "manufacturer pdf",
"feed_name" => "manufacturer_pdf",
"format" => "optional",
),
"ParentSKU" => array(
"name" => "parentSKU",
"feed_name" => "ParentSKU",
"format" => "optional",
),
"Cross Sell SKU" => array(
"name" => "Cross Sell SKU",
"feed_name" => "Cross_Sell_SKU",
"format" => "optional",
),
"ManufacturerWarrantyTime" => array(
"name" => "ManufacturerWarrantyTime",
"feed_name" => "ManufacturerWarrantyTime",
"format" => "optional",
),
"Carrier" => array(
"name" => "Carrier",
"feed_name" => "carrier",
"format" => "required",
),
"Shipping Time" => array(
"name" => "Shipping Time",
"feed_name" => "shipping_time",
"format" => "required",
),
"Use Grid" => array(
"name" => "Use Grid",
"feed_name" => "use_grid",
"format" => "required",
),
"Carrier Grid 1" => array(
"name" => "Carrier Grid 1",
"feed_name" => "carrier_grid_1",
"format" => "required",
),
"Shipping time carrier grid 1" => array(
"name" => "Shipping time carrier grid 1",
"feed_name" => "shipping_time_carrier_grid_1",
"format" => "required",
),
"DisplayWeight" => array(
"name" => "DisplayWeight",
"feed_name" => "DisplayWeight",
"format" => "required",
),
"Carrier Grid 2" => array(
"name" => "Carrier Grid 2",
"feed_name" => "carrier_grid_2",
"format" => "optional",
),
"Shipping time carrier grid 2" => array(
"name" => "Shipping time carrier grid 2",
"feed_name" => "shipping_time_carrier_grid_2",
"format" => "optional",
),
"Carrier Grid 3" => array(
"name" => "Carrier Grid 3",
"feed_name" => "carrier_grid_3",
"format" => "optional",
),
"Shipping time carrier grid 3" => array(
"name" => "Shipping time carrier grid 3",
"feed_name" => "shipping_time_carrier_grid_3",
"format" => "optional",
),
"Carrier Grid 4" => array(
"name" => "Carrier Grid 4",
"feed_name" => "carrier_grid_4",
"format" => "optional",
),
"Shipping time carrier grid 4" => array(
"name" => "Shipping time carrier grid 4",
"feed_name" => "shipping_time_carrier_grid_4",
"format" => "optional",
),
"Free Return" => array(
"name" => "Free Return",
"feed_name" => "free_return",
"format" => "optional",
),
"Min quantity" => array(
"name" => "Min quantity",
"feed_name" => "min_quantity",
"format" => "optional",
),
"Increment" => array(
"name" => "Increment",
"feed_name" => "increment",
"format" => "optional",
),
"Sales" => array(
"name" => "Sales",
"feed_name" => "sales",
"format" => "optional",
),
"Eco participation" => array(
"name" => "Eco participation",
"feed_name" => "eco_participation",
"format" => "optional",
),
"Price per m2 vat inc" => array(
"name" => "Price per m2 vat inc",
"feed_name" => "Price_per_m2_vat_inc",
"format" => "optional",
),
"Shipping price supplement vat inc" => array(
"name" => "Shipping price supplement vat inc",
"feed_name" => "shipping_price_supplement_vat_inc",
"format" => "optional",
),
"Feature1" => array(
"name" => "Feature1",
"feed_name" => "feature1",
"format" => "optional",
),
"Color" => array(
"name" => "Color",
"feed_name" => "Color",
"format" => "optional",
),
"Special price type" => array(
"name" => "Special price type",
"feed_name" => "special_price_type",
"format" => "optional",
),
"Sample SKU" => array(
"name" => "Sample SKU",
"feed_name" => "Sample_SKU",
"format" => "optional",
),
"Style" => array(
"name" => "Style",
"feed_name" => "Style",
"format" => "optional",
),
"Unit count" => array(
"name" => "Unit count",
"feed_name" => "unit_count",
"format" => "optional",
),
"Unit count type" => array(
"name" => "Unit count type",
"feed_name" => "unit_count_type",
"format" => "optional",
),
),
);
return $manomano;
}
}
?>

View File

@@ -0,0 +1,187 @@
<?php
/**
* Settings for Miinto Germany feeds
*/
class WooSEA_miinto_de {
public $miinto_de;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$miinto_de = array(
"Feed fields" => array(
"GTIN" => array(
"name" => "gtin",
"feed_name" => "gtin",
"format" => "required",
),
"Item Group ID" => array(
"name" => "item_group_id",
"feed_name" => "item_group_id",
"format" => "required",
"woo_suggest" => "item_group_id",
),
"C:style_id:string" => array(
"name" => "c:style_id:string",
"feed_name" => "c:style_id:string",
"format" => "required",
),
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"C:title_PL:string" => array(
"name" => "c:title_PL:string",
"feed_name" => "c:title_PL:string",
"format" => "optional",
),
"C:title_DK:string" => array(
"name" => "c:title_DK:string",
"feed_name" => "c:title_DK:string",
"format" => "optional",
),
"C:title_NL:string" => array(
"name" => "c:title_NL:string",
"feed_name" => "c:title_NL:string",
"format" => "optional",
),
"Product Type" => array(
"name" => "product_type",
"feed_name" => "product_type",
"format" => "required",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "required",
),
"Color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "required",
),
"Size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "required",
),
"Image link" => array(
"name" => "image_link",
"feed_name" => "image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image link" => array(
"name" => "additional_image_link",
"feed_name" => "additional_image_link",
"format" => "optional",
),
"Availability" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "optional",
"woo_suggest" => "availability",
),
"C:stock_level:integer" => array(
"name" => "c:stock_level:integer",
"feed_name" => "c:stock_level:integer",
"format" => "required",
),
"C:season_tag:string" => array(
"name" => "c:season_tag:string",
"feed_name" => "c:season_tag:string",
"format" => "required",
),
"Description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"C:description_PL:string" => array(
"name" => "c:description_PL:string",
"feed_name" => "c:description_PL:string",
"format" => "optional",
),
"C:description_NL:string" => array(
"name" => "c:description_NL:string",
"feed_name" => "c:description_NL:string",
"format" => "optional",
),
"C:description_DK:string" => array(
"name" => "c:description_DK:string",
"feed_name" => "c:description_DK:string",
"format" => "optional",
),
"Material" => array(
"name" => "material",
"feed_name" => "material",
"format" => "optional",
),
"Washing" => array(
"name" => "washing",
"feed_name" => "washing",
"format" => "optional",
),
"C:discount_retail_price_PLN:integer" => array(
"name" => "c:discount_retail_price_PLN:integer",
"feed_name" => "c:discount_retail_price_PLN:integer",
"format" => "optional",
),
"C:discount_retail_price_DKK:integer" => array(
"name" => "c:discount_retail_price_DKK:integer",
"feed_name" => "c:discount_retail_price_DKK:integer",
"format" => "optional",
),
"C:discount_retail_price_EUR:integer" => array(
"name" => "c:discount_retail_price_EUR:integer",
"feed_name" => "c:discount_retail_price_EUR:integer",
"format" => "optional",
),
"C:retail_price_PLN:integer" => array(
"name" => "c:retail_price_PLN:integer",
"feed_name" => "c:retail_price_PLN:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:retail_price_DKK:integer" => array(
"name" => "c:retail_price_DKK:integer",
"feed_name" => "c:retail_price_DKK:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:retail_price_EUR:integer" => array(
"name" => "c:retail_price_EUR:integer",
"feed_name" => "c:retail_price_EUR:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:wholsesale_price_PLN:integer" => array(
"name" => "c:wholesale_price_PLN:integer",
"feed_name" => "c:wholesale_price_PLN:integer",
"format" => "optional",
),
"C:wholsesale_price_DKK:integer" => array(
"name" => "c:wholesale_price_DKK:integer",
"feed_name" => "c:wholesale_price_DKK:integer",
"format" => "optional",
),
"C:wholsesale_price_EUR:integer" => array(
"name" => "c:wholesale_price_EUR:integer",
"feed_name" => "c:wholesale_price_EUR:integer",
"format" => "optional",
),
),
);
return $miinto_de;
}
}
?>

View File

@@ -0,0 +1,187 @@
<?php
/**
* Settings for Miinto Denmark feeds
*/
class WooSEA_miinto_dk {
public $miinto_dk;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$miinto_dk = array(
"Feed fields" => array(
"GTIN" => array(
"name" => "gtin",
"feed_name" => "gtin",
"format" => "required",
),
"Item Group ID" => array(
"name" => "item_group_id",
"feed_name" => "item_group_id",
"format" => "required",
"woo_suggest" => "item_group_id",
),
"C:style_id:string" => array(
"name" => "c:style_id:string",
"feed_name" => "c:style_id:string",
"format" => "required",
),
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"C:title_PL:string" => array(
"name" => "c:title_PL:string",
"feed_name" => "c:title_PL:string",
"format" => "optional",
),
"C:title_DK:string" => array(
"name" => "c:title_DK:string",
"feed_name" => "c:title_DK:string",
"format" => "optional",
),
"C:title_NL:string" => array(
"name" => "c:title_NL:string",
"feed_name" => "c:title_NL:string",
"format" => "optional",
),
"Product Type" => array(
"name" => "product_type",
"feed_name" => "product_type",
"format" => "required",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "required",
),
"Color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "required",
),
"Size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "required",
),
"Image link" => array(
"name" => "image_link",
"feed_name" => "image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image link" => array(
"name" => "additional_image_link",
"feed_name" => "additional_image_link",
"format" => "optional",
),
"Availability" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "optional",
"woo_suggest" => "availability",
),
"C:stock_level:integer" => array(
"name" => "c:stock_level:integer",
"feed_name" => "c:stock_level:integer",
"format" => "required",
),
"C:season_tag:string" => array(
"name" => "c:season_tag:string",
"feed_name" => "c:season_tag:string",
"format" => "required",
),
"Description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"C:description_PL:string" => array(
"name" => "c:description_PL:string",
"feed_name" => "c:description_PL:string",
"format" => "optional",
),
"C:description_NL:string" => array(
"name" => "c:description_NL:string",
"feed_name" => "c:description_NL:string",
"format" => "optional",
),
"C:description_DK:string" => array(
"name" => "c:description_DK:string",
"feed_name" => "c:description_DK:string",
"format" => "optional",
),
"Material" => array(
"name" => "material",
"feed_name" => "material",
"format" => "optional",
),
"Washing" => array(
"name" => "washing",
"feed_name" => "washing",
"format" => "optional",
),
"C:discount_retail_price_PLN:integer" => array(
"name" => "c:discount_retail_price_PLN:integer",
"feed_name" => "c:discount_retail_price_PLN:integer",
"format" => "optional",
),
"C:discount_retail_price_DKK:integer" => array(
"name" => "c:discount_retail_price_DKK:integer",
"feed_name" => "c:discount_retail_price_DKK:integer",
"format" => "optional",
),
"C:discount_retail_price_EUR:integer" => array(
"name" => "c:discount_retail_price_EUR:integer",
"feed_name" => "c:discount_retail_price_EUR:integer",
"format" => "optional",
),
"C:retail_price_PLN:integer" => array(
"name" => "c:retail_price_PLN:integer",
"feed_name" => "c:retail_price_PLN:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:retail_price_DKK:integer" => array(
"name" => "c:retail_price_DKK:integer",
"feed_name" => "c:retail_price_DKK:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:retail_price_EUR:integer" => array(
"name" => "c:retail_price_EUR:integer",
"feed_name" => "c:retail_price_EUR:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:wholsesale_price_PLN:integer" => array(
"name" => "c:wholesale_price_PLN:integer",
"feed_name" => "c:wholesale_price_PLN:integer",
"format" => "optional",
),
"C:wholsesale_price_DKK:integer" => array(
"name" => "c:wholesale_price_DKK:integer",
"feed_name" => "c:wholesale_price_DKK:integer",
"format" => "optional",
),
"C:wholsesale_price_EUR:integer" => array(
"name" => "c:wholesale_price_EUR:integer",
"feed_name" => "c:wholesale_price_EUR:integer",
"format" => "optional",
),
),
);
return $miinto_dk;
}
}
?>

View File

@@ -0,0 +1,187 @@
<?php
/**
* Settings for Miinto France feeds
*/
class WooSEA_miinto_fr {
public $miinto_fr;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$miinto_fr = array(
"Feed fields" => array(
"GTIN" => array(
"name" => "gtin",
"feed_name" => "gtin",
"format" => "required",
),
"Item Group ID" => array(
"name" => "item_group_id",
"feed_name" => "item_group_id",
"format" => "required",
"woo_suggest" => "item_group_id",
),
"C:style_id:string" => array(
"name" => "c:style_id:string",
"feed_name" => "c:style_id:string",
"format" => "required",
),
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"C:title_PL:string" => array(
"name" => "c:title_PL:string",
"feed_name" => "c:title_PL:string",
"format" => "optional",
),
"C:title_DK:string" => array(
"name" => "c:title_DK:string",
"feed_name" => "c:title_DK:string",
"format" => "optional",
),
"C:title_NL:string" => array(
"name" => "c:title_NL:string",
"feed_name" => "c:title_NL:string",
"format" => "optional",
),
"Product Type" => array(
"name" => "product_type",
"feed_name" => "product_type",
"format" => "required",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "required",
),
"Color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "required",
),
"Size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "required",
),
"Image link" => array(
"name" => "image_link",
"feed_name" => "image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image link" => array(
"name" => "additional_image_link",
"feed_name" => "additional_image_link",
"format" => "optional",
),
"Availability" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "optional",
"woo_suggest" => "availability",
),
"C:stock_level:integer" => array(
"name" => "c:stock_level:integer",
"feed_name" => "c:stock_level:integer",
"format" => "required",
),
"C:season_tag:string" => array(
"name" => "c:season_tag:string",
"feed_name" => "c:season_tag:string",
"format" => "required",
),
"Description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"C:description_PL:string" => array(
"name" => "c:description_PL:string",
"feed_name" => "c:description_PL:string",
"format" => "optional",
),
"C:description_NL:string" => array(
"name" => "c:description_NL:string",
"feed_name" => "c:description_NL:string",
"format" => "optional",
),
"C:description_DK:string" => array(
"name" => "c:description_DK:string",
"feed_name" => "c:description_DK:string",
"format" => "optional",
),
"Material" => array(
"name" => "material",
"feed_name" => "material",
"format" => "optional",
),
"Washing" => array(
"name" => "washing",
"feed_name" => "washing",
"format" => "optional",
),
"C:discount_retail_price_PLN:integer" => array(
"name" => "c:discount_retail_price_PLN:integer",
"feed_name" => "c:discount_retail_price_PLN:integer",
"format" => "optional",
),
"C:discount_retail_price_DKK:integer" => array(
"name" => "c:discount_retail_price_DKK:integer",
"feed_name" => "c:discount_retail_price_DKK:integer",
"format" => "optional",
),
"C:discount_retail_price_EUR:integer" => array(
"name" => "c:discount_retail_price_EUR:integer",
"feed_name" => "c:discount_retail_price_EUR:integer",
"format" => "optional",
),
"C:retail_price_PLN:integer" => array(
"name" => "c:retail_price_PLN:integer",
"feed_name" => "c:retail_price_PLN:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:retail_price_DKK:integer" => array(
"name" => "c:retail_price_DKK:integer",
"feed_name" => "c:retail_price_DKK:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:retail_price_EUR:integer" => array(
"name" => "c:retail_price_EUR:integer",
"feed_name" => "c:retail_price_EUR:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:wholsesale_price_PLN:integer" => array(
"name" => "c:wholesale_price_PLN:integer",
"feed_name" => "c:wholesale_price_PLN:integer",
"format" => "optional",
),
"C:wholsesale_price_DKK:integer" => array(
"name" => "c:wholesale_price_DKK:integer",
"feed_name" => "c:wholesale_price_DKK:integer",
"format" => "optional",
),
"C:wholsesale_price_EUR:integer" => array(
"name" => "c:wholesale_price_EUR:integer",
"feed_name" => "c:wholesale_price_EUR:integer",
"format" => "optional",
),
),
);
return $miinto_fr;
}
}
?>

View File

@@ -0,0 +1,187 @@
<?php
/**
* Settings for Miinto Netherlands feeds
*/
class WooSEA_miinto_nl {
public $miinto_nl;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$miinto_nl = array(
"Feed fields" => array(
"GTIN" => array(
"name" => "gtin",
"feed_name" => "gtin",
"format" => "required",
),
"Item Group ID" => array(
"name" => "item_group_id",
"feed_name" => "item_group_id",
"format" => "required",
"woo_suggest" => "item_group_id",
),
"C:style_id:string" => array(
"name" => "c:style_id:string",
"feed_name" => "c:style_id:string",
"format" => "required",
),
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"C:title_PL:string" => array(
"name" => "c:title_PL:string",
"feed_name" => "c:title_PL:string",
"format" => "optional",
),
"C:title_DK:string" => array(
"name" => "c:title_DK:string",
"feed_name" => "c:title_DK:string",
"format" => "optional",
),
"C:title_NL:string" => array(
"name" => "c:title_NL:string",
"feed_name" => "c:title_NL:string",
"format" => "optional",
),
"Product Type" => array(
"name" => "product_type",
"feed_name" => "product_type",
"format" => "required",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "required",
),
"Color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "required",
),
"Size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "required",
),
"Image link" => array(
"name" => "image_link",
"feed_name" => "image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image link" => array(
"name" => "additional_image_link",
"feed_name" => "additional_image_link",
"format" => "optional",
),
"Availability" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "optional",
"woo_suggest" => "availability",
),
"C:stock_level:integer" => array(
"name" => "c:stock_level:integer",
"feed_name" => "c:stock_level:integer",
"format" => "required",
),
"C:season_tag:string" => array(
"name" => "c:season_tag:string",
"feed_name" => "c:season_tag:string",
"format" => "required",
),
"Description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"C:description_PL:string" => array(
"name" => "c:description_PL:string",
"feed_name" => "c:description_PL:string",
"format" => "optional",
),
"C:description_NL:string" => array(
"name" => "c:description_NL:string",
"feed_name" => "c:description_NL:string",
"format" => "optional",
),
"C:description_DK:string" => array(
"name" => "c:description_DK:string",
"feed_name" => "c:description_DK:string",
"format" => "optional",
),
"Material" => array(
"name" => "material",
"feed_name" => "material",
"format" => "optional",
),
"Washing" => array(
"name" => "washing",
"feed_name" => "washing",
"format" => "optional",
),
"C:discount_retail_price_PLN:integer" => array(
"name" => "c:discount_retail_price_PLN:integer",
"feed_name" => "c:discount_retail_price_PLN:integer",
"format" => "optional",
),
"C:discount_retail_price_DKK:integer" => array(
"name" => "c:discount_retail_price_DKK:integer",
"feed_name" => "c:discount_retail_price_DKK:integer",
"format" => "optional",
),
"C:discount_retail_price_EUR:integer" => array(
"name" => "c:discount_retail_price_EUR:integer",
"feed_name" => "c:discount_retail_price_EUR:integer",
"format" => "optional",
),
"C:retail_price_PLN:integer" => array(
"name" => "c:retail_price_PLN:integer",
"feed_name" => "c:retail_price_PLN:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:retail_price_DKK:integer" => array(
"name" => "c:retail_price_DKK:integer",
"feed_name" => "c:retail_price_DKK:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:retail_price_EUR:integer" => array(
"name" => "c:retail_price_EUR:integer",
"feed_name" => "c:retail_price_EUR:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:wholsesale_price_PLN:integer" => array(
"name" => "c:wholesale_price_PLN:integer",
"feed_name" => "c:wholesale_price_PLN:integer",
"format" => "optional",
),
"C:wholsesale_price_DKK:integer" => array(
"name" => "c:wholesale_price_DKK:integer",
"feed_name" => "c:wholesale_price_DKK:integer",
"format" => "optional",
),
"C:wholsesale_price_EUR:integer" => array(
"name" => "c:wholesale_price_EUR:integer",
"feed_name" => "c:wholesale_price_EUR:integer",
"format" => "optional",
),
),
);
return $miinto_nl;
}
}
?>

View File

@@ -0,0 +1,187 @@
<?php
/**
* Settings for Miinto Poland feeds
*/
class WooSEA_miinto_pl {
public $miinto_pl;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$miinto_pl = array(
"Feed fields" => array(
"GTIN" => array(
"name" => "gtin",
"feed_name" => "gtin",
"format" => "required",
),
"Item Group ID" => array(
"name" => "item_group_id",
"feed_name" => "item_group_id",
"format" => "required",
"woo_suggest" => "item_group_id",
),
"C:style_id:string" => array(
"name" => "c:style_id:string",
"feed_name" => "c:style_id:string",
"format" => "required",
),
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"C:title_PL:string" => array(
"name" => "c:title_PL:string",
"feed_name" => "c:title_PL:string",
"format" => "optional",
),
"C:title_DK:string" => array(
"name" => "c:title_DK:string",
"feed_name" => "c:title_DK:string",
"format" => "optional",
),
"C:title_NL:string" => array(
"name" => "c:title_NL:string",
"feed_name" => "c:title_NL:string",
"format" => "optional",
),
"Product Type" => array(
"name" => "product_type",
"feed_name" => "product_type",
"format" => "required",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "required",
),
"Color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "required",
),
"Size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "required",
),
"Image link" => array(
"name" => "image_link",
"feed_name" => "image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image link" => array(
"name" => "additional_image_link",
"feed_name" => "additional_image_link",
"format" => "optional",
),
"Availability" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "optional",
"woo_suggest" => "availability",
),
"C:stock_level:integer" => array(
"name" => "c:stock_level:integer",
"feed_name" => "c:stock_level:integer",
"format" => "required",
),
"C:season_tag:string" => array(
"name" => "c:season_tag:string",
"feed_name" => "c:season_tag:string",
"format" => "required",
),
"Description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"C:description_PL:string" => array(
"name" => "c:description_PL:string",
"feed_name" => "c:description_PL:string",
"format" => "optional",
),
"C:description_NL:string" => array(
"name" => "c:description_NL:string",
"feed_name" => "c:description_NL:string",
"format" => "optional",
),
"C:description_DK:string" => array(
"name" => "c:description_DK:string",
"feed_name" => "c:description_DK:string",
"format" => "optional",
),
"Material" => array(
"name" => "material",
"feed_name" => "material",
"format" => "optional",
),
"Washing" => array(
"name" => "washing",
"feed_name" => "washing",
"format" => "optional",
),
"C:discount_retail_price_PLN:integer" => array(
"name" => "c:discount_retail_price_PLN:integer",
"feed_name" => "c:discount_retail_price_PLN:integer",
"format" => "optional",
),
"C:discount_retail_price_DKK:integer" => array(
"name" => "c:discount_retail_price_DKK:integer",
"feed_name" => "c:discount_retail_price_DKK:integer",
"format" => "optional",
),
"C:discount_retail_price_EUR:integer" => array(
"name" => "c:discount_retail_price_EUR:integer",
"feed_name" => "c:discount_retail_price_EUR:integer",
"format" => "optional",
),
"C:retail_price_PLN:integer" => array(
"name" => "c:retail_price_PLN:integer",
"feed_name" => "c:retail_price_PLN:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:retail_price_DKK:integer" => array(
"name" => "c:retail_price_DKK:integer",
"feed_name" => "c:retail_price_DKK:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:retail_price_EUR:integer" => array(
"name" => "c:retail_price_EUR:integer",
"feed_name" => "c:retail_price_EUR:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:wholsesale_price_PLN:integer" => array(
"name" => "c:wholesale_price_PLN:integer",
"feed_name" => "c:wholesale_price_PLN:integer",
"format" => "optional",
),
"C:wholsesale_price_DKK:integer" => array(
"name" => "c:wholesale_price_DKK:integer",
"feed_name" => "c:wholesale_price_DKK:integer",
"format" => "optional",
),
"C:wholsesale_price_EUR:integer" => array(
"name" => "c:wholesale_price_EUR:integer",
"feed_name" => "c:wholesale_price_EUR:integer",
"format" => "optional",
),
),
);
return $miinto_pl;
}
}
?>

View File

@@ -0,0 +1,213 @@
<?php
/**
* Settings for Miinto Sweden feeds
*/
class WooSEA_miinto_se {
public $miinto_se;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$miinto_se = array(
"Feed fields" => array(
"GTIN" => array(
"name" => "gtin",
"feed_name" => "gtin",
"format" => "required",
),
"Item Group ID" => array(
"name" => "item_group_id",
"feed_name" => "item_group_id",
"format" => "required",
"woo_suggest" => "item_group_id",
),
"C:style_id:string" => array(
"name" => "c:style_id:string",
"feed_name" => "c:style_id:string",
"format" => "required",
),
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"C:title_PL:string" => array(
"name" => "c:title_PL:string",
"feed_name" => "c:title_PL:string",
"format" => "optional",
),
"C:title_SV:string" => array(
"name" => "c:title_SV:string",
"feed_name" => "c:title_SV:string",
"format" => "optional",
),
"C:title_DK:string" => array(
"name" => "c:title_DK:string",
"feed_name" => "c:title_DK:string",
"format" => "optional",
),
"C:title_NL:string" => array(
"name" => "c:title_NL:string",
"feed_name" => "c:title_NL:string",
"format" => "optional",
),
"Product Type" => array(
"name" => "product_type",
"feed_name" => "product_type",
"format" => "required",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "required",
),
"Color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "required",
),
"Size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "required",
),
"Image link" => array(
"name" => "image_link",
"feed_name" => "image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image link" => array(
"name" => "additional_image_link",
"feed_name" => "additional_image_link",
"format" => "optional",
),
"Availability" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "optional",
"woo_suggest" => "availability",
),
"C:stock_level:integer" => array(
"name" => "c:stock_level:integer",
"feed_name" => "c:stock_level:integer",
"format" => "required",
),
"C:season_tag:string" => array(
"name" => "c:season_tag:string",
"feed_name" => "c:season_tag:string",
"format" => "required",
),
"Description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"C:description_PL:string" => array(
"name" => "c:description_PL:string",
"feed_name" => "c:description_PL:string",
"format" => "optional",
),
"C:description_NL:string" => array(
"name" => "c:description_NL:string",
"feed_name" => "c:description_NL:string",
"format" => "optional",
),
"C:description_DK:string" => array(
"name" => "c:description_DK:string",
"feed_name" => "c:description_DK:string",
"format" => "optional",
),
"C:description_SV:string" => array(
"name" => "c:description_SV:string",
"feed_name" => "c:description_SV:string",
"format" => "optional",
),
"Material" => array(
"name" => "material",
"feed_name" => "material",
"format" => "optional",
),
"Washing" => array(
"name" => "washing",
"feed_name" => "washing",
"format" => "optional",
),
"C:discount_retail_price_PLN:integer" => array(
"name" => "c:discount_retail_price_PLN:integer",
"feed_name" => "c:discount_retail_price_PLN:integer",
"format" => "optional",
),
"C:discount_retail_price_DKK:integer" => array(
"name" => "c:discount_retail_price_DKK:integer",
"feed_name" => "c:discount_retail_price_DKK:integer",
"format" => "optional",
),
"C:discount_retail_price_SEK:integer" => array(
"name" => "c:discount_retail_price_SEK:integer",
"feed_name" => "c:discount_retail_price_SEK:integer",
"format" => "optional",
),
"C:discount_retail_price_EUR:integer" => array(
"name" => "c:discount_retail_price_EUR:integer",
"feed_name" => "c:discount_retail_price_EUR:integer",
"format" => "optional",
),
"C:retail_price_PLN:integer" => array(
"name" => "c:retail_price_PLN:integer",
"feed_name" => "c:retail_price_PLN:integer",
"format" => "optional",
"woo_suggest" => "price",
),
"C:retail_price_DKK:integer" => array(
"name" => "c:retail_price_DKK:integer",
"feed_name" => "c:retail_price_DKK:integer",
"format" => "optional",
"woo_suggest" => "price",
),
"C:retail_price_SEK:integer" => array(
"name" => "c:retail_price_SEK:integer",
"feed_name" => "c:retail_price_SEK:integer",
"format" => "required",
"woo_suggest" => "price",
),
"C:retail_price_EUR:integer" => array(
"name" => "c:retail_price_EUR:integer",
"feed_name" => "c:retail_price_EUR:integer",
"format" => "optional",
"woo_suggest" => "price",
),
"C:wholsesale_price_PLN:integer" => array(
"name" => "c:wholesale_price_PLN:integer",
"feed_name" => "c:wholesale_price_PLN:integer",
"format" => "optional",
),
"C:wholsesale_price_DKK:integer" => array(
"name" => "c:wholesale_price_DKK:integer",
"feed_name" => "c:wholesale_price_DKK:integer",
"format" => "optional",
),
"C:wholsesale_price_SEK:integer" => array(
"name" => "c:wholesale_price_SEK:integer",
"feed_name" => "c:wholesale_price_SEK:integer",
"format" => "optional",
),
"C:wholsesale_price_EUR:integer" => array(
"name" => "c:wholesale_price_EUR:integer",
"feed_name" => "c:wholesale_price_EUR:integer",
"format" => "optional",
),
),
);
return $miinto_se;
}
}
?>

View File

@@ -0,0 +1,595 @@
<?php
/**
* Settings for Moebel feeds
*/
class WooSEA_moebel {
public $moebel;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$moebel = array(
"Feed fields" => array(
"Art nr" => array(
"name" => "art_nr",
"feed_name" => "art_nr",
"format" => "required",
"woo_suggest" => "id",
),
"Art name" => array(
"name" => "art_name",
"feed_name" => "art_name",
"format" => "required",
"woo_suggest" => "title",
),
"Art beschreibung" => array(
"name" => "art_beschreibung",
"feed_name" => "art_beschreibung",
"format" => "required",
"woo_suggest" => "description",
),
"Art URL" => array(
"name" => "art_url",
"feed_name" => "art_url",
"format" => "required",
"woo_suggest" => "link",
),
"Art img URL" => array(
"name" => "art_img_url",
"feed_name" => "art_img_url",
"format" => "required",
"woo_suggest" => "image",
),
"Art waehrung" => array(
"name" => "art_waehrung",
"feed_name" => "art_waehrung",
"format" => "required",
),
"Art preis" => array(
"name" => "art_price",
"feed_name" => "art_price",
"format" => "required",
"woo_suggest" => "price",
),
"Art lieferkosten" => array(
"name" => "art_lieferkosten",
"feed_name" => "art_lieferkosten",
"format" => "required",
),
"Art stamm" => array(
"name" => "art_stamm",
"feed_name" => "art_stamm",
"format" => "optional",
),
"Art ean" => array(
"name" => "art_ean",
"feed_name" => "art_ean",
"format" => "optional",
),
"Art plz" => array(
"name" => "art_plz",
"feed_name" => "art_plz",
"format" => "optional",
),
"Art bidding bidDesktop" => array(
"name" => "art_bidding.bidDesktop",
"feed_name" => "art_bidding.biedDesktop",
"format" => "optional",
),
"Art bidding factorMobile" => array(
"name" => "art_bidding.factorMobile",
"feed_name" => "art_bidding.factorMobile",
"format" => "optional",
),
"Art Google Shopping Target URL" => array(
"name" => "art_Google_Shopping_Target_URL",
"feed_name" => "art_Google_Shopping_Target_URL",
"format" => "optional",
),
"Art Clear Product URL" => array(
"name" => "art_Clear_Product_URL",
"feed_name" => "art_Clear_Product_URL",
"format" => "optional",
),
"Top Mid Low" => array(
"name" => "top-mid-low",
"feed_name" => "top-mid-low",
"format" => "optional",
),
"Art streichpreis" => array(
"name" => "art_streichpreis",
"feed_name" => "art_streichpreis",
"format" => "optional",
),
"Art lieferoptionen" => array(
"name" => "art_lieferoptionen",
"feed_name" => "art_lieferoptionen",
"format" => "optional",
),
"Partner Payment Methods" => array(
"name" => "partner.paymentMethods",
"feed_name" => "partner.paymentMethods",
"format" => "optional",
),
"Art services" => array(
"name" => "art_services",
"feed_name" => "art_services",
"format" => "optional",
),
"Art grundpreis" => array(
"name" => "art_grundpreis",
"feed_name" => "art_grundpreis",
"format" => "optional",
),
"Art grundpreis einheit" => array(
"name" => "art_grundpreis_einheit",
"feed_name" => "art_grundpreis_einheit",
"format" => "optional",
),
"Art finanzierung" => array(
"name" => "art_finanzierung",
"feed_name" => "art_finanzierung",
"format" => "optional",
),
"Art lieferzeit" => array(
"name" => "art_lieferzeit",
"feed_name" => "art_lieferzeit",
"format" => "optional",
),
"Art lieferzeit wert" => array(
"name" => "art_lieferzeit_wert",
"feed_name" => "art_lieferzeit_wert",
"format" => "optional",
),
"Art lieferkosten text" => array(
"name" => "art_lieferkosten_text",
"feed_name" => "art_lieferkosten_text",
"format" => "optional",
),
"Art versand at" => array(
"name" => "art_versand_at",
"feed_name" => "art_versand_at",
"format" => "optional",
),
"Art versand at preis" => array(
"name" => "art_versand_at_preis",
"feed_name" => "art_versand_at_preis",
"format" => "optional",
),
"Art versand ch" => array(
"name" => "art_versand_ch",
"feed_name" => "art_versand_ch",
"format" => "optional",
),
"Art versand ch preis" => array(
"name" => "art_versand_ch_preis",
"feed_name" => "art_versand_ch_preis",
"format" => "optional",
),
"Art versand sonstlaender" => array(
"name" => "art_versand_sonstlaender",
"feed_name" => "art_versand_sonstlaender",
"format" => "optional",
),
"Art montage" => array(
"name" => "art_montage",
"feed_name" => "art_montage",
"format" => "optional",
),
"Art montagepreis" => array(
"name" => "art_montagepreis",
"feed_name" => "art_montagepreis",
"format" => "optional",
),
"Art express" => array(
"name" => "art_express",
"feed_name" => "art_express",
"format" => "optional",
),
"Art verfuegbarkeit" => array(
"name" => "art_verfuegbarkeit",
"feed_name" => "art_verfuegbarkeit",
"format" => "optional",
),
"Art verfuegbarkeit" => array(
"name" => "art_verfuegbarkeit",
"feed_name" => "art_verfuegbarkeit",
"format" => "optional",
),
"Art farbe" => array(
"name" => "art_farbe",
"feed_name" => "art_farbe",
"format" => "optional",
),
"Art hauptfarbe" => array(
"name" => "art_hauptfarbe",
"feed_name" => "art_hauptfarbe",
"format" => "optional",
),
"Art material" => array(
"name" => "art_material",
"feed_name" => "art_material",
"format" => "optional",
),
"Art hauptmaterial" => array(
"name" => "art_hauptmaterial",
"feed_name" => "art_hauptmaterial",
"format" => "optional",
),
"Art holzart" => array(
"name" => "art_holzart",
"feed_name" => "art_holzart",
"format" => "optional",
),
"Art stil" => array(
"name" => "art_stil",
"feed_name" => "art_stil",
"format" => "optional",
),
"Art marke" => array(
"name" => "art_marke",
"feed_name" => "art_marke",
"format" => "optional",
),
"Art kategorie" => array(
"name" => "art_kategorie",
"feed_name" => "art_kategorie",
"format" => "optional",
),
"Art bewertung" => array(
"name" => "art_bewertung",
"feed_name" => "art_bewertung",
"format" => "optional",
),
"Art bewertungsanzahl" => array(
"name" => "art_bewertungsanzahl",
"feed_name" => "art_bewertungsanzahl",
"format" => "optional",
),
"Art extras" => array(
"name" => "art_extras",
"feed_name" => "art_extras",
"format" => "optional",
),
"Art geschlecht" => array(
"name" => "art_geschlecht",
"feed_name" => "art_geschlecht",
"format" => "optional",
),
"Art oberflaeche" => array(
"name" => "art_oberflaeche",
"feed_name" => "art_oberflaeche",
"format" => "optional",
),
"Art sets" => array(
"name" => "art_sets",
"feed_name" => "art_sets",
"format" => "optional",
),
"Art ausrichting" => array(
"name" => "art_ausrichtung",
"feed_name" => "art_ausrichting",
"format" => "optional",
),
"Art verwendungsort" => array(
"name" => "art_verwendungsort",
"feed_name" => "art_verwendungsort",
"format" => "optional",
),
"Art sitzplatze" => array(
"name" => "art_sitzplatze",
"feed_name" => "art_sitzplatze",
"format" => "optional",
),
"Art muster" => array(
"name" => "art_muster",
"feed_name" => "art_muster",
"format" => "optional",
),
"Art energiequelle" => array(
"name" => "art_energiequelle",
"feed_name" => "art_energiequelle",
"format" => "optional",
),
"Art siegel" => array(
"name" => "art_siegel",
"feed_name" => "art_siegel",
"format" => "optional",
),
"Art hersteller" => array(
"name" => "art_hersteller",
"feed_name" => "art_hersteller",
"format" => "optional",
),
"Art img url2" => array(
"name" => "art_img_url2",
"feed_name" => "art_img_url2",
"format" => "optional",
),
"Art img url3" => array(
"name" => "art_img_url3",
"feed_name" => "art_img_url3",
"format" => "optional",
),
"Art img url4" => array(
"name" => "art_img_url4",
"feed_name" => "art_img_url4",
"format" => "optional",
),
"Art img url5" => array(
"name" => "art_img_url5",
"feed_name" => "art_img_url5",
"format" => "optional",
),
"Art img url6" => array(
"name" => "art_img_url6",
"feed_name" => "art_img_url6",
"format" => "optional",
),
"Art img url7" => array(
"name" => "art_img_url7",
"feed_name" => "art_img_url7",
"format" => "optional",
),
"Art img url8" => array(
"name" => "art_img_url8",
"feed_name" => "art_img_url8",
"format" => "optional",
),
"Art img url9" => array(
"name" => "art_img_url9",
"feed_name" => "art_img_url9",
"format" => "optional",
),
"Art masse" => array(
"name" => "art_masse",
"feed_name" => "art_masse",
"format" => "optional",
),
"Art breite" => array(
"name" => "art_breite",
"feed_name" => "art_breite",
"format" => "optional",
),
"Art breite einheit" => array(
"name" => "art_breite_einheit",
"feed_name" => "art_breite_einheit",
"format" => "optional",
),
"Art tiefe" => array(
"name" => "art_tiefe",
"feed_name" => "art_tiefe",
"format" => "optional",
),
"Art tiefe einheit" => array(
"name" => "art_tiefe_einheit",
"feed_name" => "art_tiefe_einheit",
"format" => "optional",
),
"Art hoehe" => array(
"name" => "art_hoehe",
"feed_name" => "art_hoehe",
"format" => "optional",
),
"Art hoehe einheit" => array(
"name" => "art_hoehe_einheit",
"feed_name" => "art_hoehe_einheit",
"format" => "optional",
),
"Art form" => array(
"name" => "art_form",
"feed_name" => "art_form",
"format" => "optional",
),
"Art sitztiefe" => array(
"name" => "art_sitztiefe",
"feed_name" => "art_sitztiefe",
"format" => "optional",
),
"Art sitzhoehe" => array(
"name" => "art_sitzhoehe",
"feed_name" => "art_sitzhoehe",
"format" => "optional",
),
"Art sitzhoehe einheit" => array(
"name" => "art_sitzhoehe_einheit",
"feed_name" => "art_sitzhoehe_einheit",
"format" => "optional",
),
"Art sitztiefe einheit" => array(
"name" => "art_sitztiefe_einheit",
"feed_name" => "art_sitztiefe_einheit",
"format" => "optional",
),
"Art schenkelmass" => array(
"name" => "art_schenkelmass",
"feed_name" => "art_schenkelmass",
"format" => "optional",
),
"Art schenkelmass einheit" => array(
"name" => "art_schenkelmass_einheit",
"feed_name" => "art_schenkelmass_einheit",
"format" => "optional",
),
"Art durchmesser" => array(
"name" => "art_durchmesser",
"feed_name" => "art_durchmesser",
"format" => "optional",
),
"Art durchmesser einheit" => array(
"name" => "art_durchmesser_einheit",
"feed_name" => "art_durchmesser_einheit",
"format" => "optional",
),
"Art aufhaengung" => array(
"name" => "art_aufhaengung",
"feed_name" => "art_aufhaengung",
"format" => "optional",
),
"Art fuellmaterial" => array(
"name" => "art_fuellmaterial",
"feed_name" => "art_fuellmaterial",
"format" => "optional",
),
"Art funktion heimtex" => array(
"name" => "art_funktion_heimtext",
"feed_name" => "art_funtion_heimtext",
"format" => "optional",
),
"Art effizienzklasse" => array(
"name" => "art_effizienzklasse",
"feed_name" => "art_effizienzklasse",
"format" => "optional",
),
"Art lautstaerke" => array(
"name" => "art_lautstaerke",
"feed_name" => "art_lautstaerke",
"format" => "optional",
),
"Art helligkeit" => array(
"name" => "art_helligkeit",
"feed_name" => "art_helligkeit",
"format" => "optional",
),
"Art lichtfarbe" => array(
"name" => "art_lichtfarbe",
"feed_name" => "art_lichtfarbe",
"format" => "optional",
),
"Art kuechenelektro" => array(
"name" => "art_kuechenelektro",
"feed_name" => "art_kuechenelektro",
"format" => "optional",
),
"Art herdeigenschaften" => array(
"name" => "art_herdeigenschaften",
"feed_name" => "art_herdeigenschaften",
"format" => "optional",
),
"Art kochfeld" => array(
"name" => "art_kochfeld",
"feed_name" => "art_kochfeld",
"format" => "optional",
),
"Art material arbeitsplatte" => array(
"name" => "art_material_arbeitsplatte",
"feed_name" => "art_material_arbeitsplatte",
"format" => "optional",
),
"Art extras sessel" => array(
"name" => "art_extras_sessel",
"feed_name" => "art_extras_sessel",
"format" => "optional",
),
"Art schlaffunktion" => array(
"name" => "art_schlaffunktion",
"feed_name" => "art_schlaffunktion",
"format" => "optional",
),
"Art form sofa" => array(
"name" => "art_form_sofa",
"feed_name" => "art_form_sofa",
"format" => "optional",
),
"Art extras sofa" => array(
"name" => "art_extras_sofa",
"feed_name" => "art_extras_sofa",
"format" => "optional",
),
"Art material fuesse" => array(
"name" => "art_material_fuesse",
"feed_name" => "art_material_fuesse",
"format" => "optional",
),
"Art haertegrad matratze" => array(
"name" => "art_haertegrad_matratze",
"feed_name" => "art_haertegrad_matratze",
"format" => "optional",
),
"Art liegezonen" => array(
"name" => "art_liegezonen",
"feed_name" => "art_liegezonen",
"format" => "optional",
),
"Art allergiker matratze" => array(
"name" => "art_allergiker_matratze",
"feed_name" => "art_allergiker_matratze",
"format" => "optional",
),
"Art stauraum bett" => array(
"name" => "art_stauraum_bett",
"feed_name" => "art_stauraum_bett",
"format" => "optional",
),
"Art beleuchtung bett" => array(
"name" => "art_beleuchtung_bett",
"feed_name" => "art_beleuchtung_bett",
"format" => "optional",
),
"Art matratzenmasse" => array(
"name" => "art_matratzenmasse",
"feed_name" => "art_matratzenmasse",
"format" => "optional",
),
"Art matratzenart" => array(
"name" => "art_matratzenart",
"feed_name" => "art_matratzenart",
"format" => "optional",
),
"Art bezugwaschbar" => array(
"name" => "art_bezugwaschbar",
"feed_name" => "art_bezugwaschbar",
"format" => "optional",
),
"Art vitrine" => array(
"name" => "art_vitrine",
"feed_name" => "art_vitrine",
"format" => "optional",
),
"Art abschliessbar" => array(
"name" => "art_abschliessbar",
"feed_name" => "art_abschliessbar",
"format" => "optional",
),
"Art variable faecher" => array(
"name" => "art_variable_faecher",
"feed_name" => "art_variable_faecher",
"format" => "optional",
),
"Art tuerenzahl" => array(
"name" => "art_tuerenzahl",
"feed_name" => "art_tuerenzahl",
"format" => "optional",
),
"Art schubladenzahl" => array(
"name" => "art_schubladenzahl",
"feed_name" => "art_schubladenzahl",
"format" => "optional",
),
"Art faecherzahl" => array(
"name" => "art_faecherzahl",
"feed_name" => "art_faecherzahl",
"format" => "optional",
),
"Art tischform" => array(
"name" => "art_tischform",
"feed_name" => "art_tischform",
"format" => "optional",
),
"Art tischfunktion" => array(
"name" => "art_tischfunktion",
"feed_name" => "art_tischfunktion",
"format" => "optional",
),
"Art gestell material" => array(
"name" => "art_gestell_material",
"feed_name" => "art_gestell_material",
"format" => "optional",
),
),
);
return $moebel;
}
}
?>

View File

@@ -0,0 +1,403 @@
<?php
/**
* Settings for Pinterest product feeds
*/
class WooSEA_pinterest {
public $pinterest;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$pinterest = array(
"Basic product data" => array(
"Product ID" => array(
"name" => "id",
"feed_name" => "g:id",
"format" => "required",
"woo_suggest" => "id",
),
"Product title" => array(
"name" => "title",
"feed_name" => "g:title",
"format" => "required",
"woo_suggest" => "title",
),
"Product description" => array(
"name" => "description",
"feed_name" => "g:description",
"format" => "required",
"woo_suggest" => "description",
),
"Product URL" => array(
"name" => "link",
"feed_name" => "g:link",
"format" => "required",
"woo_suggest" => "link",
),
"Main image URL" => array(
"name" => "image_link",
"feed_name" => "g:image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image URL" => array(
"name" => "additional_image_link",
"feed_name" => "g:additional_image_link",
"format" => "optional",
),
"Product URL mobile" => array(
"name" => "mobile_link",
"feed_name" => "g:mobile_link",
"format" => "optional",
),
),
"Price & availability" => array(
"Stock status" => array(
"name" => "availability",
"feed_name" => "g:availability",
"format" => "required",
"woo_suggest" => "availability",
),
"Availability date" => array(
"name" => "availability_date",
"feed_name" => "g:availability_date",
"format" => "optional",
),
"Expiration date" => array(
"name" => "expiration_date",
"feed_name" => "g:expiration_date",
"format" => "optional",
),
"Price" => array(
"name" => "Price",
"feed_name" => "g:price",
"format" => "required",
"woo_suggest" => "vivino_price",
),
"Sale price" => array(
"name" => "sale_price",
"feed_name" => "g:sale_price",
"format" => "optional",
"woo_suggest" => "vivino_sale_price",
),
"Sale price effective date" => array(
"name" => "sale_price_effective_date",
"feed_name" => "g:sale_price_effective_date",
"format" => "optional",
"woo_suggest" => "sale_price_effective_date",
),
"Unit pricing measure" => array(
"name" => "unit_pricing_measure",
"feed_name" => "g:unit_pricing_measure",
"format" => "optional",
),
"Unit pricing base measure" => array(
"name" => "unit_pricing_base_measure",
"feed_name" => "g:unit_pricing_base_measure",
"format" => "optional",
),
"Cost of goods sold" => array(
"name" => "cost_of_goods_sold",
"feed_name" => "g:cost_of_goods_sold",
"format" => "optional",
),
"Installment" => array(
"name" => "installment",
"feed_name" => "g:installment",
"format" => "optional",
),
"Loyalty points" => array(
"name" => "loyalty_points",
"feed_name" => "g:loyalty_points",
"format" => "optional",
),
),
"Product category" => array(
"Google product category" => array(
"name" => "google_product_category",
"feed_name" => "g:google_product_category",
"format" => "required",
"woo_suggest" => "categories",
),
"Product type" => array(
"name" => "product_type",
"feed_name" => "g:product_type",
"format" => "optional",
"woo_suggest" => "product_type",
),
),
"Product identifiers" => array(
"Brand" => array(
"name" => "brand",
"feed_name" => "g:brand",
"format" => "required",
),
"Gtin" => array(
"name" => "gtin",
"feed_name" => "g:gtin",
"format" => "required",
),
"MPN" => array(
"name" => "mpn",
"feed_name" => "g:mpn",
"format" => "required",
),
"Identifier exists" => array(
"name" => "identifier_exists",
"feed_name" => "g:identifier_exists",
"woo_suggest" => "calculated",
"format" => "required",
),
),
"Detailed product description" => array(
"Condition" => array(
"name" => "condition",
"feed_name" => "g:condition",
"format" => "required",
"woo_suggest" => "condition",
),
"Adult" => array(
"name" => "adult",
"feed_name" => "g:adult",
"format" => "optional",
),
"Multipack" => array(
"name" => "multipack",
"feed_name" => "g:multipack",
"format" => "optional",
),
"Is bundle" => array(
"name" => "is_bundle",
"feed_name" => "g:is_bundle",
"format" => "optional",
),
"Energy efficiency class" => array(
"name" => "energy_efficiency_class",
"feed_name" => "g:energy_efficiency_class",
"format" => "optional",
),
"Minimum energy efficiency class" => array(
"name" => "min_energy_efficiency_class",
"feed_name" => "g:min_energy_efficiency_class",
"format" => "optional",
),
"Maximum energy efficiency class" => array(
"name" => "max_energy_efficiency_class",
"feed_name" => "g:max_energy_efficiency_class",
"format" => "optional",
),
"Age group" => array(
"name" => "age_group",
"feed_name" => "g:age_group",
"format" => "optional",
),
"Alt text" => array(
"name" => "alt_text",
"feed_name" => "g:alt_text",
"format" => "optional",
),
"Color" => array(
"name" => "color",
"feed_name" => "g:color",
"format" => "optional",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "g:gender",
"format" => "optional",
),
"Material" => array(
"name" => "material",
"feed_name" => "g:material",
"format" => "optional",
),
"Pattern" => array(
"name" => "pattern",
"feed_name" => "g:pattern",
"format" => "optional",
),
"Size" => array(
"name" => "size",
"feed_name" => "g:size",
"format" => "optional",
),
"Size type" => array(
"name" => "size_type",
"feed_name" => "g:size_type",
"format" => "optional",
),
"Size system" => array(
"name" => "size_system",
"feed_name" => "g:size_system",
"format" => "optional",
),
"Item group ID" => array(
"name" => "item_group_id",
"feed_name" => "g:item_group_id",
"format" => "required",
),
),
"Shopping campaigns" => array(
"Adwords redirect (old)" => array(
"name" => "adwords_redirect",
"feed_name" => "g:adwords_redirect",
"format" => "optional",
),
"Ads redirect (new)" => array(
"name" => "ads_redirect",
"feed_name" => "g:ads_redirect",
"format" => "optional",
),
"Excluded destination" => array(
"name" => "excluded_destination",
"feed_name" => "g:excluded_destination",
"format" => "optional",
),
"Custom label 0" => array(
"name" => "custom_label_0",
"feed_name" => "g:custom_label_0",
"format" => "optional",
),
"Custom label 1" => array(
"name" => "custom_label_1",
"feed_name" => "g:custom_label_1",
"format" => "optional",
),
"Custom label 2" => array(
"name" => "custom_label_2",
"feed_name" => "g:custom_label_2",
"format" => "optional",
),
"Custom label 3" => array(
"name" => "custom_label_3",
"feed_name" => "g:custom_label_3",
"format" => "optional",
),
"Custom label 4" => array(
"name" => "custom_label_4",
"feed_name" => "g:custom_label_4",
"format" => "optional",
),
"Promotion ID" => array(
"name" => "promotion_id",
"feed_name" => "g:promotion_id",
"format" => "optional",
),
"Included destination" => array(
"name" => "included_destination",
"feed_name" => "included_destination",
"format" => "optional",
),
"Excluded destination" => array(
"name" => "excluded_destination",
"feed_name" => "g:excluded_destination",
"format" => "optional",
),
"Checkout enabled" => array(
"name" => "checkout_enabled",
"feed_name" => "g:checkout_enabled",
"format" => "optional",
),
"Ad link" => array(
"name" => "ad_link",
"feed_name" => "g:ad_link",
"format" => "optional",
),
),
"Shipping" => array(
"Shipping" => array(
"name" => "shipping",
"feed_name" => "g:shipping",
"format" => "optional",
),
"Shipping label" => array(
"name" => "shipping_label",
"feed_name" => "g:shipping_label",
"format" => "optional",
),
"Shipping weight" => array(
"name" => "shipping_weight",
"feed_name" => "g:shipping_weight",
"format" => "optional",
),
"Shipping length" => array(
"name" => "shipping_length",
"feed_name" => "g:shipping_length",
"format" => "optional",
),
"Shipping width" => array(
"name" => "shipping_width",
"feed_name" => "g:shipping_width",
"format" => "optional",
),
"Shipping height" => array(
"name" => "shipping_height",
"feed_name" => "g:shipping_height",
"format" => "optional",
),
"Minimum handling time" => array(
"name" => "min_handling_time",
"feed_name" => "g:min_handling_time",
"format" => "optional",
),
"Maximum handling time" => array(
"name" => "max_handling_time",
"feed_name" => "g:max_handling_time",
"format" => "optional",
),
"Free shipping label" => array(
"name" => "free_shipping_label",
"feed_name" => "g:free_shipping_label",
"format" => "optional",
),
"Free shipping limit" => array(
"name" => "free_shipping_limit",
"feed_name" => "g:free_shipping_limit",
"format" => "optional",
),
),
"Tax" => array(
"Tax" => array(
"name" => "tax",
"feed_name" => "g:tax",
"format" => "optional",
),
"Tax category" => array(
"name" => "tax_category",
"feed_name" => "g:tax_category",
"format" => "optional",
),
),
"Optional product characteristics" => array(
"Alt text" => array(
"name" => "alt_text",
"feed_name" => "g:alt_text",
"format" => "optional",
),
"Size system" => array(
"name" => "size_system",
"feed_name" => "g:size_system",
"format" => "optional",
),
"Size type" => array(
"name" => "size_type",
"feed_name" => "g:size_type",
"format" => "optional",
),
"Variant names" => array(
"name" => "variant_names",
"feed_name" => "g:variant_names",
"format" => "optional",
),
"Variant values" => array(
"name" => "variant_values",
"feed_name" => "g:variant_values",
"format" => "optional",
),
),
);
return $pinterest;
}
}
?>

View File

@@ -0,0 +1,42 @@
<?php
/**
* Settings for Pinterest RSS Boards feeds
*/
class WooSEA_pinterest_rss {
public $pinterest_rss;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$pinterest_rss = array(
"Pinterest RSS fields" => array(
"Title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"Description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"Link" => array(
"name" => "link",
"feed_name" => "link",
"format" => "required",
"woo_suggest" => "link",
),
"Image" => array(
"name" => "image",
"feed_name" => "image",
"format" => "required",
"woo_suggest" => "image",
),
),
);
return $pinterest_rss;
}
}
?>

View File

@@ -0,0 +1,267 @@
<?php
/**
* Settings for Pricecheck South Africa feeds
*/
class WooSEA_pricecheck {
public $pricecheck;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$pricecheck = array(
"Feed fields" => array(
"Category" => array(
"name" => "Category",
"feed_name" => "Category",
"format" => "required",
"woo_suggest" => "categories",
),
"ProductName" => array(
"name" => "ProductName",
"feed_name" => "ProductName",
"format" => "required",
"woo_suggest" => "title",
),
"Manufacturer" => array(
"name" => "Manufacturer",
"feed_name" => "Manufacturer",
"format" => "required",
),
"ShopSKU" => array(
"name" => "ShopSKU",
"feed_name" => "ShopSKU",
"format" => "required",
"woo_suggest" => "SKU",
),
"ModelNumber" => array(
"name" => "ModelNumber",
"feed_name" => "ModelNumber",
"format" => "optional",
),
"EAN" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "optional",
),
"SKU" => array(
"name" => "SKU",
"feed_name" => "SKU",
"format" => "optional",
"woo_suggest" => "SKU",
),
"UPC" => array(
"name" => "UPC",
"feed_name" => "UPC",
"format" => "optional",
),
"Description" => array(
"name" => "Description",
"feed_name" => "Description",
"format" => "required",
"woo_suggest" => "description",
),
"Price" => array(
"name" => "Price",
"feed_name" => "Price",
"format" => "required",
"woo_suggest" => "price",
),
"SalePrice" => array(
"name" => "SalePrice",
"feed_name" => "SalePrice",
"format" => "optional",
),
"DeliveryCost" => array(
"name" => "DeliveryCost",
"feed_name" => "DeliveryCost",
"format" => "optional",
),
"ProductURL" => array(
"name" => "ProductURL",
"feed_name" => "ProductURL",
"format" => "required",
"woo_suggest" => "link",
),
"ImageURL" => array(
"name" => "ImageURL",
"feed_name" => "ImageURL",
"format" => "required",
"woo_suggest" => "image",
),
"Notes" => array(
"name" => "Notes",
"feed_name" => "Notes",
"format" => "optional",
),
"StockAvailability" => array(
"name" => "StockAvailability",
"feed_name" => "StockAvailability",
"format" => "optional",
),
"StockLevel" => array(
"name" => "StockLevel",
"feed_name" => "StockLevel",
"format" => "optional",
),
"Is MP" => array(
"name" => "is_mp",
"feed_name" => "is_mp",
"format" => "optional",
),
"IsBundle" => array(
"name" => "IsBundle",
"feed_name" => "IsBundle",
"format" => "optional",
),
"GroupID" => array(
"name" => "GroupID",
"feed_name" => "GroupID",
"format" => "optional",
),
"NoOfUnits" => array(
"name" => "NoOfUnits",
"feed_name" => "NoOfUnits",
"format" => "optional",
),
"Format" => array(
"name" => "Format",
"feed_name" => "Format",
"format" => "optional",
),
"Actor" => array(
"name" => "Actor",
"feed_name" => "Actor",
"format" => "optional",
),
"Director" => array(
"name" => "Director",
"feed_name" => "Director",
"format" => "optional",
),
"ReleaseDate" => array(
"name" => "ReleaseDate",
"feed_name" => "ReleaseDate",
"format" => "optional",
),
"RunningTime" => array(
"name" => "RunningTime",
"feed_name" => "RunningTime",
"format" => "optional",
),
"AgeGroup" => array(
"name" => "AgeGroup",
"feed_name" => "AgeGroup",
"format" => "optional",
),
"Colour" => array(
"name" => "Colour",
"feed_name" => "Colour",
"format" => "optional",
),
"Gender" => array(
"name" => "Gender",
"feed_name" => "Gender",
"format" => "optional",
),
"Size" => array(
"name" => "Size",
"feed_name" => "Size",
"format" => "optional",
),
"Material" => array(
"name" => "Material",
"feed_name" => "Material",
"format" => "optional",
),
"Pattern" => array(
"name" => "Pattern",
"feed_name" => "Pattern",
"format" => "optional",
),
"SizeType" => array(
"name" => "SizeType",
"feed_name" => "SizeType",
"format" => "optional",
),
"Style" => array(
"name" => "Style",
"feed_name" => "Style",
"format" => "optional",
),
"Region" => array(
"name" => "Region",
"feed_name" => "Region",
"format" => "optional",
),
"Varietal" => array(
"name" => "Varietal",
"feed_name" => "Varietal",
"format" => "optional",
),
"Vintage" => array(
"name" => "Vintage",
"feed_name" => "Vintage",
"format" => "optional",
),
"Volume" => array(
"name" => "Volume",
"feed_name" => "Volume",
"format" => "optional",
),
"Winery" => array(
"name" => "Winery",
"feed_name" => "Winery",
"format" => "optional",
),
"Artist" => array(
"name" => "Artist",
"feed_name" => "Artist",
"format" => "optional",
),
"Label" => array(
"name" => "Label",
"feed_name" => "Label",
"format" => "optional",
),
"ReleaseDate" => array(
"name" => "ReleaseDate",
"feed_name" => "ReleaseDate",
"format" => "optional",
),
"Make" => array(
"name" => "Make",
"feed_name" => "Make",
"format" => "optional",
),
"Model" => array(
"name" => "Model",
"feed_name" => "Model",
"format" => "optional",
),
"Year" => array(
"name" => "Year",
"feed_name" => "Year",
"format" => "optional",
),
"Mileage" => array(
"name" => "Mileage",
"feed_name" => "Mileage",
"format" => "optional",
),
"Transmission" => array(
"name" => "Transmission",
"feed_name" => "Transmission",
"format" => "optional",
),
"Colour" => array(
"name" => "Colour",
"feed_name" => "Colour",
"format" => "optional",
),
),
);
return $pricecheck;
}
}
?>

View File

@@ -0,0 +1,159 @@
<?php
/**
* Settings for PriceRunner feeds
*/
class WooSEA_pricerunner {
public $pricerunner;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$pricerunner = array(
"Feed fields" => array(
"ProductId" => array(
"name" => "ProductId",
"feed_name" => "ProductId",
"format" => "required",
"woo_suggest" => "id",
),
"ProductName" => array(
"name" => "ProductName",
"feed_name" => "ProductName",
"format" => "required",
"woo_suggest" => "title",
),
"Price" => array(
"name" => "Price",
"feed_name" => "Price",
"format" => "required",
"woo_suggest" => "price",
),
"ShippingCost" => array(
"name" => "ShippingCost",
"feed_name" => "ShippingCost",
"format" => "required",
"woo_suggest" => "shipping_price",
),
"StockStatus" => array(
"name" => "StockStatus",
"feed_name" => "StockStatus",
"format" => "required",
"woo_suggest" => "availability",
),
"LeadTime" => array(
"name" => "LeadTime",
"feed_name" => "LeadTime",
"format" => "required",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "Brand",
"format" => "required",
),
"SKU" => array(
"name" => "Msku",
"feed_name" => "Msku",
"format" => "required",
"woo_suggest" => "sku",
),
"EAN / GTIN" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "required",
),
"Url" => array(
"name" => "Url",
"feed_name" => "Url",
"format" => "required",
"woo_suggest" => "link",
),
"ImageUrl" => array(
"name" => "ImageUrl",
"feed_name" => "ImageUrl",
"format" => "required",
"woo_suggest" => "image",
),
"Category" => array(
"name" => "Category",
"feed_name" => "Category",
"format" => "required",
"woo_suggest" => "category_path_short",
),
"Description" => array(
"name" => "Description",
"feed_name" => "Description",
"format" => "required",
"woo_suggest" => "description",
),
"AdultContent" => array(
"name" => "AdultContent",
"feed_name" => "AdultContent",
"format" => "optional",
),
"AgeGroup" => array(
"name" => "AgeGroup",
"feed_name" => "AgeGroup",
"format" => "optional",
),
"Bundled" => array(
"name" => "Bundled",
"feed_name" => "Bundled",
"format" => "optional",
),
"Color" => array(
"name" => "Color",
"feed_name" => "Color",
"format" => "optional",
),
"EnergyEfficiencyClass" => array(
"name" => "EnergyEfficiencyClass",
"feed_name" => "EnergyEfficiencyClass",
"format" => "optional",
),
"Gender" => array(
"name" => "Gender",
"feed_name" => "Gender",
"format" => "optional",
),
"Condition" => array(
"name" => "Condition",
"feed_name" => "Condition",
"format" => "optional",
),
"GroupId" => array(
"name" => "GroupId",
"feed_name" => "GroupId",
"format" => "optional",
),
"Material" => array(
"name" => "Material",
"feed_name" => "Material",
"format" => "optional",
),
"Multipack" => array(
"name" => "Multipack",
"feed_name" => "Multipack",
"format" => "optional",
),
"Pattern" => array(
"name" => "Pattern",
"feed_name" => "Pattern",
"format" => "optional",
),
"Size" => array(
"name" => "Size",
"feed_name" => "Size",
"format" => "optional",
),
"SizeSystem" => array(
"name" => "SizeSystem",
"feed_name" => "SizeSystem",
"format" => "optional",
),
),
);
return $pricerunner;
}
}
?>

View File

@@ -0,0 +1,275 @@
<?php
/**
* Settings for Ricardo feeds
*/
class WooSEA_ricardo {
public $ricardo;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$ricardo = array(
"Feed fields" => array(
"StartPrice" => array(
"name" => "StartPrice",
"feed_name" => "StartPrice",
"format" => "required",
),
"BuyNowPrice" => array(
"name" => "BuyNowPrice",
"feed_name" => "BuyNowPrice",
"format" => "required",
"woo_suggest" => "price"
),
"AvailibilityId" => array(
"name" => "AvailabilityId",
"feed_name" => "AvailabilityId",
"format" => "required",
),
"Duration" => array(
"name" => "Duration",
"feed_name" => "Duration",
"format" => "required",
),
"FeaturedHomePage" => array(
"name" => "FeaturedHomepage",
"feed_name" => "FeaturedHomepage",
"format" => "required",
),
"Shipping" => array(
"name" => "Shipping",
"feed_name" => "Shipping",
"format" => "required",
),
"Warranty" => array(
"name" => "Warranty",
"feed_name" => "Warranty",
"format" => "required",
),
"Quantity" => array(
"name" => "Quantity",
"feed_name" => "Quantity",
"format" => "required",
),
"Increment" => array(
"name" => "Increment",
"feed_name" => "Increment",
"format" => "required",
),
"CategoryNr" => array(
"name" => "CategoryNr",
"feed_name" => "CategoryNr",
"format" => "required",
),
"Condition" => array(
"name" => "Condition",
"feed_name" => "Condition",
"format" => "required",
),
"ShippingCost" => array(
"name" => "ShippingCost",
"feed_name" => "ShippingCost",
"format" => "required",
),
"ResellCount" => array(
"name" => "ResellCount",
"feed_name" => "ResellCount",
"format" => "required",
),
"BuyNow" => array(
"name" => "BuyNow",
"feed_name" => "BuyNow",
"format" => "required",
),
"BuyNowCost" => array(
"name" => "BuyNowCost",
"feed_name" => "BuyNowCost",
"format" => "required",
),
"TemplateName" => array(
"name" => "TemplateName",
"feed_name" => "TemplateName",
"format" => "required",
),
"StartDate" => array(
"name" => "StartDate",
"feed_name" => "StartDate",
"format" => "required",
),
"StartImmediatly" => array(
"name" => "StartImmediatly",
"feed_name" => "StartImmediatly",
"format" => "required",
),
"EndDate" => array(
"name" => "EndDate",
"feed_name" => "EndDate",
"format" => "required",
),
"HasFixedEndDate" => array(
"name" => "HasFixedEndDate",
"feed_name" => "HasFixedEndDate",
"format" => "required",
),
"InternalReference" => array(
"name" => "InternalReference",
"feed_name" => "InternalReference",
"format" => "required",
),
"TemplateId" => array(
"name" => "TemplateId",
"feed_name" => "TemplateId",
"format" => "required",
),
"PackageSizeId" => array(
"name" => "PackageSizeId",
"feed_name" => "PackageSizeId",
"format" => "required",
),
"PromotionId" => array(
"name" => "PromotionId",
"feed_name" => "PromotionId",
"format" => "required",
),
"IsCarsBikesAccessoriesArticle" => array(
"name" => "IsCarsBikesAccessoriesArticle",
"feed_name" => "IsCarsBikesAccessoriesArticle",
"format" => "required",
),
"Descriptions[0].LanguageNr" => array(
"name" => "Descriptions[0].LanguageNr",
"feed_name" => "Descriptions[0].LanguageNr",
"format" => "required",
),
"Descriptions[0].ProductTitle" => array(
"name" => "Descriptions[0].ProductTitle",
"feed_name" => "Descriptions[0].ProductTitle",
"format" => "required",
),
"Descriptions[0].ProductDescription" => array(
"name" => "Descriptions[0].ProductDescription",
"feed_name" => "Descriptions[0].ProductDescription",
"format" => "required",
),
"Descriptions[0].ProductSubtitle" => array(
"name" => "Descriptions[0].ProductSubtitle",
"feed_name" => "Descriptions[0].ProductSubtitle",
"format" => "required",
),
"Descriptions[0].PaymentDescription" => array(
"name" => "Descriptions[0].PaymentDescription",
"feed_name" => "Descriptions[0].PaymentDescription",
"format" => "required",
),
"Descriptions[0].ShippingDescription" => array(
"name" => "Descriptions[0].ShippingDescription",
"feed_name" => "Descriptions[0].ShippingDescription",
"format" => "required",
),
"Descriptions[0].WarrantyDescription" => array(
"name" => "Descriptions[0].WarrantyDescription",
"feed_name" => "Descriptions[0].WarrantyDescription",
"format" => "required",
),
"Descriptions[1].ProductTitle" => array(
"name" => "Descriptions[1].ProductTitle",
"feed_name" => "Descriptions[1].ProductTitle",
"format" => "required",
),
"Descriptions[1].ProductDescription" => array(
"name" => "Descriptions[1].ProductDescription",
"feed_name" => "Descriptions[1].ProductDescription",
"format" => "required",
),
"Descriptions[1].ProductSubtitle" => array(
"name" => "Descriptions[1].ProductSubtitle",
"feed_name" => "Descriptions[1].ProductSubtitle",
"format" => "required",
),
"Descriptions[1].PaymentDescription" => array(
"name" => "Descriptions[1].PaymentDescription",
"feed_name" => "Descriptions[1].PaymentDescription",
"format" => "required",
),
"Descriptions[1].ShippingDescription" => array(
"name" => "Descriptions[1].ShippingDescription",
"feed_name" => "Descriptions[1].ShippingDescription",
"format" => "required",
),
"Descriptions[1].WarrantyDescription" => array(
"name" => "Descriptions[1].WarrantyDescription",
"feed_name" => "Descriptions[1].WarrantyDescription",
"format" => "required",
),
"DraftImages[0]" => array(
"name" => "DraftImages[0]",
"feed_name" => "DraftImages[0]",
"format" => "required",
),
"DraftImages[1]" => array(
"name" => "DraftImages[1]",
"feed_name" => "DraftImages[1]",
"format" => "required",
),
"DraftImages[2]" => array(
"name" => "DraftImages[2]",
"feed_name" => "DraftImages[2]",
"format" => "required",
),
"DraftImages[3]" => array(
"name" => "DraftImages[3]",
"feed_name" => "DraftImages[3]",
"format" => "required",
),
"DraftImages[4]" => array(
"name" => "DraftImages[4]",
"feed_name" => "DraftImages[4]",
"format" => "required",
),
"DraftImages[5]" => array(
"name" => "DraftImages[5]",
"feed_name" => "DraftImages[5]",
"format" => "required",
),
"DraftImages[6]" => array(
"name" => "DraftImages[6]",
"feed_name" => "DraftImages[6]",
"format" => "required",
),
"DraftImages[7]" => array(
"name" => "DraftImages[7]",
"feed_name" => "DraftImages[7]",
"format" => "required",
),
"DraftImages[8]" => array(
"name" => "DraftImages[8]",
"feed_name" => "DraftImages[8]",
"format" => "required",
),
"DraftImages[9]" => array(
"name" => "DraftImages[9]",
"feed_name" => "DraftImages[9]",
"format" => "required",
),
"IsFixedPrice" => array(
"name" => "IsFixedPrice",
"feed_name" => "IsFixedPrice",
"format" => "required",
),
"PaymentCode" => array(
"name" => "PaymentCode",
"feed_name" => "PaymentCode",
"format" => "required",
),
"IsCumulativeShipping" => array(
"name" => "IsCumulativeShipping",
"feed_name" => "IsCumulativeShipping",
"format" => "required",
),
),
);
return $ricardo;
}
}
?>

View File

@@ -0,0 +1,130 @@
<?php
/**
* Settings for Salidzini.lv Latvia feeds
*/
class WooSEA_salidzini {
public $salidzini;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$salidzini = array(
"Feed fields" => array(
"Manufacturer" => array(
"name" => "Manufacturer",
"feed_name" => "manufacturer",
"format" => "required",
),
"Model" => array(
"name" => "Model",
"feed_name" => "model",
"format" => "required",
),
"Color" => array(
"name" => "Color",
"feed_name" => "color",
"format" => "required",
),
"Name" => array(
"name" => "Name",
"feed_name" => "name",
"format" => "required",
"woo_suggest" => "title",
),
"Link" => array(
"name" => "Link",
"feed_name" => "link",
"format" => "required",
"woo_suggest" => "link",
),
"Price" => array(
"name" => "Price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"Image" => array(
"name" => "Image",
"feed_name" => "image",
"format" => "required",
"woo_suggest" => "image",
),
"Category full" => array(
"name" => "Category full",
"feed_name" => "category_full",
"format" => "required",
"woo_suggest" => "categories",
),
"Category link" => array(
"name" => "Category link",
"feed_name" => "category_link",
"format" => "required",
"woo_suggest" => "category_link",
),
"In Stock" => array(
"name" => "In Stock",
"feed_name" => "in_stock",
"format" => "required",
),
"Delivery cost Riga" => array(
"name" => "Delivery cost Riga",
"feed_name" => "delivery_cost_riga",
"format" => "required",
),
"Delivery latvija" => array(
"name" => "Delivery latvija",
"feed_name" => "delivery_latvija",
"format" => "required",
),
"Delivery latvijas pasts" => array(
"name" => "Delivery latvijas pasts",
"feed_name" => "delivery_latvijas_pasts",
"format" => "required",
),
"Delivery dpd paku bode" => array(
"name" => "Delivery dpd paku bode",
"feed_name" => "delivery_dpd_paku_bode",
"format" => "required",
),
"Delivery pasta stacija" => array(
"name" => "Delivery pasta stacija",
"feed_name" => "delivery_pasta_stacija",
"format" => "required",
),
"Delivery omniva" => array(
"name" => "Delivery omniva",
"feed_name" => "delivery_omniva",
"format" => "required",
),
"Delivery circlek" => array(
"name" => "Delivery circlek",
"feed_name" => "delivery_circlek",
"format" => "required",
),
"Delivery venipak" => array(
"name" => "Delivery venipak",
"feed_name" => "delivery_venipak",
"format" => "required",
),
"Delivery days riga" => array(
"name" => "Delivery days riga",
"feed_name" => "delivery_days_riga",
"format" => "required",
),
"Delivery days latvija" => array(
"name" => "Delivery days latvija",
"feed_name" => "delivery_days_latvija",
"format" => "required",
),
"Used" => array(
"name" => "Used",
"feed_name" => "used",
"format" => "required",
),
),
);
return $salidzini;
}
}
?>

View File

@@ -0,0 +1,256 @@
<?php
/**
* Settings for Shareasale feeds
*/
class WooSEA_shareasale {
public $shareasale;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$shareasale = array(
"Feed fields" => array(
"SKU" => array(
"name" => "SKU",
"feed_name" => "SKU",
"format" => "required",
"woo_suggest" => "id",
),
"Name" => array(
"name" => "Name",
"feed_name" => "Name",
"format" => "required",
"woo_suggest" => "title",
),
"URL" => array(
"name" => "URL",
"feed_name" => "URL",
"format" => "required",
"woo_suggest" => "link",
),
"Price" => array(
"name" => "Price",
"feed_name" => "Price",
"format" => "required",
"woo_suggest" => "price",
),
"RetailPrice" => array(
"name" => "RetailPrice",
"feed_name" => "RetailPrice",
"format" => "required",
),
"FullImage" => array(
"name" => "FullImage",
"feed_name" => "FullImage",
"format" => "required",
"woo_suggest" => "image",
),
"ThumbnailImage" => array(
"name" => "ThumbnailImage",
"feed_name" => "ThumbnailImage",
"format" => "required",
),
"Commission" => array(
"name" => "Commission",
"feed_name" => "Commission",
"format" => "required",
),
"Category" => array(
"name" => "Category",
"feed_name" => "Category",
"format" => "required",
"woo_suggest" => "categories",
),
"Subcategory" => array(
"name" => "Subcategory",
"feed_name" => "Subcategory",
"format" => "required",
),
"Description" => array(
"name" => "Description",
"feed_name" => "Description",
"format" => "required",
"woo_suggest" => "description",
),
"SearchTerms" => array(
"name" => "SearchTerms",
"feed_name" => "SearchTerms",
"format" => "required",
),
"Status" => array(
"name" => "Status",
"feed_name" => "Status",
"format" => "required",
),
"MerchantID" => array(
"name" => "MerchantID",
"feed_name" => "MerchantID",
"format" => "required",
),
"Custom1" => array(
"name" => "Custom1",
"feed_name" => "Custom1",
"format" => "required",
),
"Custom2" => array(
"name" => "Custom2",
"feed_name" => "Custom2",
"format" => "required",
),
"Custom3" => array(
"name" => "Custom3",
"feed_name" => "Custom3",
"format" => "required",
),
"Custom4" => array(
"name" => "Custom4",
"feed_name" => "Custom4",
"format" => "required",
),
"Custom5" => array(
"name" => "Custom5",
"feed_name" => "Custom5",
"format" => "required",
),
"Manufacturer" => array(
"name" => "Manufacturer",
"feed_name" => "Manufacturer",
"format" => "required",
),
"PartNumber" => array(
"name" => "PartNumber",
"feed_name" => "PartNumber",
"format" => "required",
),
"MerchantCategory" => array(
"name" => "MerchantCategory",
"feed_name" => "MerchantCategory",
"format" => "required",
),
"MerchantSubcategory" => array(
"name" => "MerchantSubcategory",
"feed_name" => "MerchantSubcategory",
"format" => "required",
),
"ShortDescription" => array(
"name" => "ShortDescription",
"feed_name" => "ShortDescription",
"format" => "required",
),
"ISBN" => array(
"name" => "ISBN",
"feed_name" => "ISBN",
"format" => "required",
),
"UPC" => array(
"name" => "UPC",
"feed_name" => "UPC",
"format" => "required",
),
"CrossSell" => array(
"name" => "CrossSell",
"feed_name" => "CrossSell",
"format" => "required",
),
"MerchantGroup" => array(
"name" => "MerchantGroup",
"feed_name" => "MerchantGroup",
"format" => "required",
),
"MerchantSubGroup" => array(
"name" => "MerchantSubGroup",
"feed_name" => "MerchantSubGroup",
"format" => "required",
),
"CompatibleWith" => array(
"name" => "CompatibleWith",
"feed_name" => "CompatibleWith",
"format" => "required",
),
"CompareTo" => array(
"name" => "CompareTo",
"feed_name" => "CompareTo",
"format" => "required",
),
"QuantityDiscount" => array(
"name" => "QuantityDiscount",
"feed_name" => "QuantityDiscount",
"format" => "required",
),
"Bestseller" => array(
"name" => "Bestseller",
"feed_name" => "Bestseller",
"format" => "required",
),
"AddToCartURL" => array(
"name" => "AddToCartURL",
"feed_name" => "AddToCartURL",
"format" => "required",
),
"ReviewRSSURL" => array(
"name" => "ReviewRSSURL",
"feed_name" => "ReviewRSSURL",
"format" => "required",
),
"Option1" => array(
"name" => "Option1",
"feed_name" => "Option1",
"format" => "required",
),
"Option2" => array(
"name" => "Option2",
"feed_name" => "Option2",
"format" => "required",
),
"Option3" => array(
"name" => "Option3",
"feed_name" => "Option3",
"format" => "required",
),
"Option4" => array(
"name" => "Option4",
"feed_name" => "Option4",
"format" => "required",
),
"Option5" => array(
"name" => "Option5",
"feed_name" => "Option5",
"format" => "required",
),
"customCommissions" => array(
"name" => "customCommissions",
"feed_name" => "customCommissions",
"format" => "required",
),
"customCommissionIsFlatRate" => array(
"name" => "customCommissionIsFlatRate",
"feed_name" => "customCommissionIsFlatRate",
"format" => "required",
),
"customCommissionNewCustomerMultiplier" => array(
"name" => "customCommissionNewCustomerMultiplier",
"feed_name" => "customCommissionNewCustomerMultiplier",
"format" => "required",
),
"mobileURL" => array(
"name" => "mobileURL",
"feed_name" => "mobileURL",
"format" => "required",
),
"mobileImage" => array(
"name" => "mobileImage",
"feed_name" => "mobileImage",
"format" => "required",
),
"mobileThumbnail" => array(
"name" => "mobileThumbnail",
"feed_name" => "mobileThumbnail",
"format" => "required",
),
),
);
return $shareasale;
}
}
?>

View File

@@ -0,0 +1,126 @@
<?php
/**
* Settings for Shopflix feeds
*/
class WooSEA_shopflix {
public $shopflix;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$shopflix = array(
"Feed fields" => array(
"Name" => array(
"name" => "name",
"feed_name" => "name",
"format" => "required",
"woo_suggest" => "title",
),
"SKU" => array(
"name" => "SKU",
"feed_name" => "SKU",
"format" => "required",
"woo_suggest" => "sku",
),
"Category" => array(
"name" => "category",
"feed_name" => "category",
"format" => "required",
),
"EAN" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "required",
),
"MPN" => array(
"name" => "MPN",
"feed_name" => "MPN",
"format" => "required",
),
"Manufacturer" => array(
"name" => "manufacturer",
"feed_name" => "manufacturer",
"format" => "required",
),
"Description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"Product URL" => array(
"name" => "product_url",
"feed_name" => "product_url",
"format" => "required",
"woo_suggest" => "link",
),
"Image" => array(
"name" => "image",
"feed_name" => "image",
"format" => "required",
"woo_suggest" => "image",
),
"Additional Image" => array(
"name" => "additional_imageurl",
"feed_name" => "additional_imageurl",
"format" => "optional",
),
"Price" => array(
"name" => "price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"List Price" => array(
"name" => "list_price",
"feed_name" => "list_price",
"format" => "optional",
),
"Quantity" => array(
"name" => "quantity",
"feed_name" => "quantity",
"format" => "required",
"woo_suggest" => "quantity",
),
"Offer from" => array(
"name" => "offer_from",
"feed_name" => "offer_from",
"format" => "optional",
),
"Offer to" => array(
"name" => "offer_to",
"feed_name" => "offer_to",
"format" => "optional",
),
"Offer price" => array(
"name" => "offer_price",
"feed_name" => "offer_price",
"format" => "optional",
),
"Offer Quantity" => array(
"name" => "offer_quantity",
"feed_name" => "offer_quantity",
"format" => "optional",
),
"Shipping Lead Time" => array(
"name" => "shipping_lead_time",
"feed_name" => "shipping_lead_time",
"format" => "optional",
),
"Weight" => array(
"name" => "weight",
"feed_name" => "weight",
"format" => "required",
),
"Color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "required",
),
),
);
return $shopflix;
}
}
?>

View File

@@ -0,0 +1,92 @@
<?php
/**
* Settings for Shopmania Romania feeds
*/
class WooSEA_shopmania_ro {
public $shopmania_ro;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$shopmania_ro = array(
"Feed fields" => array(
"MPC" => array(
"name" => "MPC",
"feed_name" => "MPC",
"format" => "required",
"woo_suggest" => "id",
),
"Category" => array(
"name" => "Category",
"feed_name" => "Category",
"format" => "required",
"woo_suggest" => "categories",
),
"Manufacturer" => array(
"name" => "Manufacturer",
"feed_name" => "Manufacturer",
"format" => "required",
),
"MPN" => array(
"name" => "MPN",
"feed_name" => "MPN",
"format" => "required",
),
"Name" => array(
"name" => "Name",
"feed_name" => "Name",
"format" => "required",
"woo_suggest" => "title",
),
"Description" => array(
"name" => "Description",
"feed_name" => "Description",
"format" => "optional",
"woo_suggest" => "description",
),
"URL" => array(
"name" => "URL",
"feed_name" => "URL",
"format" => "required",
"woo_suggest" => "link",
),
"Image" => array(
"name" => "Image",
"feed_name" => "Image",
"format" => "required",
"woo_suggest" => "image",
),
"Price" => array(
"name" => "Price",
"feed_name" => "Price",
"format" => "required",
"woo_suggest" => "price",
),
"Currency" => array(
"name" => "Currency",
"feed_name" => "Currency",
"format" => "required",
),
"Shipping" => array(
"name" => "Shipping",
"feed_name" => "Shipping",
"format" => "required",
),
"Availability" => array(
"name" => "Availability",
"feed_name" => "Availability",
"format" => "required",
"woo_suggest" => "availability",
),
"GTIN" => array(
"name" => "GTIN",
"feed_name" => "GTIN",
"format" => "required",
),
),
);
return $shopmania_ro;
}
}
?>

View File

@@ -0,0 +1,118 @@
<?php
/**
* Settings for Skroutz feeds
*/
class WooSEA_skroutz {
public $skroutz;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$skroutz = array(
"Feed fields" => array(
"ID" => array(
"name" => "id",
"feed_name" => "id",
"format" => "required",
"woo_suggest" => "id",
),
"Name" => array(
"name" => "name",
"feed_name" => "name",
"format" => "required",
"woo_suggest" => "title",
),
"Link" => array(
"name" => "link",
"feed_name" => "link",
"format" => "required",
"woo_suggest" => "link",
),
"Image" => array(
"name" => "image",
"feed_name" => "image",
"format" => "required",
"woo_suggest" => "image",
),
"Additional Image" => array(
"name" => "additional_imageurl",
"feed_name" => "additional_imageurl",
"format" => "optional",
),
"Category Name" => array(
"name" => "category name",
"feed_name" => "category",
"format" => "required",
"woo_suggest" => "category_path_skroutz",
),
"Category Path" => array(
"name" => "category path",
"feed_name" => "category_path",
"format" => "required",
"woo_suggest" => "category_path_short",
),
"Price with VAT" => array(
"name" => "price with vat",
"feed_name" => "price_with_vat",
"format" => "required",
"woo_suggest" => "price",
),
"Manufacturer" => array(
"name" => "manufacturer",
"feed_name" => "manufacturer",
"format" => "required",
),
"MPN" => array(
"name" => "mpn/ isbn",
"feed_name" => "mpn",
"format" => "required",
),
"EAN" => array(
"name" => "ean",
"feed_name" => "ean",
"format" => "optional",
),
"Quantity" => array(
"name" => "quantity",
"feed_name" => "quantity",
"format" => "required",
"woo_suggest" => "quantity",
),
"instock" => array(
"name" => "instock",
"feed_name" => "instock",
"format" => "optional",
),
"shipping costs" => array(
"name" => "shipping costs",
"feed_name" => "shipping_costs",
"format" => "optional",
),
"availability" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "required",
"woo_suggest" => "availability",
),
"size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "required",
),
"weight" => array(
"name" => "weight",
"feed_name" => "weight",
"format" => "required",
),
"color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "required",
),
),
);
return $skroutz;
}
}
?>

View File

@@ -0,0 +1,223 @@
<?php
/**
* Settings for Snapchat Product Catalog feeds
*/
class WooSEA_snapchat {
public $snapchat;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$snapchat = array(
"Basic product data" => array(
"Product ID" => array(
"name" => "id",
"feed_name" => "id",
"format" => "required",
"woo_suggest" => "id",
),
"Product title" => array(
"name" => "title",
"feed_name" => "title",
"format" => "required",
"woo_suggest" => "title",
),
"Product description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "required",
"woo_suggest" => "description",
),
"Product URL" => array(
"name" => "link",
"feed_name" => "link",
"format" => "required",
"woo_suggest" => "link",
),
"Main image URL" => array(
"name" => "image_link",
"feed_name" => "image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image URL" => array(
"name" => "additional_image_link",
"feed_name" => "additional_image_link",
"format" => "optional",
),
),
"App product metadata" => array(
"Icon media URL" => array(
"name" => "icon_media_url",
"feed_name" => "icon_media_url",
"format" => "optional",
),
"IOS app name" => array(
"name" => "ios_app_name",
"feed_name" => "ios_app_name",
"format" => "optional",
),
"IOS app store ID" => array(
"name" => "ios_app_store_id",
"feed_name" => "ios_app_store_id",
"format" => "optional",
),
"IOS URL" => array(
"name" => "ios_url",
"feed_name" => "ios_url",
"format" => "optional",
),
"Android app name" => array(
"name" => "android_app_name",
"feed_name" => "android_app_name",
"format" => "optional",
),
"Android package" => array(
"name" => "android_package",
"feed_name" => "android_package",
"format" => "optional",
),
"Android URL" => array(
"name" => "android_url",
"feed_name" => "android_url",
"format" => "optional",
),
"Mobile URL" => array(
"name" => "mobile_link",
"feed_name" => "mobile_link",
"format" => "optional",
),
),
"Price & availability" => array(
"Stock status" => array(
"name" => "availability",
"feed_name" => "availability",
"format" => "required",
"woo_suggest" => "availability",
),
"Price" => array(
"name" => "Price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"Sale price" => array(
"name" => "sale_price",
"feed_name" => "sale_price",
"format" => "optional",
"woo_suggest" => "sale_price",
),
"Sale price effective date" => array(
"name" => "sale_price_effective_date",
"feed_name" => "sale_price_effective_date",
"format" => "optional",
"woo_suggest" => "sale_price_effective_date",
),
"Address" => array(
"name" => "address",
"feed_name" => "address",
"format" => "optional",
),
),
"Product category" => array(
"Google product category" => array(
"name" => "google_product_category",
"feed_name" => "google_product_category",
"format" => "required",
"woo_suggest" => "categories",
),
"Product type" => array(
"name" => "product_type",
"feed_name" => "product_type",
"format" => "optional",
"woo_suggest" => "product_type",
),
),
"Product identifiers" => array(
"Brand" => array(
"name" => "brand",
"feed_name" => "brand",
"format" => "required",
),
"Gtin" => array(
"name" => "gtin",
"feed_name" => "gtin",
"format" => "required",
),
"MPN" => array(
"name" => "mpn",
"feed_name" => "mpn",
"format" => "required",
),
),
"Detailed product description" => array(
"Condition" => array(
"name" => "condition",
"feed_name" => "condition",
"format" => "required",
"woo_suggest" => "condition",
),
"Adult" => array(
"name" => "adult",
"feed_name" => "adult",
"format" => "optional",
),
"Age group" => array(
"name" => "age_group",
"feed_name" => "age_group",
"format" => "optional",
),
"Color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "optional",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "gender",
"format" => "optional",
),
"Size" => array(
"name" => "size",
"feed_name" => "size",
"format" => "optional",
),
"Item group ID" => array(
"name" => "item_group_id",
"feed_name" => "item_group_id",
"format" => "required",
"woo_suggest" => "item_group_id",
),
),
"Custom labels" => array(
"Custom label 0" => array(
"name" => "custom_label_0",
"feed_name" => "custom_label_0",
"format" => "optional",
),
"Custom label 1" => array(
"name" => "custom_label_1",
"feed_name" => "custom_label_1",
"format" => "optional",
),
"Custom label 2" => array(
"name" => "custom_label_2",
"feed_name" => "custom_label_2",
"format" => "optional",
),
"Custom label 3" => array(
"name" => "custom_label_3",
"feed_name" => "custom_label_3",
"format" => "optional",
),
"Custom label 4" => array(
"name" => "custom_label_4",
"feed_name" => "custom_label_4",
"format" => "optional",
),
),
);
return $snapchat;
}
}
?>

View File

@@ -0,0 +1,64 @@
<?php
/**
* Settings for Spartoo France feeds
*/
class WooSEA_spartoo_fr {
public $spartoo_fr;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$spartoo_fr = array(
"Feed fields" => array(
"Reference partenaire" => array(
"name" => "reference_partenaire",
"feed_name" => "reference_partenaire",
"format" => "required",
"woo_suggest" => "id",
),
"Product name" => array(
"name" => "product_name",
"feed_name" => "product_name",
"format" => "required",
"woo_suggest" => "title",
),
"Manufacturers name" => array(
"name" => "manufacturers_name",
"feed_name" => "manufacturers_name",
"format" => "required",
),
"Product description" => array(
"name" => "product_description",
"feed_name" => "product_description",
"format" => "required",
"woo_suggest" => "description",
),
"Product price" => array(
"name" => "product_price",
"feed_name" => "product_price",
"format" => "required",
"woo_suggest" => "price",
),
"Product sex" => array(
"name" => "product_sex",
"feed_name" => "product_sex",
"format" => "required",
),
"Product quantity" => array(
"name" => "product_quantity",
"feed_name" => "product_quantity",
"format" => "required",
"woo_suggest" => "quantity",
),
"Product style" => array(
"name" => "product_style",
"feed_name" => "product_style",
"format" => "required",
),
),
);
return $spartoo_fr;
}
}
?>

View File

@@ -0,0 +1,583 @@
<?php
/**
* Settings for TikTok product feeds
*/
class WooSEA_tiktok {
public $tiktok_attributes;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$tiktok_attributes = array(
"Basic product data" => array(
"Product ID" => array(
"name" => "sku_id",
"feed_name" => "g:sku_id",
"format" => "required",
"woo_suggest" => "id",
),
"Product title" => array(
"name" => "title",
"feed_name" => "g:title",
"format" => "required",
"woo_suggest" => "title",
),
"Product description" => array(
"name" => "description",
"feed_name" => "g:description",
"format" => "required",
"woo_suggest" => "description",
),
"Product URL" => array(
"name" => "link",
"feed_name" => "g:link",
"format" => "required",
"woo_suggest" => "link",
),
"Main image URL" => array(
"name" => "image_link",
"feed_name" => "g:image_link",
"format" => "required",
"woo_suggest" => "image",
),
"Additional image URL" => array(
"name" => "additional_image_link",
"feed_name" => "g:additional_image_link",
"format" => "optional",
),
"Canonical product URL" => array(
"name" => "canonical_link",
"feed_name" => "g:canonical_link",
"format" => "optional",
),
"Product URL mobile" => array(
"name" => "mobile_link",
"feed_name" => "g:mobile_link",
"format" => "optional",
),
),
"Price & availability" => array(
"Stock status" => array(
"name" => "availability",
"feed_name" => "g:availability",
"format" => "required",
"woo_suggest" => "availability",
),
"Availability date" => array(
"name" => "availability_date",
"feed_name" => "g:availability_date",
"format" => "optional",
),
"Expiration date" => array(
"name" => "expiration_date",
"feed_name" => "g:expiration_date",
"format" => "optional",
),
"Price" => array(
"name" => "Price",
"feed_name" => "g:price",
"format" => "required",
"woo_suggest" => "vivino_price",
),
"Sale price" => array(
"name" => "sale_price",
"feed_name" => "g:sale_price",
"format" => "optional",
"woo_suggest" => "sale_price",
),
"Sale price effective date" => array(
"name" => "sale_price_effective_date",
"feed_name" => "g:sale_price_effective_date",
"format" => "optional",
"woo_suggest" => "sale_price_effective_date",
),
"Unit pricing measure" => array(
"name" => "unit_pricing_measure",
"feed_name" => "g:unit_pricing_measure",
"format" => "optional",
),
"Unit pricing base measure" => array(
"name" => "unit_pricing_base_measure",
"feed_name" => "g:unit_pricing_base_measure",
"format" => "optional",
),
"Cost of goods sold" => array(
"name" => "cost_of_goods_sold",
"feed_name" => "g:cost_of_goods_sold",
"format" => "optional",
),
"Installment" => array(
"name" => "installment",
"feed_name" => "g:installment",
"format" => "optional",
),
"Subscription cost" => array(
"name" => "subscription_cost",
"feed_name" => "g:subscription_cost",
"format" => "optional",
),
"Loyalty points" => array(
"name" => "loyalty_points",
"feed_name" => "g:loyalty_points",
"format" => "optional",
),
),
"Product category" => array(
"Google product category" => array(
"name" => "google_product_category",
"feed_name" => "g:google_product_category",
"format" => "required",
"woo_suggest" => "categories",
),
"Product type" => array(
"name" => "product_type",
"feed_name" => "g:product_type",
"format" => "required",
"woo_suggest" => "raw_categories",
),
),
"Product identifiers" => array(
"Brand" => array(
"name" => "brand",
"feed_name" => "g:brand",
"format" => "required",
),
"Gtin" => array(
"name" => "gtin",
"feed_name" => "g:gtin",
"format" => "required",
),
"MPN" => array(
"name" => "mpn",
"feed_name" => "g:mpn",
"format" => "required",
),
"Identifier exists" => array(
"name" => "identifier_exists",
"feed_name" => "g:identifier_exists",
"woo_suggest" => "calculated",
"format" => "required",
),
),
"Detailed product description" => array(
"Condition" => array(
"name" => "condition",
"feed_name" => "g:condition",
"format" => "required",
"woo_suggest" => "condition",
),
"Adult" => array(
"name" => "adult",
"feed_name" => "g:adult",
"format" => "optional",
),
"Multipack" => array(
"name" => "multipack",
"feed_name" => "g:multipack",
"format" => "optional",
),
"Is bundle" => array(
"name" => "is_bundle",
"feed_name" => "g:is_bundle",
"format" => "optional",
),
"Energy efficiency class" => array(
"name" => "energy_efficiency_class",
"feed_name" => "g:energy_efficiency_class",
"format" => "optional",
),
"Minimum energy efficiency class" => array(
"name" => "min_energy_efficiency_class",
"feed_name" => "g:min_energy_efficiency_class",
"format" => "optional",
),
"Maximum energy efficiency class" => array(
"name" => "max_energy_efficiency_class",
"feed_name" => "g:max_energy_efficiency_class",
"format" => "optional",
),
"Age group" => array(
"name" => "age_group",
"feed_name" => "g:age_group",
"format" => "optional",
),
"Color" => array(
"name" => "color",
"feed_name" => "g:color",
"format" => "optional",
),
"Gender" => array(
"name" => "gender",
"feed_name" => "g:gender",
"format" => "optional",
),
"Material" => array(
"name" => "material",
"feed_name" => "g:material",
"format" => "optional",
),
"Pattern" => array(
"name" => "pattern",
"feed_name" => "g:pattern",
"format" => "optional",
),
"Size" => array(
"name" => "size",
"feed_name" => "g:size",
"format" => "optional",
),
"Size type" => array(
"name" => "size_type",
"feed_name" => "g:size_type",
"format" => "optional",
),
"Size system" => array(
"name" => "size_system",
"feed_name" => "g:size_system",
"format" => "optional",
),
"Item group ID" => array(
"name" => "item_group_id",
"feed_name" => "g:item_group_id",
"format" => "required",
"woo_suggest" => "item_group_id",
),
),
"Shopping campaigns" => array(
"Ads redirect (new)" => array(
"name" => "ads_redirect",
"feed_name" => "g:ads_redirect",
"format" => "optional",
),
"Excluded destination" => array(
"name" => "excluded_destination",
"feed_name" => "g:excluded_destination",
"format" => "optional",
),
"Custom label 0" => array(
"name" => "custom_label_0",
"feed_name" => "g:custom_label_0",
"format" => "optional",
),
"Custom label 1" => array(
"name" => "custom_label_1",
"feed_name" => "g:custom_label_1",
"format" => "optional",
),
"Custom label 2" => array(
"name" => "custom_label_2",
"feed_name" => "g:custom_label_2",
"format" => "optional",
),
"Custom label 3" => array(
"name" => "custom_label_3",
"feed_name" => "g:custom_label_3",
"format" => "optional",
),
"Custom label 4" => array(
"name" => "custom_label_4",
"feed_name" => "g:custom_label_4",
"format" => "optional",
),
"Promotion ID" => array(
"name" => "promotion_id",
"feed_name" => "g:promotion_id",
"format" => "optional",
),
"Included destination" => array(
"name" => "included_destination",
"feed_name" => "included_destination",
"format" => "optional",
),
"Excluded destination" => array(
"name" => "excluded_destination",
"feed_name" => "g:excluded_destination",
"format" => "optional",
),
"Ads grouping" => array(
"name" => "ads_grouping",
"feed_name" => "g:ads_grouping",
"format" => "optional",
),
"Ads labels" => array(
"name" => "ads_labels",
"feed_name" => "g:ads_labels",
"format" => "optional",
),
"Adwords grouping (BING)" => array(
"name" => "adwords_grouping",
"feed_name" => "g:adwords_grouping",
"format" => "optional",
),
"Adwords labels (BING)" => array(
"name" => "adwords_labels",
"feed_name" => "g:adwords_labels",
"format" => "optional",
),
"Adwords redirect (BING)" => array(
"name" => "adwords_redirect",
"feed_name" => "g:adwords_redirect",
"format" => "optional",
),
),
"Shipping" => array(
"Shipping" => array(
"name" => "shipping",
"feed_name" => "g:shipping",
"format" => "optional",
),
"Shipping label" => array(
"name" => "shipping_label",
"feed_name" => "g:shipping_label",
"format" => "optional",
),
"Shipping weight" => array(
"name" => "shipping_weight",
"feed_name" => "g:shipping_weight",
"format" => "optional",
),
"Shipping length" => array(
"name" => "shipping_length",
"feed_name" => "g:shipping_length",
"format" => "optional",
),
"Shipping width" => array(
"name" => "shipping_width",
"feed_name" => "g:shipping_width",
"format" => "optional",
),
"Shipping height" => array(
"name" => "shipping_height",
"feed_name" => "g:shipping_height",
"format" => "optional",
),
"Transit time label" => array(
"name" => "transit_time_label",
"feed_name" => "g:transit_time_label",
"format" => "optional",
),
"Minimum handling time" => array(
"name" => "min_handling_time",
"feed_name" => "g:min_handling_time",
"format" => "optional",
),
"Maximum handling time" => array(
"name" => "max_handling_time",
"feed_name" => "g:max_handling_time",
"format" => "optional",
),
"Ships from country" => array(
"name" => "ships_from_country",
"feed_name" => "g:ships_from_country",
"format" => "optional",
),
"Region Id" => array(
"name" => "region_id",
"feed_name" => "g:region_id",
"format" => "optional",
),
),
"Tax" => array(
"Tax" => array(
"name" => "tax",
"feed_name" => "g:tax",
"format" => "optional",
),
"Tax category" => array(
"name" => "tax_category",
"feed_name" => "g:tax_category",
"format" => "optional",
),
),
"Shopping Actions" => array(
"Product fee" => array(
"name" => "product_fee",
"feed_name" => "g:product_fee",
"format" => "optional",
),
"Purchase quantity limit" => array(
"name" => "purchase_quantity_limit",
"feed_name" => "g:purchase_quantity_limit",
"format" => "optional",
),
"Sell on google quantity" => array(
"name" => "sell_on_google_quantity",
"feed_name" => "g:sell_on_google_quantity",
"format" => "optional",
),
"Consumer datasheet" => array(
"name" => "consumer_datasheet",
"feed_name" => "g:consumer_datasheet",
"format" => "optional",
),
"Consumer notice" => array(
"name" => "consumer_notice",
"feed_name" => "g:consumer_notice",
"format" => "optional",
),
"Energy label image link" => array(
"name" => "energy_label_image_link",
"feed_name" => "g:energy_label_image_link",
"format" => "optional",
),
"Product detail" => array(
"name" => "product_detail",
"feed_name" => "g:product_detail",
"format" => "optional",
),
"Product highlight" => array(
"name" => "product_highlight",
"feed_name" => "g:product_highlight",
"format" => "optional",
),
"Return address label" => array(
"name" => "return_address_label",
"feed_name" => "g:return_address_label",
"format" => "optional",
),
"Return policy label" => array(
"name" => "return_policy_label",
"feed_name" => "g:return_policy_label",
"format" => "optional",
),
"Google funded promotion eligibility" => array(
"name" => "google_funded_promotion_eligibility",
"feed_name" => "g:google_funded_promotion_eligibility",
"format" => "optional",
),
"Pickup method" => array(
"name" => "pickup_method",
"feed_name" => "g:pickup_method",
"format" => "optional",
),
"Pickup SLA" => array(
"name" => "pickup_SLA",
"feed_name" => "g:pickup_SLA",
"format" => "optional",
),
"Pickup link template" => array(
"name" => "pickup_link_template",
"feed_name" => "g:pickup_link_template",
"format" => "optional",
),
"Store code" => array(
"name" => "store_code",
"feed_name" => "g:store_code",
"format" => "optional",
),
"Mobile pickup link template" => array(
"name" => "mobile_pickup_link_template",
"feed_name" => "g:mobile_pickup_link_template",
"format" => "optional",
),
"Seller name" => array(
"name" => "seller_name",
"feed_name" => "g:seller_name",
"format" => "optional",
),
"Count" => array(
"name" => "count",
"feed_name" => "g:count",
"format" => "optional",
),
"Disclosure date" => array(
"name" => "disclosure_date",
"feed_name" => "g:disclosure_date",
"format" => "optional",
),
"Feature description" => array(
"name" => "feature_description",
"feed_name" => "g:feature_description",
"format" => "optional",
),
"Flavor" => array(
"name" => "flavor",
"feed_name" => "g:flavor",
"format" => "optional",
),
"Scent" => array(
"name" => "scent",
"feed_name" => "g:scent",
"format" => "optional",
),
"Format" => array(
"name" => "format",
"feed_name" => "g:format",
"format" => "optional",
),
"Product line" => array(
"name" => "product_line",
"feed_name" => "g:product_line",
"format" => "optional",
),
"Product name" => array(
"name" => "product_name",
"feed_name" => "g:product_name",
"format" => "optional",
),
"Product page url" => array(
"name" => "product_page_url",
"feed_name" => "g:product_page_url",
"format" => "optional",
),
"Size system" => array(
"name" => "size_system",
"feed_name" => "g:size_system",
"format" => "optional",
),
"Size type" => array(
"name" => "size_type",
"feed_name" => "g:size_type",
"format" => "optional",
),
"Capacity" => array(
"name" => "capacity",
"feed_name" => "g:capacity",
"format" => "optional",
),
"Suggested retail price" => array(
"name" => "suggested_retail_price",
"feed_name" => "g:suggested_retail_price",
"format" => "optional",
),
"Theme" => array(
"name" => "theme",
"feed_name" => "g:theme",
"format" => "optional",
),
"Video link" => array(
"name" => "video_link",
"feed_name" => "g:video_link",
"format" => "optional",
),
"Display ads ID" => array(
"name" => "display_ads_id",
"feed_name" => "g:display_ads_id",
"format" => "optional",
),
"Display ads Similar ID" => array(
"name" => "display_ads_similar_id",
"feed_name" => "g:display_ads_similar_id",
"format" => "optional",
),
"Display ads Title" => array(
"name" => "display_ads_title",
"feed_name" => "g:display_ads_title",
"format" => "optional",
),
"Display ads Link" => array(
"name" => "display_ads_link",
"feed_name" => "g:display_ads_link",
"format" => "optional",
),
"Display ads Value" => array(
"name" => "display_ads_value",
"feed_name" => "g:display_ads_value",
"format" => "optional",
),
),
);
return $tiktok_attributes;
}
}
?>

View File

@@ -0,0 +1,141 @@
<?php
/**
* Settings for Trovaprezzi feeds
*/
class WooSEA_trovaprezzi {
public $trovaprezzi;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$trovaprezzi = array(
"Feed fields" => array(
"Product ID" => array(
"name" => "Code",
"feed_name" => "Code",
"format" => "required",
"woo_suggest" => "id",
),
"Product SKU" => array(
"name" => "SKU",
"feed_name" => "SKU",
"format" => "optional",
),
"Product name" => array(
"name" => "Name",
"feed_name" => "Name",
"format" => "required",
"woo_suggest" => "title",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "Brand",
"format" => "optional",
),
"Product URL" => array(
"name" => "Link",
"feed_name" => "Link",
"format" => "required",
"woo_suggest" => "link",
),
"Product price" => array(
"name" => "Price",
"feed_name" => "Price",
"format" => "required",
"woo_suggest" => "price",
),
"Original price" => array(
"name" => "OriginalPrice",
"feed_name" => "OriginalPrice",
"format" => "optional",
"woo_suggest" => "price",
),
"Product category" => array(
"name" => "Categories",
"feed_name" => "Categories",
"format" => "required",
"woo_suggest" => "categories",
),
"Product description" => array(
"name" => "Product description",
"feed_name" => "Description",
"format" => "optional",
"woo_suggest" => "description",
),
"Product image 1" => array(
"name" => "Image1",
"feed_name" => "Image",
"format" => "required",
"woo_suggest" => "image"
),
"Product image 2" => array(
"name" => "Image2",
"feed_name" => "Image2",
"format" => "optional",
),
"Product image 3" => array(
"name" => "Image3",
"feed_name" => "Image3",
"format" => "optional",
),
"Product image 4" => array(
"name" => "Image4",
"feed_name" => "Image4",
"format" => "optional",
),
"Product image 5" => array(
"name" => "Image5",
"feed_name" => "Image5",
"format" => "optional",
),
"Stock" => array(
"name" => "Stock",
"feed_name" => "Stock",
"format" => "optional",
),
"EAN" => array(
"name" => "EanCode",
"feed_name" => "EanCode",
"format" => "optional",
),
"MPN" => array(
"name" => "MpnCode",
"feed_name" => "MpnCode",
"format" => "optional",
),
"PartNumber" => array(
"name" => "PartNumber",
"feed_name" => "PartNumber",
"format" => "optional",
),
"Descrizione" => array(
"name" => "Descrizione",
"feed_name" => "Taglia",
"format" => "optional",
),
"Taglia" => array(
"name" => "Taglia",
"feed_name" => "Taglia",
"format" => "optional",
),
"Colore" => array(
"name" => "Colore",
"feed_name" => "Colore",
"format" => "optional",
),
"Materiale" => array(
"name" => "Materiale",
"feed_name" => "Materiale",
"format" => "optional",
),
"Shipping Cost" => array(
"name" => "ShippingCost",
"feed_name" => "ShippingCost",
"format" => "required",
),
),
);
return $trovaprezzi;
}
}
?>

View File

@@ -0,0 +1,154 @@
<?php
/**
* Settings for Vergelijk.be feeds
*/
class WooSEA_vergelijkbe {
public $vergelijkbe;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$vergelijkbe = array(
"Feed fields" => array(
"shopReference" => array(
"name" => "Shop reference",
"feed_name" => "shopReference",
"format" => "required",
),
"shopOfferId" => array(
"name" => "Shop offer id",
"feed_name" => "shopOfferId",
"format" => "optional",
),
"shopCategory" => array(
"name" => "Shop category",
"feed_name" => "shopCategory",
"format" => "required",
"woo_suggest" => "categories",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "brand",
"format" => "required",
),
"Description" => array(
"name" => "Description",
"feed_name" => "description",
"format" => "optional",
"woo_suggest" => "description",
),
"Name" => array(
"name" => "Product name",
"feed_name" => "name",
"format" => "required",
"woo_suggest" => "name",
),
"IdentifierType" => array(
"name" => "Identifier type",
"feed_name" => "type",
"format" => "optional",
),
"IdentifierValue" => array(
"name" => "Identifier value",
"feed_name" => "value",
"format" => "optional",
),
"FeatureName" => array(
"name" => "Feature name",
"feed_name" => "name",
"format" => "optional",
),
"FeatureValue" => array(
"name" => "Feature value",
"feed_name" => "value",
"format" => "optional",
),
"basePrice" => array(
"name" => "Selling price",
"feed_name" => "basePrice",
"format" => "required",
),
"promotionText" => array(
"name" => "Promotional text",
"feed_name" => "promotionText",
"format" => "optional",
),
"Price" => array(
"name" => "Delivery price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"Deeplink" => array(
"name" => "Deeplink",
"feed_name" => "deepLink",
"format" => "required",
"woo_suggest" => "link",
),
"mediaType" => array(
"name" => "Media type",
"feed_name" => "type",
"format" => "optional",
),
"mediaURL" => array(
"name" => "Media url",
"feed_name" => "url",
"format" => "optional",
),
"stockStatus" => array(
"name" => "Stock status",
"feed_name" => "inStock",
"format" => "optional",
),
"nrInStock" => array(
"name" => "Nr. products on stock",
"feed_name" => "nrInStock",
"format" => "optional",
),
"countryCode" => array(
"name" => "Shipping country code",
"feed_name" => "countryCode",
"format" => "optional",
),
"deliveryTime" => array(
"name" => "Delivery time",
"feed_name" => "deliveryTime",
"format" => "required",
),
"shippingDescription" => array(
"name" => "Shipping description",
"feed_name" => "method",
"format" => "optional",
),
"method" => array(
"name" => "Shipping method",
"feed_name" => "method",
"format" => "required",
),
"ServicecountryCode" => array(
"name" => "Service country code",
"feed_name" => "countryCode",
"format" => "required",
),
"ServiceName" => array(
"name" => "Service name",
"feed_name" => "name",
"format" => "optional",
),
"ServicePrice" => array(
"name" => "Service price",
"feed_name" => "price",
"format" => "optional",
),
"ServiceType" => array(
"name" => "Service type",
"feed_name" => "type",
"format" => "optional",
),
),
);
return $vergelijkbe;
}
}
?>

View File

@@ -0,0 +1,154 @@
<?php
/**
* Settings for Vergelijk.nl feeds
*/
class WooSEA_vergelijknl {
public $vergelijknl;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$vergelijknl = array(
"Feed fields" => array(
"shopReference" => array(
"name" => "Shop reference",
"feed_name" => "shopReference",
"format" => "required",
),
"shopOfferId" => array(
"name" => "Shop offer id",
"feed_name" => "shopOfferId",
"format" => "optional",
),
"shopCategory" => array(
"name" => "Shop category",
"feed_name" => "shopCategory",
"format" => "required",
"woo_suggest" => "categories",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "brand",
"format" => "required",
),
"Description" => array(
"name" => "Description",
"feed_name" => "description",
"format" => "optional",
"woo_suggest" => "description",
),
"Name" => array(
"name" => "Product name",
"feed_name" => "name",
"format" => "required",
"woo_suggest" => "name",
),
"IdentifierType" => array(
"name" => "Identifier type",
"feed_name" => "type",
"format" => "optional",
),
"IdentifierValue" => array(
"name" => "Identifier value",
"feed_name" => "value",
"format" => "optional",
),
"FeatureName" => array(
"name" => "Feature name",
"feed_name" => "name",
"format" => "optional",
),
"FeatureValue" => array(
"name" => "Feature value",
"feed_name" => "value",
"format" => "optional",
),
"basePrice" => array(
"name" => "Selling price",
"feed_name" => "basePrice",
"format" => "required",
),
"promotionText" => array(
"name" => "Promotional text",
"feed_name" => "promotionText",
"format" => "optional",
),
"Price" => array(
"name" => "Delivery price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"Deeplink" => array(
"name" => "Deeplink",
"feed_name" => "deepLink",
"format" => "required",
"woo_suggest" => "link",
),
"mediaType" => array(
"name" => "Media type",
"feed_name" => "type",
"format" => "optional",
),
"mediaURL" => array(
"name" => "Media url",
"feed_name" => "url",
"format" => "optional",
),
"stockStatus" => array(
"name" => "Stock status",
"feed_name" => "inStock",
"format" => "optional",
),
"nrInStock" => array(
"name" => "Nr. products on stock",
"feed_name" => "nrInStock",
"format" => "optional",
),
"countryCode" => array(
"name" => "Shipping country code",
"feed_name" => "countryCode",
"format" => "optional",
),
"deliveryTime" => array(
"name" => "Delivery time",
"feed_name" => "deliveryTime",
"format" => "required",
),
"shippingDescription" => array(
"name" => "Shipping description",
"feed_name" => "method",
"format" => "optional",
),
"method" => array(
"name" => "Shipping method",
"feed_name" => "method",
"format" => "required",
),
"ServicecountryCode" => array(
"name" => "Service country code",
"feed_name" => "countryCode",
"format" => "required",
),
"ServiceName" => array(
"name" => "Service name",
"feed_name" => "name",
"format" => "optional",
),
"ServicePrice" => array(
"name" => "Service price",
"feed_name" => "price",
"format" => "optional",
),
"ServiceType" => array(
"name" => "Service type",
"feed_name" => "type",
"format" => "optional",
),
),
);
return $vergelijknl;
}
}
?>

View File

@@ -0,0 +1,154 @@
<?php
/**
* Settings for Vertaa.fi feeds
*/
class WooSEA_vertaafi {
public $vertaafi;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$vertaafi = array(
"Feed fields" => array(
"shopReference" => array(
"name" => "Shop reference",
"feed_name" => "shopReference",
"format" => "required",
),
"shopOfferId" => array(
"name" => "Shop offer id",
"feed_name" => "shopOfferId",
"format" => "optional",
),
"shopCategory" => array(
"name" => "Shop category",
"feed_name" => "shopCategory",
"format" => "required",
"woo_suggest" => "categories",
),
"Brand" => array(
"name" => "Brand",
"feed_name" => "brand",
"format" => "required",
),
"Description" => array(
"name" => "Description",
"feed_name" => "description",
"format" => "optional",
"woo_suggest" => "description",
),
"Name" => array(
"name" => "Product name",
"feed_name" => "name",
"format" => "required",
"woo_suggest" => "name",
),
"IdentifierType" => array(
"name" => "Identifier type",
"feed_name" => "type",
"format" => "optional",
),
"IdentifierValue" => array(
"name" => "Identifier value",
"feed_name" => "value",
"format" => "optional",
),
"FeatureName" => array(
"name" => "Feature name",
"feed_name" => "name",
"format" => "optional",
),
"FeatureValue" => array(
"name" => "Feature value",
"feed_name" => "value",
"format" => "optional",
),
"basePrice" => array(
"name" => "Selling price",
"feed_name" => "basePrice",
"format" => "required",
),
"promotionText" => array(
"name" => "Promotional text",
"feed_name" => "promotionText",
"format" => "optional",
),
"Price" => array(
"name" => "Delivery price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"Deeplink" => array(
"name" => "Deeplink",
"feed_name" => "deepLink",
"format" => "required",
"woo_suggest" => "link",
),
"mediaType" => array(
"name" => "Media type",
"feed_name" => "type",
"format" => "optional",
),
"mediaURL" => array(
"name" => "Media url",
"feed_name" => "url",
"format" => "optional",
),
"stockStatus" => array(
"name" => "Stock status",
"feed_name" => "inStock",
"format" => "optional",
),
"nrInStock" => array(
"name" => "Nr. products on stock",
"feed_name" => "nrInStock",
"format" => "optional",
),
"countryCode" => array(
"name" => "Shipping country code",
"feed_name" => "countryCode",
"format" => "optional",
),
"deliveryTime" => array(
"name" => "Delivery time",
"feed_name" => "deliveryTime",
"format" => "required",
),
"shippingDescription" => array(
"name" => "Shipping description",
"feed_name" => "method",
"format" => "optional",
),
"method" => array(
"name" => "Shipping method",
"feed_name" => "method",
"format" => "required",
),
"ServicecountryCode" => array(
"name" => "Service country code",
"feed_name" => "countryCode",
"format" => "required",
),
"ServiceName" => array(
"name" => "Service name",
"feed_name" => "name",
"format" => "optional",
),
"ServicePrice" => array(
"name" => "Service price",
"feed_name" => "price",
"format" => "optional",
),
"ServiceType" => array(
"name" => "Service type",
"feed_name" => "type",
"format" => "optional",
),
),
);
return $vertaafi;
}
}
?>

View File

@@ -0,0 +1,190 @@
<?php
/**
* Settings for Vivino feeds
*/
class WooSEA_vivino {
public $vivino;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$vivino = array(
"Feed fields" => array(
"Product ID" => array(
"name" => "product-id",
"feed_name" => "product-id",
"format" => "required",
"woo_suggest" => "id"
),
"Product Name" => array(
"name" => "product-name",
"feed_name" => "product-name",
"format" => "required",
"woo_suggest" => "title",
),
"Price" => array(
"name" => "price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "vivino_price",
),
"Bottle Size" => array(
"name" => "bottle_size",
"feed_name" => "bottle_size",
"format" => "required",
),
"Bottle Quantity" => array(
"name" => "bottle_quantity",
"feed_name" => "bottle_quantity",
"format" => "required",
),
"Inventory Count" => array(
"name" => "inventory-count",
"feed_name" => "inventory-count",
"format" => "required",
"woo_suggest" => "quantity",
),
"Quantity is minimum" => array(
"name" => "quantity-is-minimum",
"feed_name" => "quantity-is-minimum",
"format" => "required",
),
"Link" => array(
"name" => "link",
"feed_name" => "link",
"format" => "required",
"woo_suggest" => "link",
),
"Image" => array(
"name" => "image",
"feed_name" => "image",
"format" => "required",
"woo_suggest" => "image",
),
"Producer" => array(
"name" => "producer",
"feed_name" => "producer",
"format" => "optional",
),
"Wine Name" => array(
"name" => "wine-name",
"feed_name" => "wine-name",
"format" => "optional",
),
"Appellation" => array(
"name" => "appellation",
"feed_name" => "appellation",
"format" => "optional",
),
"Vintage" => array(
"name" => "vintage",
"feed_name" => "vintage",
"format" => "optional",
),
"Country" => array(
"name" => "country",
"feed_name" => "country",
"format" => "optional",
),
"Color" => array(
"name" => "color",
"feed_name" => "color",
"format" => "optional",
),
"EAN" => array(
"name" => "ean",
"feed_name" => "ean",
"format" => "optional",
),
"UPC" => array(
"name" => "upc",
"feed_name" => "upc",
"format" => "optional",
),
"JAN" => array(
"name" => "jan",
"feed_name" => "jan",
"format" => "optional",
),
"Description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "optional",
),
"Alcohol" => array(
"name" => "alcohol",
"feed_name" => "alcohol",
"format" => "optional",
),
"Producer Address" => array(
"name" => "producer-address",
"feed_name" => "producer-address",
"format" => "optional",
),
"Importer Address" => array(
"name" => "importer-address",
"feed_name" => "importer-address",
"format" => "optional",
),
"Varietal" => array(
"name" => "varietal",
"feed_name" => "varietal",
"format" => "optional",
),
"Ageing" => array(
"name" => "ageing",
"feed_name" => "ageing",
"format" => "optional",
),
"Closure" => array(
"name" => "closure",
"feed_name" => "closure",
"format" => "optional",
),
"Production Size Unit" => array(
"name" => "production-size",
"feed_name" => "production-size",
"format" => "optional",
),
"Residual Sugar Unit" => array(
"name" => "residual-sugar",
"feed_name" => "residual-sugar",
"format" => "optional",
),
"Acidity Unit" => array(
"name" => "acidity",
"feed_name" => "acidity",
"format" => "optional",
),
"Ph" => array(
"name" => "ph",
"feed_name" => "ph",
"format" => "optional",
),
"Winemaker" => array(
"name" => "winemaker",
"feed_name" => "winemaker",
"format" => "optional",
),
"Contains Milk Allergens" => array(
"name" => "contains-milk-allergens",
"feed_name" => "contains-milk-allergens",
"format" => "optional",
),
"Contains Egg Allergens" => array(
"name" => "contains-egg-allergens",
"feed_name" => "contains-egg-allergens",
"format" => "optional",
),
"Non Alcoholic" => array(
"name" => "non-alcoholic",
"feed_name" => "non-alcoholic",
"format" => "optional",
),
),
);
return $vivino;
}
}
?>

View File

@@ -0,0 +1,204 @@
<?php
/**
* Settings for Wish.com feeds
*/
class WooSEA_wishcom {
public $wishcom;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$wishcom = array(
"Feed fields" => array(
"Parent Unique ID" => array(
"name" => "Parent Unique ID",
"feed_name" => "Parent Unique ID",
"format" => "optional",
),
"Unique ID" => array(
"name" => "Unique ID",
"feed_name" => "Unique ID",
"format" => "required",
"woo_suggest" => "id"
),
"Product Name" => array(
"name" => "Product Name",
"feed_name" => "Product Name",
"format" => "required",
"woo_suggest" => "title",
),
"Declared Name" => array(
"name" => "Declared Name",
"feed_name" => "Declared Name",
"format" => "optional",
),
"Declared Local Name" => array(
"name" => "Declared Local Name",
"feed_name" => "Declared Local Name",
"format" => "optional",
),
"Pieces" => array(
"name" => "Pieces",
"feed_name" => "Pieces",
"format" => "optional",
),
"Color" => array(
"name" => "Color",
"feed_name" => "Color",
"format" => "optional",
),
"Size" => array(
"name" => "Size",
"feed_name" => "Size",
"format" => "optional",
),
"Quantity" => array(
"name" => "Quantity",
"feed_name" => "Quantity",
"format" => "required",
"woo_suggest" => "quantity",
),
"Tags" => array(
"name" => "Tags",
"feed_name" => "Tags",
"format" => "required",
),
"Description" => array(
"name" => "Description",
"feed_name" => "Description",
"format" => "optional",
),
"Price" => array(
"name" => "Price",
"feed_name" => "Price",
"format" => "required",
"woo_suggest" => "price",
),
"Shipping" => array(
"name" => "Shipping",
"feed_name" => "Shipping",
"format" => "required",
),
"Shipping Time" => array(
"name" => "Shipping Time",
"feed_name" => "Shipping Time",
"format" => "required",
),
"Main Image URL" => array(
"name" => "Main Image URL",
"feed_name" => "Main Image URL",
"format" => "required",
"woo_suggest" => "image",
),
"Extra Image URL 1" => array(
"name" => "Extra Image URL 1",
"feed_name" => "Extra Image URL 1",
"format" => "optional",
),
"Extra Image URL 2" => array(
"name" => "Extra Image URL 2",
"feed_name" => "Extra Image URL 2",
"format" => "optional",
),
"Extra Image URL 3" => array(
"name" => "Extra Image URL 3",
"feed_name" => "Extra Image URL 3",
"format" => "optional",
),
"Extra Image URL 4" => array(
"name" => "Extra Image URL 4",
"feed_name" => "Extra Image URL 4",
"format" => "optional",
),
"Extra Image URL 5" => array(
"name" => "Extra Image URL 5",
"feed_name" => "Extra Image URL 5",
"format" => "optional",
),
"Extra Image URL 6" => array(
"name" => "Extra Image URL 6",
"feed_name" => "Extra Image URL 6",
"format" => "optional",
),
"Extra Image URL 7" => array(
"name" => "Extra Image URL 7",
"feed_name" => "Extra Image URL 7",
"format" => "optional",
),
"Extra Image URL 8" => array(
"name" => "Extra Image URL 8",
"feed_name" => "Extra Image URL 8",
"format" => "optional",
),
"Extra Image URL 9" => array(
"name" => "Extra Image URL 9",
"feed_name" => "Extra Image URL 9",
"format" => "optional",
),
"Clean Image URL" => array(
"name" => "Clean Image URL",
"feed_name" => "Clean Image URL",
"format" => "optional",
),
"Package Length" => array(
"name" => "Package Length",
"feed_name" => "Package Length",
"format" => "optional",
),
"Package Width" => array(
"name" => "Package Width",
"feed_name" => "Package Width",
"format" => "optional",
),
"Package Height" => array(
"name" => "Package Height",
"feed_name" => "Package Height",
"format" => "optional",
),
"Package Weight" => array(
"name" => "Package Weight",
"feed_name" => "Package Weight",
"format" => "optional",
),
"Country Of Origin" => array(
"name" => "Country Of Origin",
"feed_name" => "Country Of Origin",
"format" => "optional",
),
"Contains Powder" => array(
"name" => "Contains Powder",
"feed_name" => "Contains Powder",
"format" => "optional",
),
"Contains Liquid" => array(
"name" => "Contains Liquid",
"feed_name" => "Contains Liquid",
"format" => "optional",
),
"Contains Battery" => array(
"name" => "Contains Battery",
"feed_name" => "Contains Battery",
"format" => "optional",
),
"Contains Metal" => array(
"name" => "Contains Metal",
"feed_name" => "Contains Metal",
"format" => "optional",
),
"Custom Declared Value" => array(
"name" => "Custom Declared Value",
"feed_name" => "Custom Declared Value",
"format" => "optional",
),
"Custom HS Code" => array(
"name" => "Custom HS Code",
"feed_name" => "Custom HS Code",
"format" => "optional",
),
),
);
return $wishcom;
}
}
?>

View File

@@ -0,0 +1,347 @@
<?php
/**
* Settings for Yandex feeds
*/
class WooSEA_yandex {
public $yandex;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$yandex = array(
"Feed fields" => array(
"id" => array(
"name" => "id",
"feed_name" => "id",
"format" => "required",
"woo_suggest" => "id",
),
"type" => array(
"name" => "type",
"feed_name" => "type",
"format" => "optional",
),
"available" => array(
"name" => "available",
"feed_name" => "available",
"format" => "required",
"woo_suggest" => "availability",
),
"bid" => array(
"name" => "bid",
"feed_name" => "bid",
"format" => "optional",
),
"cbid" => array(
"name" => "cbid",
"feed_name" => "cbid",
"format" => "optional",
),
"url" => array(
"name" => "url",
"feed_name" => "url",
"format" => "required",
"woo_suggest" => "link",
),
"price" => array(
"name" => "price",
"feed_name" => "price",
"format" => "required",
"woo_suggest" => "price",
),
"currencyId" => array(
"name" => "currencyId",
"feed_name" => "currencyId",
"format" => "required",
),
"categoryId" => array(
"name" => "categoryId",
"feed_name" => "categoryId",
"format" => "required",
"woo_suggest" => "categories",
),
"picture" => array(
"name" => "picture",
"feed_name" => "picture",
"format" => "optional",
"woo_suggest" => "image",
),
"typePrefix" => array(
"name" => "typePrefix",
"feed_name" => "typePrefix",
"format" => "optional",
),
"store" => array(
"name" => "store",
"feed_name" => "store",
"format" => "optional",
),
"pickup" => array(
"name" => "pickup",
"feed_name" => "pickup",
"format" => "optional",
),
"delivery" => array(
"name" => "delivery",
"feed_name" => "delivery",
"format" => "optional",
),
"name" => array(
"name" => "name",
"feed_name" => "name",
"format" => "required",
"woo_suggest" => "title",
),
"model" => array(
"name" => "model",
"feed_name" => "model",
"format" => "required",
),
"description" => array(
"name" => "description",
"feed_name" => "description",
"format" => "optional",
"woo_suggest" => "description",
),
"vendor" => array(
"name" => "vendor",
"feed_name" => "vendor",
"format" => "optional",
),
"vendorCode" => array(
"name" => "vendorCode",
"feed_name" => "vendorCode",
"format" => "optional",
),
"local_delivery_cost" => array(
"name" => "local_delivery_cost",
"feed_name" => "local_delivery_cost",
"format" => "optional",
),
"sales_notes" => array(
"name" => "sales_notes",
"feed_name" => "sales_notes",
"format" => "optional",
),
"manufacturer_warranty" => array(
"name" => "manufacturer_warranty",
"feed_name" => "manufacturer_warranty",
"format" => "optional",
),
"country_of_origin" => array(
"name" => "country_of_origin",
"feed_name" => "country_of_origin",
"format" => "optional",
),
"downloadable" => array(
"name" => "downloadable",
"feed_name" => "downloadable",
"format" => "optional",
),
"adult" => array(
"name" => "adult",
"feed_name" => "adult",
"format" => "optional",
),
"age" => array(
"name" => "age",
"feed_name" => "age",
"format" => "optional",
),
"barcode" => array(
"name" => "barcode",
"feed_name" => "barcode",
"format" => "optional",
),
"author" => array(
"name" => "author",
"feed_name" => "author",
"format" => "optional",
),
"artist" => array(
"name" => "artist",
"feed_name" => "artist",
"format" => "optional",
),
"publisher" => array(
"name" => "publisher",
"feed_name" => "publisher",
"format" => "optional",
),
"series" => array(
"name" => "series",
"feed_name" => "series",
"format" => "optional",
),
"year" => array(
"name" => "year",
"feed_name" => "year",
"format" => "optional",
),
"ISBN" => array(
"name" => "ISBN",
"feed_name" => "ISBN",
"format" => "optional",
),
"volume" => array(
"name" => "volume",
"feed_name" => "volume",
"format" => "optional",
),
"part" => array(
"name" => "part",
"feed_name" => "part",
"format" => "optional",
),
"language" => array(
"name" => "language",
"feed_name" => "language",
"format" => "optional",
),
"binding" => array(
"name" => "binding",
"feed_name" => "binding",
"format" => "optional",
),
"page_extent" => array(
"name" => "page_extent",
"feed_name" => "page_extent",
"format" => "optional",
),
"table_of_contents" => array(
"name" => "table_of_contents",
"feed_name" => "table_of_contents",
"format" => "optional",
),
"performed_by" => array(
"name" => "performed_by",
"feed_name" => "performed_by",
"format" => "optional",
),
"performance_type" => array(
"name" => "performance_type",
"feed_name" => "performance_type",
"format" => "optional",
),
"format" => array(
"name" => "format",
"feed_name" => "format",
"format" => "optional",
),
"storage" => array(
"name" => "storage",
"feed_name" => "storage",
"format" => "optional",
),
"recording_length" => array(
"name" => "recording_length",
"feed_name" => "recording_length",
"format" => "optional",
),
"media" => array(
"name" => "media",
"feed_name" => "media",
"format" => "optional",
),
"starring" => array(
"name" => "starring",
"feed_name" => "starring",
"format" => "optional",
),
"director" => array(
"name" => "director",
"feed_name" => "director",
"format" => "optional",
),
"originalName" => array(
"name" => "originalName",
"feed_name" => "originalName",
"format" => "optional",
),
"worldRegion" => array(
"name" => "worldRegion",
"feed_name" => "worldRegion",
"format" => "optional",
),
"country" => array(
"name" => "country",
"feed_name" => "country",
"format" => "optional",
),
"region" => array(
"name" => "region",
"feed_name" => "region",
"format" => "optional",
),
"days" => array(
"name" => "days",
"feed_name" => "days",
"format" => "optional",
),
"dataTour" => array(
"name" => "dataTour",
"feed_name" => "dataTour",
"format" => "optional",
),
"hotel_stars" => array(
"name" => "hotel_stars",
"feed_name" => "hotel_stars",
"format" => "optional",
),
"room" => array(
"name" => "room",
"feed_name" => "room",
"format" => "optional",
),
"meal" => array(
"name" => "meal",
"feed_name" => "meal",
"format" => "optional",
),
"included" => array(
"name" => "included",
"feed_name" => "included",
"format" => "optional",
),
"transport" => array(
"name" => "transport",
"feed_name" => "transport",
"format" => "optional",
),
"place" => array(
"name" => "place",
"feed_name" => "place",
"format" => "optional",
),
"hall_plan" => array(
"name" => "hall_plan",
"feed_name" => "hall_plan",
"format" => "optional",
),
"date" => array(
"name" => "date",
"feed_name" => "date",
"format" => "optional",
),
"is_premiere" => array(
"name" => "is_premiere",
"feed_name" => "is_premiere",
"format" => "optional",
),
"is_kids" => array(
"name" => "is_kids",
"feed_name" => "is_kids",
"format" => "optional",
),
"Item group ID" => array(
"name" => "item_group_id",
"feed_name" => "item_group_id",
"format" => "optional",
)
),
);
return $yandex;
}
}
?>

View File

@@ -0,0 +1,104 @@
<?php
/**
* Settings for ZAP israel feeds
*/
class WooSEA_zap {
public $zap;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$zap = array(
"Feed fields" => array(
"Product URL" => array(
"name" => "PRODUCT_URL",
"feed_name" => "PRODUCT_URL",
"format" => "required",
"woo_suggest" => "link",
),
"Product Name" => array(
"name" => "PRODUCT_NAME",
"feed_name" => "PRODUCT_NAME",
"format" => "required",
"woo_suggest" => "title",
),
"Product Type" => array(
"name" => "PRODUCT_TYPE",
"feed_name" => "PRODUCT_TYPE",
"format" => "optional",
),
"Model" => array(
"name" => "MODEL",
"feed_name" => "MODEL",
"format" => "optional",
),
"Details" => array(
"name" => "DETAILS",
"feed_name" => "DETAILS",
"format" => "required",
"woo_suggest" => "description",
),
"Catalog Number" => array(
"name" => "CATALOG_NUMBER",
"feed_name" => "CATALOG_NUMBER",
"format" => "optional",
),
"Productcode" => array(
"name" => "PRODUCTCODE",
"feed_name" => "PRODUCTCODE",
"format" => "required",
"woo_suggest" => "id",
),
"Currency" => array(
"name" => "CURRENCY",
"feed_name" => "CURRENCY",
"format" => "required",
),
"Price" => array(
"name" => "PRICE",
"feed_name" => "PRICE",
"format" => "required",
"woo_suggest" => "price",
),
"Open Price" => array(
"name" => "OPEN_PRICE",
"feed_name" => "OPEN_PRICE",
"format" => "optional",
),
"Shipment Cost" => array(
"name" => "SHIPMENT_COST",
"feed_name" => "SHIPMENT_COST",
"format" => "required",
),
"Delivery Time" => array(
"name" => "DELIVERY_TIME",
"feed_name" => "DELIVERY_TIME",
"format" => "required",
),
"Manufacturer" => array(
"name" => "MANUFACTURER",
"feed_name" => "MANUFACTURER",
"format" => "optional",
),
"Warrenty" => array(
"name" => "WARRENTY",
"feed_name" => "WARRENTY",
"format" => "optional",
),
"Image" => array(
"name" => "IMAGE",
"feed_name" => "IMAGE",
"format" => "required",
"woo_suggest" => "image",
),
"Tax" => array(
"name" => "TAX",
"feed_name" => "TAX",
"format" => "optional",
),
),
);
return $zap;
}
}
?>

View File

@@ -0,0 +1,213 @@
<?php
/**
* Settings for Zbozi feeds
*/
class WooSEA_zbozi {
public $zbozi;
public static function get_channel_attributes() {
$sitename = get_option('blogname');
$zbozi = array(
"Feed fields" => array(
"ITEM_ID" => array(
"name" => "ITEM_ID",
"feed_name" => "ITEM_ID",
"format" => "required",
"woo_suggest" => "id",
),
"PRODUCTNAME" => array(
"name" => "PRODUCTNAME",
"feed_name" => "PRODUCTNAME",
"format" => "required",
"woo_suggest" => "title",
),
"PRODUCT" => array(
"name" => "PRODUCT",
"feed_name" => "PRODUCT",
"format" => "optional",
),
"DESCRIPTION" => array(
"name" => "DESCRIPTION",
"feed_name" => "DESCRIPTION",
"format" => "required",
"woo_suggest" => "description",
),
"CATEGORYTEXT" => array(
"name" => "CATEGORYTEXT",
"feed_name" => "CATEGORYTEXT",
"format" => "required",
"woo_suggest" => "description",
),
"EAN" => array(
"name" => "EAN",
"feed_name" => "EAN",
"format" => "optional",
),
"ISBN" => array(
"name" => "ISBN",
"feed_name" => "ISBN",
"format" => "optional",
),
"PRODUCTNO" => array(
"name" => "PRODUCTNO",
"feed_name" => "PRODUCTNO",
"format" => "optional",
),
"MANUFACTURER" => array(
"name" => "MANUFACTURER",
"feed_name" => "MANUFACTURER",
"format" => "optional",
),
"BRAND" => array(
"name" => "BRAND",
"feed_name" => "BRAND",
"format" => "optional",
),
"URL" => array(
"name" => "URL",
"feed_name" => "URL",
"format" => "required",
"woo_suggest" => "link",
),
"PRICE_VAT" => array(
"name" => "PRICE_VAT",
"feed_name" => "PRICE_VAT",
"format" => "required",
"woo_suggest" => "price",
),
"DELIVERY_DATE" => array(
"name" => "DELIVERY_DATE",
"feed_name" => "DELIVERY_DATE",
"format" => "required",
),
"DELIVERY" => array(
"name" => "DELIVERY",
"feed_name" => "DELIVERY",
"format" => "required",
"woo_suggest" => "shipping",
),
"SHOP_DEPOTS" => array(
"name" => "SHOP_DEPOTS",
"feed_name" => "SHOP_DEPOTS",
"format" => "optional",
),
"CATEGORYTEXT" => array(
"name" => "CATEGORYTEXT",
"feed_name" => "CATEGORYTEXT",
"format" => "optional",
"woo_suggest" => "categories",
),
"IMGURL" => array(
"name" => "IMGURL",
"feed_name" => "IMGURL",
"format" => "optional",
"woo_suggest" => "image",
),
"EXTRA_MESSAGE" => array(
"name" => "EXTRA_MESSAGE",
"feed_name" => "EXTRA_MESSAGE",
"format" => "optional",
),
"FREE_GIFT_TEXT" => array(
"name" => "FREE_GIFT_TEXT",
"feed_name" => "FREE_GIFT_TEXT",
"format" => "optional",
),
"MAX_CPC" => array(
"name" => "MAX_CPC",
"feed_name" => "MAX_CPC",
"format" => "optional",
),
"MAX_CPC_SEARCH" => array(
"name" => "MAX_CPC_SEARCH",
"feed_name" => "MAX_CPC_SEARCH",
"format" => "optional",
),
"EROTIC" => array(
"name" => "EROTIC",
"feed_name" => "EROTIC",
"format" => "optional",
),
"ITEMGROUP_ID" => array(
"name" => "ITEMGROUP_ID",
"feed_name" => "ITEMGROUP_ID",
"format" => "optional",
"woo_suggest" => "item_group_id",
),
"VISIBILITY" => array(
"name" => "VISIBILITY",
"feed_name" => "VISIBILITY",
"format" => "optional",
),
"CUSTOM_LABEL_0" => array(
"name" => "CUSTOM_LABEL_0",
"feed_name" => "CUSTOM_LABEL_0",
"format" => "optional",
),
"CUSTOM_LABEL_1" => array(
"name" => "CUSTOM_LABEL_1",
"feed_name" => "CUSTOM_LABEL_1",
"format" => "optional",
),
"CUSTOM_LABEL_2" => array(
"name" => "CUSTOM_LABEL_2",
"feed_name" => "CUSTOM_LABEL_2",
"format" => "optional",
),
"CUSTOM_LABEL_3" => array(
"name" => "CUSTOM_LABEL_3",
"feed_name" => "CUSTOM_LABEL_3",
"format" => "optional",
),
"CUSTOM_LABEL_4" => array(
"name" => "CUSTOM_LABEL_4",
"feed_name" => "CUSTOM_LABEL_4",
"format" => "optional",
),
"PRODUCT_LINE" => array(
"name" => "PRODUCT_LINE",
"feed_name" => "PRODUCT_LINE",
"format" => "optional",
),
"LIST_PRICE" => array(
"name" => "LIST_PRICE",
"feed_name" => "LIST_PRICE",
"format" => "optional",
),
"RELEASE_DATE" => array(
"name" => "RELEASE_DATE",
"feed_name" => "RELEASE_DATE",
"format" => "optional",
),
"LENGTH" => array(
"name" => "LENGTH",
"feed_name" => "LENGTH",
"format" => "optional",
),
"VOLUME" => array(
"name" => "VOLUME",
"feed_name" => "VOLUME",
"format" => "optional",
),
"SIZE" => array(
"name" => "SIZE",
"feed_name" => "SIZE",
"format" => "optional",
),
"COLOR" => array(
"name" => "COLOR",
"feed_name" => "COLOR",
"format" => "optional",
),
"PURPOSE" => array(
"name" => "PURPOSE",
"feed_name" => "PURPOSE",
"format" => "optional",
),
),
);
return $zbozi;
}
}
?>

View File

@@ -0,0 +1,5 @@
<?php
/**
* Nothing to see here
*/
?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,128 @@
<?php
/**
* Class holding the notification messages and type of notices
* Returns the message and type of message (info, error, success)
*/
class WooSEA_Get_Admin_Notifications {
public function __construct() {
$this->notification_details = array();
}
public function woosea_debug_informations ($versions, $product_numbers, $order_rows, $cron_objects) {
$upload_dir = wp_upload_dir();
$filename = "debug";
$base = $upload_dir['basedir'];
$path = $base . "/woo-product-feed-pro/logs";
$file = $path . "/". $filename ."." ."log";
// Remove the previous file, preventing the file from becoming to big
if ( file_exists ( $file ) ){
unlink($file);
}
// External location for downloading the file
$external_base = $upload_dir['baseurl'];
$external_path = $external_base . "/woo-product-feed-pro/logs";
$external_file = $external_path . "/" . $filename ."." ."log";
// Check if directory in uploads exists, if not create one
if ( ! file_exists( $path ) ) {
wp_mkdir_p( $path );
}
// Log timestamp
$today = "\n";
$today .= date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
$today .= "\n";
$fp = fopen($file, 'a+');
fwrite($fp, $today);
fwrite($fp, print_r($versions, TRUE));
fwrite($fp, print_r($product_numbers, TRUE));
fwrite($fp, print_r($cron_objects, TRUE));
fwrite($fp, print_r($order_rows, TRUE));
fclose($fp);
return $this->notification_details = $external_file;
}
public function get_admin_notifications ( $step, $error ) {
$domain = sanitize_text_field($_SERVER['HTTP_HOST']);
switch($step){
case 0:
$message = __( 'Please select the country and channel for which you would like to create a new product feed. The channel drop-down will populate with relevant country channels once you selected a country. Filling in a project name is mandatory.','woo-product-feed-pro' );
$message_type = "notice notice-info";
break;
case 1:
$message = __( 'Map your products or categories to the categories of your selected channel. For some channels adding their categorisation in the product feed is mandatory. Even when category mappings are not mandatory it is likely your products will get better visibility and higher conversions when mappings have been added.','woo-product-feed-pro' );
$message_type = "notice notice-info";
break;
case 2:
$message = __( 'Please drag and drop the attributes you want to be in your product feed from left to right.','woo-product-feed-pro' );
$message_type = "notice notice-info is-dismissible";
break;
case 3:
$message = __( 'Mapping your product categories to the channel categories will increase changes of getting all your products listed correctly, thus increase your conversion rates.','woo-product-feed-pro' );
$message_type = "notice notice-info is-dismissible";
break;
case 4:
$message = __( 'Create filter and rules so exactly the right products end up in your product feed. These filters and rules are only eligable for the current product feed you are configuring and will not be used for other feeds.<br/><br/><strong>Filters:</strong> Exclude or include products that meet certain conditions. [<strong><i><a href="https://adtribes.io/how-to-create-filters-for-your-product-feed/" target="_blank">Detailed information and filter examples</a></i></strong>] or [<strong><i><a href="https://adtribes.io/create-a-product-feed-for-one-specific-category/" target="_blank">Create a product feed for just 1 category</a></i></strong>]<br/><strong>Rules:</strong> Change attribute values based on other attribute values or conditions.[<strong><i><a href="https://adtribes.io/how-to-create-rules/" target="_blank">Detailed information about rules and some examples</a></i></strong>]<br/><br/>Order of execution: the filters and rules will be executed in the order of creation.','woo-product-feed-pro' );
$message_type = "notice notice-info";
break;
case 5:
$message = __( '<strong>Google Analytics UTM codes:</strong><br/>Adding Google Analytics UTM codes is not mandatory, it will however enable you to get detailed insights into how your products are performing in Google Analytics reporting and allow you to tweak and tune your campaign making it more profitable. We strongly advise you to add the Google Analytics tracking. When enabled the plugin will append the Google Analytics UTM parameters to your landingpage URL\'s.','woo-product-feed-pro' );
$message_type = "notice notice-info";
break;
case 6:
$message = __( 'Your product feed is now being created, please be patient. Your feed details will be displayed when generation of the product feed has been finished.','woo-product-feed-pro' );
$message_type = "notice notice-info is-dismissible";
break;
case 7:
$message = __( 'For the selected channel the attributes shown below are mandatory, please map them to your product attributes. We\'ve already pre-filled a lot of mappings so all you have to do is check those and map the ones that are left blank or add new ones by hitting the \'Add field mapping\' button.<br/><br/>[<strong><i><a href="https://adtribes.io/how-to-use-static-values-and-create-fake-content-for-your-product-feed/" target="_blank">Learn how to use static values</a></i></strong>]','woo-product-feed-pro' );
$message_type = "notice notice-info";
break;
case 8:
$message = __( 'Manage your projects, such as the mappings and filter rules, below. Hit the refresh icon for the project to run with its new settings or just to refresh the product feed. When a project is being processed it is not possible to make changes to its configuration.','woo-product-feed-pro' );
$message_type = "notice notice-info";
break;
case 9:
$message = __( 'You cannot create product feeds yet, please install WooCommerce first.','woo-product-feed-pro' );
$message_type = "notice notice-error";
break;
case 10:
$message = __( 'The graph shows the amount of products in this product feed, measured after every scheduled and/or manually triggered refresh.','woo-product-feed-pro' );
$message_type = "notice notice-info is-dismissible";
break;
case 11:
$message = __( 'You are running an old PHP version. This plugin might not work or be really slow. Please upgrade to PHP version 7.0 or newer.','woo-product-feed-pro' );
$message_type = "notice notice-error is-dismissible";
break;
case 12:
$message = __( 'We are sorry but it seems you have disabled your WP CRON. This plugin creates product feeds in batches and needs the WP CRON to be active for doing so. Please enable the WP CRON in your wp-config.php file and re-activate this plugin before creating a product feed.','woo-product-feed-pro' );
$message_type = "notice notice-error is-dismissible";
break;
case 13:
$message = __( 'We are sorry but it seems you are running an old version of WooCommerce. This plugin requires WooCommerce version 3.0 at least. Please upgrade to the latest version of WooCommerce before creating a product feed.','woo-product-feed-pro' );
$message_type = "notice notice-error is-dismissible";
break;
case 14:
$message = __( 'Add important attributes, such as Brand, GTIN, condition and many more to create a perfect Google Shopping feed or fix the WooCommerce structured data bug so less products get disapproved in Google\'s Merchant Center.','woo-product-feed-pro' );
$message_type = "notice notice-info";
break;
case 15:
$message = __( 'Manipulate your product data to improve the quality of your product feeds and online marketing campaigns. Manipulating your product data is an extremely powerfull feature. Check out an example we have created in our blog post: <b><u><a href="https://adtribes.io/feature-product-data-manipulation/" target="_blank">Manipulating product data</a></u></b>','woo-product-feed-pro' );
$message_type = "notice notice-info";
break;
case 16:
$message = __( 'Optimize the information in your Google Shopping feed in order to prevent notifications to show up in your Google Merchant Center and make the most of your Google Shopping campaigns.','woo-product-feed-pro' );
$message_type = "notice notice-info";
break;
}
$this->notification_details['message'] = $message;
$this->notification_details['message_type'] = $message_type;
return $this->notification_details;
}
}

View File

@@ -0,0 +1,25 @@
<?php
/**
* CLass that will return HTML for template configuration step
*/
class Construct_Admin_Pages {
private $page;
public $html;
public $channel;
public $inputname;
/**
* Returns html template
*/
function set_page( $new_page ) {
$file = dirname(dirname( __FILE__ )) . "/pages/admin/".$new_page.".php";
if (file_exists( $file )){
require $file;
}
}
function get_page() {
return $this->page;
}
}

View File

@@ -0,0 +1,690 @@
<?php
/**
* This class is called to: retrieve product attributes
* for populating the rules dropdowns and draggable boxes
*/
class WooSEA_Attributes {
public $attributes;
public $dropdown;
public $standard_attributes;
public function get_channel_countries(){
$channel_countries = array();
$channel_configs = get_option ('channel_statics');
foreach ($channel_configs as $key=>$val){
if (($key != "All countries") && ($key != "Custom Feed")){
array_push ($channel_countries, $key);
}
}
return $channel_countries;
}
public function get_channels($country){
$channels = array();
$channel_configs = get_option ('channel_statics');
// Lets get the generic channels
foreach ($channel_configs as $key=>$val){
if($key == "Custom Feed" || $key == "All countries"){
$channels = array_merge ($channels, $val);
}
}
// Than get the relevant country channels
foreach ($channel_configs as $key=>$val){
if(preg_match("/-$country/i", $key)){
$channels = array_merge($channels, $val);
} elseif ($country == "$key"){
$channels = array_merge($channels, $val);
}
}
return $channels;
}
private function get_dynamic_attributes(){
global $wpdb;
$list = array();
$no_taxonomies = array("portfolio_category","portfolio_skills","portfolio_tags","nav_menu","post_format","slide-page","element_category","template_category","portfolio_category","portfolio_skills","portfolio_tags","faq_category","slide-page","category","post_tag","nav_menu","link_category","post_format","product_type","product_visibility","product_cat","product_shipping_class","product_tag");
$taxonomies = get_taxonomies();
$diff_taxonomies = array_diff($taxonomies, $no_taxonomies);
# get custom taxonomy values for a product
foreach($diff_taxonomies as $tax_diff){
$taxonomy_details = get_taxonomy( $tax_diff );
foreach($taxonomy_details as $kk => $vv){
if($kk == "name"){
$pa_short = $vv;
}
if($kk == "labels"){
foreach($vv as $kw => $kv){
if($kw == "singular_name"){
$attr_name = $pa_short;
$attr_name_clean = ucfirst($kv);
}
}
}
}
$list["$attr_name"] = $attr_name_clean;
}
return $list;
}
private function get_custom_attributes() {
global $wpdb;
$list = array();
if ( ! function_exists( 'woosea_get_meta_keys_for_post_type' ) ) :
function woosea_get_meta_keys_for_post_type( $post_type, $sample_size = 'modified' ) {
$meta_keys = array();
$add_woosea_basic = get_option ('add_woosea_basic');
if($add_woosea_basic == "yes"){
$posts = get_posts( array( 'post_type' => $post_type, 'limit' => $sample_size ) );
} else {
$posts = get_posts( array( 'post_type' => $post_type, 'numberposts' => -1 ) );
}
foreach ( $posts as $post ) {
$post_meta_keys = get_post_custom_keys( $post->ID );
if(empty($post_meta_keys)){
$post_meta_keys = array();
}
$meta_keys = array_merge( $meta_keys, $post_meta_keys );
}
// Use array_unique to remove duplicate meta_keys that we received from all posts
// Use array_values to reset the index of the array
return array_values( array_unique( $meta_keys ) );
}
endif;
$post_type = "product";
$data = woosea_get_meta_keys_for_post_type($post_type);
if (count($data)) {
foreach ($data as $key => $value) {
if (!preg_match("/_product_attributes/i",$value)){
$value_display = str_replace("_", " ",$value);
$list["custom_attributes_" . $value] = ucfirst($value_display);
} else {
$data = @$wpdb->get_results(
$wpdb->prepare("
SELECT
meta.meta_id,
meta.meta_value AS type
FROM {$wpdb->prefix}postmeta AS meta,
{$wpdb->prefix}posts AS posts
WHERE meta.post_id = posts.id
AND posts.post_type LIKE '%s'
AND meta.meta_key='_product_attributes' AND meta.meta_value NOT LIKE \"%{}\"", array( '%product%' ))
);
if (count($data)) {
foreach ($data as $key => $value) {
$product_attr = unserialize($value->type);
if(!empty($product_attr)){
foreach ($product_attr as $key => $arr_value) {
$value_display = str_replace("_", " ",$arr_value['name']);
$list["custom_attributes_" . $key] = ucfirst($value_display);
}
}
}
}
}
}
return $list;
}
return false;
}
public function get_mapping_attributes_dropdown() {
$sitename = get_option('blogname');
$mapping_attributes = array(
"categories" => "Category",
"title" => "Product name",
);
/**
* Create dropdown with main attributes
*/
$dropdown = "<option></option>";
$dropdown .= "<optgroup label='Main attributes'><strong>Main attributes</strong>";
foreach ($mapping_attributes as $key=>$value) {
if ($key == "categories"){
$dropdown .= "<option value='$key' selected>" . $value . "</option>";
} else {
$dropdown .= "<option value='$key'>" . $value . "</option>";
}
}
$dropdown .="</optgroup>";
$other_attributes = array(
"all_products" => "Map all products",
);
$dropdown .= "<optgroup label='Other options'><strong>Other options</strong>";
foreach ($other_attributes as $key=>$value) {
$dropdown .= "<option value='$key'>" . $value . "</option>";
}
return $dropdown;
}
public function get_special_attributes_dropdown(){
/**
* Create dropdown with product attributes
*/
$dropdown = "<option></option>";
$custom_attributes = $this->get_custom_attributes();
if ( class_exists( 'All_in_One_SEO_Pack' ) ) {
$custom_attributes['custom_attributes__aioseop_title'] = "All in one seo pack title";
$custom_attributes['custom_attributes__aioseop_description'] = "All in one seo pack description";
}
if($custom_attributes){
$dropdown .= "<optgroup label='Custom attributes'><strong>Custom attributes</strong>";
foreach ($custom_attributes as $key => $value) {
if (strpos($value, 0, 1) !== "_") {
// Exclude total sales
if($key != "custom_attributes_total_sales"){
$value = str_replace("attribute","",$value);
$dropdown .= "<option value='$key'>" . ucfirst($value) . "</option>";
}
}
}
$dropdown .="</optgroup>";
}
return $dropdown;
}
public function get_special_attributes_clean(){
$custom_attributes = $this->get_custom_attributes();
return $custom_attributes;
}
public function get_product_attributes_dropdown() {
$sitename = get_option('blogname');
$attributes = array(
"id" => "Product Id",
"sku" => "SKU",
"sku_id" => "SKU_ID (Facebook)",
"parent_sku" => "SKU parent variable product",
"sku_item_group_id" => "SKU_ITEM_GROUP_ID (Facebook)",
"wc_post_id_product_id" => "Wc_post_id_product_id (Facebook)",
"title" => "Product name",
"title_slug" => "Product name slug",
"title_hyphen" => "Product name hyphen",
"mother_title" => "Product name parent product",
"mother_title_hyphen" => "Product name parent product hyphen",
"title_lc" => "Product name lowercase",
"title_lcw" => "Product name uppercase first characters",
"description" => "Product description",
"short_description" => "Product short description",
"raw_description" => "Unfiltered product description",
"raw_short_description" => "Unfiltered product short description",
"mother_description" => "Product description parent product",
"mother_short_description" => "Product short description parent product",
"price" => "Price",
"regular_price" => "Regular price",
"sale_price" => "Sale price",
"net_price" => "Price excl. VAT",
"net_price_rounded" => "Price excl. VAT rounded",
"net_regular_price" => "Regular price excl. VAT",
"net_regular_price_rounded" => "Regular price excl. VAT rounded",
"net_sale_price" => "Sale price excl. VAT",
"net_sale_price_rounded" => "Sale price excl. VAT rounded",
"price_forced" => "Price incl. VAT front end",
"regular_price_forced" => "Regular price incl. VAT front end",
"sale_price_forced" => "Sale price incl. VAT front end",
"sale_price_start_date" => "Sale start date",
"sale_price_end_date" => "Sale end date",
"sale_price_effective_date" => "Sale price effective date",
"rounded_price" => "Price rounded",
"rounded_regular_price" => "Regular price rounded",
"rounded_sale_price" => "Sale price rounded",
"system_price" => "System price",
"system_net_price" => "System price excl. VAT",
"system_net_sale_price" => "System sale price excl. VAT",
"system_net_regular_price" => "System regular price excl. VAT",
"system_regular_price" => "System regular price",
"system_sale_price" => "System sale price",
"vivino_price" => "Pinterest / TikTok / Vivino price",
"vivino_sale_price" => "Pinterest / TikTok / Vivino sale price",
"vivino_regular_price" => "Pinterest / TikTok / Vivino regular price",
"vivino_net_price" => "Pinterest / TikTok / Vivino price excl. VAT",
"vivino_net_regular_price" => "Pinterest / TikTok / Vivino regular price excl. VAT",
"vivino_net_sale_price" => "Pinterest / TikTok / Vivino sale price excl. VAT",
"non_geo_wcml_price" => "Non GEO WCML price",
"mm_min_price" => "Mix & Match minimum price",
"mm_min_regular_price" => "Mix & Match minimum regular price",
"mm_max_price" => "Mix & Match maximum price",
"mm_max_regular_price" => "Mix & Match maximum regular price",
"separator_price" => "Separator price",
"separator_regular_price" => "Separator regular price",
"separator_sale_price" => "Separator sale price",
"discount_percentage" => "Discount percentage",
"link" => "Link",
"link_no_tracking" => "Link without parameters",
"variable_link" => "Product variable link",
"add_to_cart_link" => "Add to cart link",
"cart_link" => "Cart link",
"product_creation_date" => "Product creation date",
"days_back_created" => "Product days back created",
"currency" => "Currency",
"categories" => "Category",
"raw_categories" => "Category (not used for mapping)",
"category_link" => "Category link",
"category_path" => "Category path",
"category_path_short" => "Category path short",
"category_path_skroutz" => "Category path Skroutz",
"one_category" => "Yoast / Rankmath primary category",
"nr_variations" => "Number of variations",
"nr_variations_stock" => "Number of variations on stock",
"yoast_gtin8" => "Yoast WooCommerce GTIN8",
"yoast_gtin12" => "Yoast WooCommerce GTIN12",
"yoast_gtin13" => "Yoast WooCommerce GTIN13",
"yoast_gtin14" => "Yoast WooCommerce GTIN14",
"yoast_isbn" => "Yoast WooCommerce ISBN",
"yoast_mpn" => "Yoast WooCommerce MPN",
"condition" => "Condition",
"purchase_note" => "Purchase note",
"availability" => "Availability",
"availability_date_plus1week" => "Availability date + 1 week",
"availability_date_plus2week" => "Availability date + 2 weeks",
"availability_date_plus3week" => "Availability date + 3 weeks",
"availability_date_plus4week" => "Availability date + 4 weeks",
"availability_date_plus5week" => "Availability date + 5 weeks",
"availability_date_plus6week" => "Availability date + 6 weeks",
"availability_date_plus7week" => "Availability date + 7 weeks",
"availability_date_plus8week" => "Availability date + 8 weeks",
"region_id" => "Region Id",
"stock_status" => "Stock Status WooCommerce",
"quantity" => "Quantity [Stock]",
"virtual" => "Virtual",
"downloadable" => "Downloadable",
"publication_date" => "Feed publication date and time",
"product_type" => "Product Type",
"content_type" => "Content Type",
"exclude_from_catalog" => "Excluded from catalog",
"exclude_from_search" => "Excluded from search",
"exclude_from_all" => "Excluded from all (hidden)",
"total_product_orders" => "Total product orders",
"tax_status" => "Tax status",
"tax_class" => "Tax class",
"vat" => "VAT",
"featured" => "Featured",
"item_group_id" => "Item group ID",
"weight" => "Weight",
"width" => "Width",
"height" => "Height",
"length" => "Length",
"shipping" => "Shipping",
"shipping_price" => "Shipping cost",
"lowest_shipping_costs" => "Lowest shipping costs",
"shipping_label" => "Shipping class slug",
"shipping_label_name" => "Shipping class name",
"visibility" => "Visibility",
"rating_total" => "Total rating",
"rating_average" => "Average rating",
);
$images = array(
"image" => "Main image",
"image_all" => "Main image simple and variations",
"feature_image" => "Featured image",
"image_1" => "Additional image 1",
"image_2" => "Additional image 2",
"image_3" => "Additional image 3",
"image_4" => "Additional image 4",
"image_5" => "Additional image 5",
"image_6" => "Additional image 6",
"image_7" => "Additional image 7",
"image_8" => "Additional image 8",
"image_9" => "Additional image 9",
"image_10" => "Additional image 10",
"non_local_image" => "Non local image",
"all_images" => "All images (comma separated)",
"all_gallery_images" => "All gallery images (comma separated)",
"all_images_kogan" => "All images Kogan (pipe separated)",
);
/**
* Create dropdown with main attributes
*/
$dropdown = "<option></option>";
$dropdown .= "<optgroup label='Main attributes'><strong>Main attributes</strong>";
foreach ($attributes as $key=>$value) {
$dropdown .= "<option value='$key'>" . $value . "</option>";
}
$dropdown .="</optgroup>";
/**
* Create dropdown with image attributes
*/
$dropdown .= "<optgroup label='Image attributes'><strong>Image attributes</strong>";
foreach ($images as $key=>$value) {
$dropdown .= "<option value='$key'>" . $value . "</option>";
}
$dropdown .="</optgroup>";
/**
* Create dropdown with dynamic attributes
*/
$dynamic_attributes = $this->get_dynamic_attributes();
if($dynamic_attributes){
$dropdown .= "<optgroup label='Dynamic attributes'><strong>Dynamic attributes</strong>";
foreach ($dynamic_attributes as $key => $value) {
// if (strpos($value, 0, 1) !== "_") {
$dropdown .= "<option value='$key'>" . ucfirst($value) . "</option>";
// }
}
$dropdown .="</optgroup>";
}
$dropdown .= "<optgroup label='Google category taxonomy'><strong>Google category taxonomy</strong>";
$dropdown .= "<option value='google_category'>Google category</option>";
$dropdown .="</optgroup>";
/**
* Create dropdown with custom attributes
*/
$custom_attributes = $this->get_custom_attributes();
if ( class_exists( 'All_in_One_SEO_Pack' ) ) {
$custom_attributes['custom_attributes__aioseop_title'] = "All in one seo pack title";
$custom_attributes['custom_attributes__aioseop_description'] = "All in one seo pack description";
}
if($custom_attributes){
$dropdown .= "<optgroup label='Custom field attributes'><strong>Custom field attributes</strong>";
foreach ($custom_attributes as $key => $value) {
if (!preg_match("/pyre|sbg|fusion/i",$value)){
$value = ltrim($value);
if (!empty($value)){
$dropdown .= "<option value='$key'>" . ucfirst($value) . "</option>";
}
}
}
$dropdown .="</optgroup>";
}
/**
* Add the product tag field
*/
$dropdown .= "<optgroup label='Other fields'><strong>Other fields</strong>";
$dropdown .= "<option value='product_tag'>Product tags</option>";
$dropdown .= "<option value='product_tag_space'>Product tags space</option>";
$dropdown .= "<option value='menu_order'>Menu order</option>";
$dropdown .= "<option value='reviews'>Reviews</option>";
$dropdown .= "<option value='review_rating'>Review rating</option>";
$dropdown .= "<option value='author'>Author</option>";
$dropdown .= "</optgroup>";
// Did the user checked extra attributes
if(get_option( 'woosea_extra_attributes' )){
$extra_attributes = get_option( 'woosea_extra_attributes' );
if($extra_attributes){
array_walk($extra_attributes, function(&$value, $key) { $value .= ' (Added Custom attribute)';});
$dropdown .= "<optgroup label='Added Custom Attributes'><strong>Added Custom Attributes</strong>";
foreach ($extra_attributes as $key => $value) {
// if (strpos($value, 0, 1) !== "_") {
$dropdown .= "<option value='$key'>" . ucfirst($value) . "</option>";
// }
}
$dropdown .="</optgroup>";
}
}
return $dropdown;
}
public function get_product_attributes() {
$sitename = get_option('blogname');
$attributes = array(
"id" => "Product Id",
"sku" => "SKU",
"sku_id" => "SKU_ID (Facebook)",
"parent_sku" => "SKU parent variable product",
"sku_item_group_id" => "SKU_ITEM_GROUP_ID (Facebook)",
"wc_post_id_product_id" => "Wc_post_id_product_id (Facebook)",
"title" => "Product name",
"title_slug" => "Product name slug",
"title_hyphen" => "Product name hyphen",
"mother_title" => "Product name parent product",
"mother_title_hyphen" => "Product name parent product hyphen",
"title_lc" => "Product name lowercase",
"title_lcw" => "Product name uppercase first characters",
"description" => "Product description",
"short_description" => "Product short description",
"raw_description" => "Unfiltered product description",
"raw_short_description" => "Unfiltered product short description",
"mother_description" => "Product description parent product",
"mother_short_description" => "Product short description parent product",
"link" => "Link",
"link_no_tracking" => "Link without parameters",
"variable_link" => "Product variable link",
"add_to_cart_link" => "Add to cart link",
"cart_link" => "Cart link",
"image" => "Main image",
"image_all" => "Main image simple and variations",
"feature_image" => "Feature image",
"non_local_image" => "Non local image",
"product_type" => "Product Type",
"content_type" => "Content Type",
"exclude_from_catalog" => "Excluded from catalog",
"exclude_from_search" => "Excluded from search",
"exclude_from_all" => "Excluded from all (hidden)",
"total_product_orders" => "Total product orders",
"featured" => "Featured",
"tax_status" => "Tax status",
"tax_class" => "Tax class",
"vat" => "VAT",
"currency" => "Currency",
"categories" => "Category",
"raw_categories" => "Category (not used for mapping)",
"google_category" => "Google category (for rules and filters only)",
"category_link" => "Category link",
"category_path" => "Category path",
"category_path_short" => "Category path short",
"category_path_skroutz" => "Category path Skroutz",
"one_category" => "Yoast / Rankmath primary category",
"nr_variations" => "Number of variations",
"nr_variations_stock" => "Number of variations on stock",
"yoast_gtin8" => "Yoast WooCommerce GTIN8",
"yoast_gtin12" => "Yoast WooCommerce GTIN12",
"yoast_gtin13" => "Yoast WooCommerce GTIN13",
"yoast_gtin14" => "Yoast WooCommerce GTIN14",
"yoast_isbn" => "Yoast WooCommerce ISBN",
"yoast_mpn" => "Yoast WooCommerce MPN",
"condition" => "Condition",
"purchase_note" => "Purchase note",
"availability" => "Availability",
"availability_date_plus1week" => "Availability date + 1 week",
"availability_date_plus2week" => "Availability date + 2 weeks",
"availability_date_plus3week" => "Availability date + 3 weeks",
"availability_date_plus4week" => "Availability date + 4 weeks",
"availability_date_plus5week" => "Availability date + 5 weeks",
"region_id" => "Region Id",
"stock_status" => "Stock Status WooCommerce",
"quantity" => "Quantity [Stock]",
"virtual" => "Virtual",
"downloadable" => "Downloadable",
"publication_date" => "Feed publication date and time",
"price" => "Price",
"regular_price" => "Regular price",
"sale_price" => "Sale price",
"net_price" => "Price excl. VAT",
"net_price_rounded" => "Price excl. VAT rounded",
"net_regular_price" => "Regular price excl. VAT",
"net_regular_price_rounded" => "Regular price excl. VAT rounded",
"net_sale_price" => "Sale price excl. VAT",
"net_sale_price_rounded" => "Sale price excl. VAT rounded",
"price_forced" => "Price incl. VAT front end",
"regular_price_forced" => "Regular price incl. VAT front end",
"sale_price_forced" => "Sale price incl. VAT front end",
"sale_price_start_date" => "Sale start date",
"sale_price_end_date" => "Sale end date",
"sale_price_effective_date" => "Sale price effective date",
"rounded_price" => "Price rounded",
"rounded_regular_price" => "Regular price rounded",
"rounded_sale_price" => "Sale price rounded",
"system_price" => "System price",
"system_net_price" => "System price excl. VAT",
"system_net_sale_price" => "System sale price excl. VAT",
"system_net_regular_price" => "System regular price excl. VAT",
"system_regular_price" => "System regular price",
"system_sale_price" => "System sale price",
"vivino_price" => "Pinterest / TikTok / Vivino price",
"vivino_sale_price" => "Pinterest / TikTok / Vivino sale price",
"vivino_regular_price" => "Pinterest / TikTok / Vivino regular price",
"vivino_net_price" => "Pinterest / TikTok / Vivino price excl. VAT",
"vivino_net_regular_price" => "Pinterest / TikTok / Vivino regular price excl. VAT",
"vivino_net_sale_price" => "Pinterest / TikTok / Vivino sale price excl. VAT",
"non_geo_wcml_price" => "Non GEO WCML price",
"mm_min_price" => "Mix & Match minimum price",
"mm_min_regular_price" => "Mix & Match minimum regular price",
"mm_max_price" => "Mix & Match maximum price",
"mm_max_regular_price" => "Mix & Match maximum regular price",
"separator_price" => "Separator price",
"separator_regular_price" => "Separator regular price",
"separator_sale_price" => "Separator sale price",
"discount_percentage" => "Discount percentage",
"item_group_id" => "Item group ID",
"weight" => "Weight",
"width" => "Width",
"height" => "Height",
"length" => "Length",
"shipping" => "Shipping",
"shipping_price" => "Shipping cost",
"lowest_shipping_costs" => "Lowest shipping costs",
"shipping_label" => "Shipping class slug",
"shipping_label_name" => "Shipping class name",
"visibility" => "Visibility",
"rating_total" => "Total rating",
"rating_average" => "Average rating",
"amount_sales" => "Amount of sales",
"product_creation_date" => "Product creation date",
"days_back_created" => "Product days back created",
);
$images = array(
"image" => "Main image",
"image_all" => "Main image simple and variations",
"feature_image" => "Featured image",
"image_1" => "Additional image 1",
"image_2" => "Additional image 2",
"image_3" => "Additional image 3",
"image_4" => "Additional image 4",
"image_5" => "Additional image 5",
"image_6" => "Additional image 6",
"image_7" => "Additional image 7",
"image_8" => "Additional image 8",
"image_9" => "Additional image 9",
"image_10" => "Additional image 10",
"non_local_image" => "Non local image",
"all_images" => "All images (comma separated)",
"all_gallery_images" => "All gallery images (comma separated)",
"all_images_kogan" => "All images Kogan (pipe separated)",
);
$attributes = array_merge($attributes, $images);
$static = array(
"installment" => "Installment",
"static_value" => "Static value",
"calculated" => "Plugin calculation",
"product_tag" => "Product tags",
"product_tag_space" => "Product tags space",
"product_detail 1" => "Product detail 1",
"product_detail 2" => "Product detail 2",
"product_detail 3" => "Product detail 3",
"product_detail 4" => "Product detail 4",
"product_detail 5" => "Product detail 5",
"product_detail 6" => "Product detail 6",
"product_detail 7" => "Product detail 7",
"product_detail 8" => "Product detail 8",
"product_detail 9" => "Product detail 9",
"product_detail 10" => "Product detail 10",
"product_highlight" => "Product highlight",
"consumer_notice_1" => "Consumer notice 1",
"consumer_notice_2" => "Consumer notice 2",
"consumer_notice_3" => "Consumer notice 3",
"menu_order" => "Menu order",
"reviews" => "Reviews",
"review_rating" => "Review rating",
"author" => "Author",
);
$attributes = array_merge($attributes, $static);
if(is_array($this->get_dynamic_attributes())){
$dynamic_attributes = $this->get_dynamic_attributes();
array_walk($dynamic_attributes, function(&$value, $key) { $value .= ' (Dynamic attribute)';});
$attributes = array_merge($attributes, $dynamic_attributes);
}
$custom_attributes = $this->get_custom_attributes();
if ( class_exists( 'All_in_One_SEO_Pack' ) ) {
$custom_attributes['custom_attributes__aioseop_title'] = "All in one seo pack title";
$custom_attributes['custom_attributes__aioseop_description'] = "All in one seo pack description";
}
array_walk($custom_attributes, function(&$value, $key) { $value .= ' (Custom attribute)';});
$attributes = array_merge($attributes, $custom_attributes);
$attributes = array_merge($attributes, $static);
// Did the user checked extra attributes
if(get_option( 'woosea_extra_attributes' )){
$extra_attributes = get_option( 'woosea_extra_attributes' );
array_walk($extra_attributes, function(&$value, $key) { $value .= ' (Added Custom attribute)';});
$attributes = array_merge($attributes, $extra_attributes);
}
return $attributes;
}
public static function get_standard_attributes($project) {
$sitename = get_option('blogname');
$standard_attributes = array(
"id" => "Product Id",
"title" => "Product name",
"categories" => "Category",
);
if ($project['taxonomy'] == 'google_shopping'){
$standard_attributes["google_product_category"] = "Google product category";
} elseif ($project['taxonomy'] != 'none'){
$standard_attributes["$project[name]_product_category"] = "$project[name] category";
}
return $standard_attributes;
}
}

View File

@@ -0,0 +1,250 @@
<?php
class WooSEA_Caching {
/**
* Exclude Feed URL from being cached by LiteSpeed
*
* @return false
*/
function litespeed_cache() {
if ( ! class_exists( 'LiteSpeed\Core' ) || ! defined( 'LSCWP_DIR' ) ) {
return false;
}
$litespeed_ex_paths = maybe_unserialize( get_option( 'litespeed.conf.cdn-exc' ) );
if ( $litespeed_ex_paths && is_array( $litespeed_ex_paths ) && ! in_array( '/wp-content/uploads/woo-product-feed-pro', $litespeed_ex_paths ) ) {
$litespeed_ex_paths = array_merge(
$litespeed_ex_paths,
array( '/wp-content/uploads/woo-product-feed-pro' )
);
update_option( 'litespeed.conf.cdn-exc', $litespeed_ex_paths );
}
return false;
}
/**
* Exclude Feed URL from being cached by WP Fastest
*
* @return false
*/
public function wp_fastest_cache() {
if ( ! class_exists( 'WpFastestCache' ) ) {
return false;
}
$wp_fastest_cache_ex_paths = json_decode( get_option( 'WpFastestCacheExclude' ), false );
if ( $wp_fastest_cache_ex_paths && is_array( $wp_fastest_cache_ex_paths ) ) {
$feed_path_exist = false;
foreach ( $wp_fastest_cache_ex_paths as $path ) {
if ( 'woo-product-feed-pro' === $path->content ) {
$feed_path_exist = true;
break;
}
}
if ( ! $feed_path_exist ) {
$new_rule = new stdClass();
$new_rule->prefix = "contain";
$new_rule->content = 'woo-product-feed-pro';
$new_rule->type = "page";
$wp_fastest_cache_ex_paths = array_merge(
$wp_fastest_cache_ex_paths,
[ $new_rule ]
);
update_option( 'WpFastestCacheExclude', wp_json_encode( $wp_fastest_cache_ex_paths ) );
}
} elseif ( empty( $wp_fastest_cache_ex_paths ) ) {
$wp_fastest_cache_ex_paths = [];
$new_rule = new stdClass();
$new_rule->prefix = "contain";
$new_rule->content = 'woo-product-feed-pro';
$new_rule->type = "page";
$wp_fastest_cache_ex_paths = array_merge(
$wp_fastest_cache_ex_paths,
[ $new_rule ]
);
update_option( 'WpFastestCacheExclude', wp_json_encode( $wp_fastest_cache_ex_paths ) );
}
return false;
}
/**
* Exclude Feed URL from being cached by WP Super
*
* @return false
*/
public function wp_super_cache() {
if ( ! function_exists( 'wpsc_init' ) ) {
return false;
}
$wp_super_ex_paths = get_option( 'ossdl_off_exclude' );
if ( $wp_super_ex_paths && strpos( $wp_super_ex_paths, 'woo-product-feed-pro' ) === false ) {
$wp_super_ex_paths = explode( ',', $wp_super_ex_paths );
$wp_super_ex_paths = array_merge( $wp_super_ex_paths, [ 'woo-product-feed-pro' ] );
update_option( 'ossdl_off_exclude', implode( ',', $wp_super_ex_paths ) );
}
return false;
}
/**
* Exclude Feed URL from being cached by BREEZE
*
* @return false
*/
public function breeze_cache() {
if ( ! class_exists( 'Breeze_Admin' ) ) {
return false;
}
$breeze_settings = maybe_unserialize( get_option( 'breeze_cdn_integration' ) );
if ( is_array( $breeze_settings ) ) {
$woo_product_feed_pro_files = [ '.xml', '.csv', '.tsv', '.txt', '.xls' ];
$woo_product_feed_pro_files = array_unique( array_merge( $woo_product_feed_pro_files, $breeze_settings['cdn-exclude-content'] ) );
$breeze_settings['cdn-exclude-content'] = $woo_product_feed_pro_files;
update_option( 'breeze_cdn_integration', $breeze_settings );
}
return false;
}
/**
* Exclude Feed URL from being cached by WP Optimize
*
* @return false
*/
public function wp_optimize_cache() {
if ( ! class_exists( 'WP_Optimize' ) ) {
return false;
}
$wp_optimize_ex_paths = maybe_unserialize( get_option( 'wpo_cache_config' ) );
// If page Caching enabled
if ( isset( $wp_optimize_ex_paths['enable_page_caching'] ) && $wp_optimize_ex_paths['enable_page_caching'] && is_array( $wp_optimize_ex_paths ) && ! in_array( '/wp-content/uploads/woo-product-feed-pro', $wp_optimize_ex_paths['cache_exception_urls'], true ) ) {
$woo_feed_ex_path['cache_exception_urls'] = [ '/wp-content/uploads/woo-product-feed-pro' ];
$wp_optimize_ex_paths = array_merge_recursive(
$wp_optimize_ex_paths,
$woo_feed_ex_path
);
update_option( 'wpo_cache_config', $wp_optimize_ex_paths );
}
return false;
}
/**
* Exclude Feed URL from being cached by Cache Enabler
*
* @return false
*/
public function cache_enabler_cache() {
if ( ! class_exists( 'Cache_Enabler' ) ) {
return false;
}
$cache_enabler_ex_paths = maybe_unserialize( get_option( 'cache_enabler' ) );
if ( isset( $cache_enabler_ex_paths['excluded_page_paths'] ) && empty( $cache_enabler_ex_paths['excluded_page_paths'] ) ) {
$cache_enabler_ex_paths['excluded_page_paths'] = '/wp-content/uploads/woo-product-feed-pro/';
update_option( 'cache_enabler', $cache_enabler_ex_paths );
}
return false;
}
/**
* Exclude Feed URL from being cached by Swift Performance
*
* @return false
*/
public function swift_performance_cache() {
if ( ! class_exists( 'Swift_Performance_Lite' ) ) {
return false;
}
$swift_perform_ex_paths = maybe_unserialize( get_option( 'swift_performance_options' ) );
if ( $swift_perform_ex_paths && isset( $swift_perform_ex_paths['exclude-strings'] ) ) {
$exclude_strings = $swift_perform_ex_paths['exclude-strings'];
if ( is_array( $exclude_strings ) && ! in_array( '/wp-content/uploads/woo-product-feed-pro', $exclude_strings, true ) ) {
$woo_feed_ex_path['exclude-strings'] = [ '/wp-content/uploads/woo-product-feed-pro' ];
$swift_perform_ex_paths = array_merge_recursive(
$swift_perform_ex_paths,
$woo_feed_ex_path
);
} else {
$swift_perform_ex_paths['exclude-strings'] = [ '/wp-content/uploads/woo-product-feed-pro' ];
}
update_option( 'swift_performance_options', $swift_perform_ex_paths );
} elseif ( empty( $swift_perform_ex_paths ) ) {
$swift_perform_ex_paths['exclude-strings'] = [ '/wp-content/uploads/woo-product-feed-pro' ];
update_option( 'swift_performance_options', $swift_perform_ex_paths );
}
return false;
}
/**
* Exclude Feed URL from being cached by Comet Cache
*
* @return false
*/
public function comet_cache() {
if ( ! is_plugin_active( 'comet-cache/comet-cache.php' ) ) {
return false;
}
$comet_cache_settings = maybe_unserialize( get_option( 'comet_cache_options' ) );
if ( $comet_cache_settings && isset( $comet_cache_settings['exclude_uris'] ) ) {
$exclude_uris = $comet_cache_settings['exclude_uris'];
if ( strpos( $exclude_uris, '/wp-content/uploads/woo-product-feed-pro' ) === false ) {
$exclude_uris .= "\n/wp-content/uploads/woo-product-feed-pro";
$comet_cache_settings['exclude_uris'] = $exclude_uris;
update_option( 'comet_cache_options', $comet_cache_settings );
}
}
return false;
}
/**
* Exclude Feed URL from being cached by Hyper Caching
*
* @return false
*/
public function hyper_cache() {
if ( ! class_exists( 'HyperCache' ) ) {
return false;
}
$hyper_cache_settings = maybe_unserialize( get_option( 'hyper-cache' ) );
if ( $hyper_cache_settings && isset( $hyper_cache_settings['reject_uris'] ) ) {
$exclude_strings = $hyper_cache_settings['reject_uris'];
if ( is_array( $exclude_strings ) && ! in_array( '/wp-content/uploads/woo-product-feed-pro', $exclude_strings, true ) ) {
$woo_feed_ex_path['reject_uris'] = [ '/wp-content/uploads/woo-product-feed-pro' ];
$woo_feed_ex_path['reject_uris_enabled'] = 1;
$hyper_cache_settings = array_merge_recursive(
$hyper_cache_settings,
$woo_feed_ex_path
);
}
update_option( 'hyper-cache', $hyper_cache_settings );
}
return false;
}
}

View File

@@ -0,0 +1,17 @@
<?php
/**
* This class sets the wp_cron with intervals
*/
class WooSEA_Cron {
/**
* Function for setting a cron job for regular creation of the feed
* Will create a new event when an old one exists, which will be deleted first
*/
function woosea_cron_scheduling ( $scheduling ) {
if (!wp_next_scheduled( 'woosea_cron_hook' ) ) {
wp_schedule_event ( time(), 'hourly', 'woosea_cron_hook');
} else {
wp_schedule_event ( time(), 'hourly', 'woosea_cron_hook');
}
}
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* Clean up your mess like your mom always told you to do :-)
* This class is called upon plugin deactivation and cleans up cron and variables
* We do NOT delete previously configured feeds and it events as one would like to re-use it when the plugin gets activated again
*/
class WooSEA_Deactivate_Cleanup {
public static function deactivate_cleanup() {
wp_clear_scheduled_hook('woosea_cron_hook');
wp_clear_scheduled_hook( 'woosea_check_license' );
delete_option('woosea_getelite_notification');
delete_option('woosea_license_notification_closed'); // This one is new
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,29 @@
<?php
/**
* This class sets Google Remarketing functions
*/
class WooSEA_Google_Remarketing {
public static function woosea_google_remarketing_pagetype ( ) {
$ecomm_pagetype = "other"; // set a default
if (in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
if(is_product()){
$ecomm_pagetype = "product";
} elseif (is_cart()){
$ecomm_pagetype = "cart";
} elseif (is_checkout()){
$ecomm_pagetype = "cart";
} elseif (is_product_category()){
$ecomm_pagetype = "category";
} elseif (is_front_page()){
$ecomm_pagetype = "home";
} elseif (is_search()){
$ecomm_pagetype = "searchresults";
} else {
$ecomm_pagetype = "other";
}
}
return $ecomm_pagetype;
}
}

View File

@@ -0,0 +1,16 @@
<?php
/**
* Clean up your mess like your mom always told you to do :-)
* This class is called upon plugin uninstalling and cleans up cron hooks and wp_options
* When the plugin is removed completely the configured projects will be losed and deleted
*/
class WooSEA_Uninstall_Cleanup {
public static function uninstall_cleanup() {
wp_clear_scheduled_hook( 'woosea_cron_hook' );
wp_clear_scheduled_hook( 'woosea_check_license' );
// delete_option( 'channel_statics' );
// delete_option( 'cron_projects' );
// delete_option('woosea_getelite_notification');
// delete_option('woosea_license_notification_closed'); // This one is new
}
}

View File

@@ -0,0 +1,284 @@
<?php
/**
* This class is called to:
* - retrieve channel settings and configuration, function: get_channel_data
* - update project configuration during steps, function: update_project
* - add project configuration to cron option and clear current project config, function: add_project_cron
*/
class WooSEA_Update_Project {
public $channel_data;
public $channel_update;
private $project_config;
private $project_hash;
/**
* Get generic channel information
*/
public static function get_channel_data($channel_hash) {
$channel_statics = get_option( 'channel_statics' );
foreach ($channel_statics as $key=>$val){
foreach ($val as $k=>$v){
if ($channel_hash === $v['channel_hash']){
$channel_data = $v;
}
}
}
return $channel_data;
}
/**
* Get project configuration
*/
public static function get_project_data($project_hash) {
if(get_option( 'cron_projects' )){
$cron_projects = get_option( 'cron_projects' );
$project_config = array();
foreach ($cron_projects as $key=>$val){
//if(!empty($val)){
if(!empty($val['project_hash'])){
if($val['project_hash'] === $project_hash){
$project_config = $val;
}
}
}
return $project_config;
}
}
/**
* Update individual project configuration
*/
public static function update_project_data($project) {
if(get_option( 'cron_projects' )){
$cron_projects = get_option( 'cron_projects' );
foreach ($cron_projects as $key=>$val){
if(!empty($val)){
if($val['project_hash'] === $project['project_hash']){
$cron_projects[$key] = $project;
update_option('cron_projects', $cron_projects, 'no');
}
}
}
}
}
public static function update_project($project_data){
check_ajax_referer('woosea_ajax_nonce', 'security');
if(!array_key_exists('project_hash', $project_data)){
$upload_dir = wp_upload_dir();
$external_base = $upload_dir['baseurl'];
$external_path = $external_base . "/woo-product-feed-pro/" . $project_data['fileformat'];
$channel_statics = get_option( 'channel_statics' );
foreach ($channel_statics as $key=>$val){
foreach ($val as $k=>$v){
if ($project_data['channel_hash'] == $v['channel_hash']){
$project_fill = array_merge($v, $project_data);
// New code to create the project hash so dependency on openSSL is removed
$keyspace = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$pieces = [];
$length = 32;
$max = mb_strlen($keyspace, '8bit') - 1;
for ($i = 0; $i < $length; ++$i) {
$pieces []= $keyspace[random_int(0, $max)];
}
$project_fill['project_hash'] = implode('', $pieces);
$project_fill['filename'] = $project_fill['project_hash'];
$project_fill['external_file'] = $external_path . "/" . sanitize_file_name($project_fill['filename']) . "." . $project_fill['fileformat'];
$project_fill['query_log'] = $external_base . "/woo-product-feed-pro/logs/query.log";
$project_fill['query_output_log'] = $external_base . "/woo-product-feed-pro/logs/query_output.log";
}
}
}
update_option( 'channel_project',$project_fill,'' );
} else {
$project_temp = get_option( 'channel_project' );
if(is_array($project_temp)){
$project_fill = array_merge($project_temp, $project_data);
} else {
$project_fill = $project_data;
}
update_option( 'channel_project',$project_fill,'' );
}
return $project_fill;
}
/**
* This function takes care of updating project settings whenever an user updates a project
*/
public static function reconfigure_project($project_data){
$project_hash = $project_data['project_hash'];
if(get_option( 'cron_projects' )){
$cron_projects = get_option( 'cron_projects' );
foreach ($cron_projects as $key=>$val){
if(!empty($val)){
foreach ($val as $k=>$v){
if(!is_array($v)){
if (($v === $project_hash) AND ($k === "project_hash")){
$project_config = $val;
$remove_key = $key;
}
}
}
}
}
}
/**
* Update project hash with new values
*/
foreach ($project_data as $key=>$val){
$project_config[$key] = $val;
}
/**
* Update some project configs
*/
$project_config['last_updated'] = date("d M Y H:i");
$count_products = wp_count_posts('product', 'product_variation');
$count_variation = wp_count_posts('product_variation');
$count_single = wp_count_posts('product');
$published_single = $count_single->publish;
$published_variation = $count_variation->publish;
$published_products = $published_single+$published_variation;
$project_config['nr_products'] = $published_products;
$project_config['nr_products_processed'] = 0;
/**
* We might have to change the file extension
*/
$upload_dir = wp_upload_dir();
$external_base = $upload_dir['baseurl'];
$external_path = $external_base . "/woo-product-feed-pro/" . $project_config['fileformat'];
$project_config['external_file'] = $external_path . "/" . sanitize_file_name($project_config['filename']) . "." . $project_config['fileformat'];
if((array_key_exists('woosea_page', $project_data)) AND ($project_data['woosea_page'] == "analytics")){
/**
* Did the Google Analytics UTM code part got disabled?
*/
if(!array_key_exists('utm_on', $project_data)) {
unset($project_config['utm_on']);
}
/**
* Did the conversion tracking got disabled?
*/
if(!array_key_exists('adtribes_conversion', $project_data)) {
unset($project_config['adtribes_conversion']);
}
}
/**
* Did the product variations support got disabled?
*/
if(array_key_exists('fileformat', $project_data)){
if(!array_key_exists('product_variations', $project_data)) {
unset($project_config['product_variations']);
unset($project_config['productname_append']);
}
}
/**
* Did the default product variations got disabled?
*/
if(array_key_exists('fileformat', $project_data)){
if(!array_key_exists('default_variations', $project_data)) {
unset($project_config['default_variations']);
}
}
/**
* Did the lowest price product variations got disabled?
*/
if(array_key_exists('fileformat', $project_data)){
if(!array_key_exists('lowest_price_variations', $project_data)) {
unset($project_config['lowest_price_variations']);
}
}
/**
* Did the option to only update the feed when products changed got disabled?
*/
if(array_key_exists('fileformat', $project_data)){
if(!array_key_exists('products_changed', $project_data)) {
unset($project_config['products_changed']);
}
}
/**
* Did the option to preview the feed got disabled?
*/
if(array_key_exists('fileformat', $project_data)){
if(!array_key_exists('preview_feed', $project_data)) {
unset($project_config['preview_feed']);
}
}
/**
* Did all the filters got removed
*/
if((array_key_exists('woosea_page', $project_data)) AND ($project_data['woosea_page'] == "filters_rules")){
if(!array_key_exists('rules', $project_data)) {
unset($project_config['rules']);
}
}
/**
* Did all the rules got removed
*/
if((array_key_exists('woosea_page', $project_data)) AND ($project_data['woosea_page'] == "filters_rules")){
if(!array_key_exists('rules2', $project_data)) {
unset($project_config['rules2']);
}
}
/**
* Did all the field manipulations got removed
*/
if((array_key_exists('woosea_page', $project_data)) AND ($project_data['woosea_page'] == "field_manipulation")){
if(!array_key_exists('field_manipulation', $project_data)) {
unset($project_config['field_manipulation']);
}
}
/**
* Update cron with new project settings
*/
$add_to_cron = WooSEA_Update_Project::add_project_cron($project_config, $remove_key);
return $project_config;
}
/**
* This function add's a project configuration to the list of projects needed for the cron
* it also delete's the current project configuration from the channel_project option for a next project
*/
public static function add_project_cron($project_data, $key){
if(get_option( 'cron_projects' )){
$cron_projects = get_option( 'cron_projects' );
if(is_int($key)){
$cron_projects[$key] = $project_data;
} else {
array_push($cron_projects, $project_data);
}
update_option( 'cron_projects', $cron_projects);
} else {
$cron_projects = array (); // Create a new multidimensional array for the cron projects
array_push($cron_projects, $project_data);
update_option( 'cron_projects', $cron_projects);
}
// Clear channel_project option
delete_option( 'channel_project' );
}
}

View File

@@ -0,0 +1,5 @@
<?php
/**
* Nothing to see here
*/
?>

View File

@@ -0,0 +1,5 @@
<?php
/**
* Nothing to see here
*/
?>

View File

@@ -0,0 +1,642 @@
/*! jQuery UI - v1.12.0 - 2016-07-08
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed MIT */
/* Icons
----------------------------------*/
.ui-icon {
display: inline-block;
vertical-align: middle;
margin-top: -.25em;
position: relative;
text-indent: -99999px;
overflow: hidden;
background-repeat: no-repeat;
}
.ui-widget-icon-block {
left: 50%;
margin-left: -8px;
display: block;
}
.ui-autocomplete {
position: absolute;
top: 0;
left: 0;
cursor: default;
}
/* icon support */
.ui-menu-icons {
position: relative;
}
.ui-menu-icons .ui-menu-item-wrapper {
padding-left: 2em;
}
/* left-aligned */
.ui-menu .ui-icon {
position: absolute;
top: 0;
bottom: 0;
left: .2em;
margin: auto 0;
}
/* right-aligned */
.ui-menu .ui-menu-icon {
left: auto;
right: 0;
}
.ui-button {
padding: .4em 1em;
display: inline-block;
position: relative;
line-height: normal;
margin-right: .1em;
cursor: pointer;
vertical-align: middle;
text-align: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* Support: IE <= 11 */
overflow: visible;
}
.ui-button,
.ui-button:link,
.ui-button:visited,
.ui-button:hover,
.ui-button:active {
text-decoration: none;
}
/* to make room for the icon, a width needs to be set here */
.ui-button-icon-only {
width: 2em;
box-sizing: border-box;
text-indent: -9999px;
white-space: nowrap;
}
/* no icon support for input elements */
input.ui-button.ui-button-icon-only {
text-indent: 0;
}
/* button icon element(s) */
.ui-button-icon-only .ui-icon {
position: absolute;
top: 50%;
left: 50%;
margin-top: -8px;
margin-left: -8px;
}
.ui-button.ui-icon-notext .ui-icon {
padding: 0;
width: 2.1em;
height: 2.1em;
text-indent: -9999px;
white-space: nowrap;
}
input.ui-button.ui-icon-notext .ui-icon {
width: auto;
height: auto;
text-indent: 0;
white-space: normal;
padding: .4em 1em;
}
/* workarounds */
/* Support: Firefox 5 - 40 */
input.ui-button::-moz-focus-inner,
button.ui-button::-moz-focus-inner {
border: 0;
padding: 0;
}
.ui-controlgroup {
vertical-align: middle;
display: inline-block;
}
.ui-controlgroup > .ui-controlgroup-item {
float: left;
margin-left: 0;
margin-right: 0;
}
.ui-controlgroup > .ui-controlgroup-item:focus,
.ui-controlgroup > .ui-controlgroup-item.ui-visual-focus {
z-index: 9999;
}
.ui-controlgroup-vertical > .ui-controlgroup-item {
display: block;
float: none;
width: 100%;
margin-top: 0;
margin-bottom: 0;
text-align: left;
}
.ui-controlgroup-vertical .ui-controlgroup-item {
box-sizing: border-box;
}
.ui-controlgroup .ui-controlgroup-label {
padding: .4em 1em;
}
.ui-controlgroup .ui-controlgroup-label span {
font-size: 80%;
}
.ui-controlgroup-horizontal .ui-controlgroup-label + .ui-controlgroup-item {
border-left: none;
}
.ui-controlgroup-vertical .ui-controlgroup-label + .ui-controlgroup-item {
border-top: none;
}
.ui-controlgroup-horizontal .ui-controlgroup-label.ui-widget-content {
border-right: none;
}
.ui-controlgroup-vertical .ui-controlgroup-label.ui-widget-content {
border-bottom: none;
}
.ui-checkboxradio-label .ui-icon-background {
box-shadow: inset 1px 1px 1px #ccc;
border-radius: .12em;
border: none;
}
.ui-checkboxradio-radio-label .ui-icon-background {
width: 16px;
height: 16px;
border-radius: 1em;
overflow: visible;
border: none;
}
.ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,
.ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon {
background-image: none;
width: 8px;
height: 8px;
border-width: 4px;
border-style: solid;
}
.ui-checkboxradio-disabled {
pointer-events: none;
}
/* Icons */
.ui-datepicker .ui-icon {
display: block;
text-indent: -99999px;
overflow: hidden;
background-repeat: no-repeat;
left: .5em;
top: .3em;
}
.ui-dialog {
position: absolute;
top: 0;
left: 0;
padding: .2em;
outline: 0;
z-index: 9999;
}
.ui-dialog .ui-dialog-titlebar {
padding: .4em 1em;
position: relative;
}
.ui-dialog .ui-dialog-title {
float: left;
margin: .1em 0;
white-space: nowrap;
width: 90%;
overflow: hidden;
text-overflow: ellipsis;
}
.ui-dialog .ui-dialog-titlebar-close {
position: absolute;
right: .3em;
top: 50%;
width: 20px;
margin: -10px 0 0 0;
padding: 1px;
height: 20px;
}
.ui-dialog .ui-dialog-content {
position: relative;
border: 0;
padding: .5em 1em;
background: white;
overflow: auto;
}
.ui-dialog .ui-dialog-buttonpane {
text-align: left;
border-width: 1px 0 0 0;
background-image: none;
margin-top: .5em;
padding: .3em 1em .5em .4em;
z-index: 9999;
}
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
float: right;
}
.ui-dialog .ui-dialog-buttonpane button {
margin: .5em .4em .5em 0;
cursor: pointer;
}
.ui-dialog .ui-resizable-n {
height: 2px;
top: 0;
}
.ui-dialog .ui-resizable-e {
width: 2px;
right: 0;
}
.ui-dialog .ui-resizable-s {
height: 2px;
bottom: 0;
}
.ui-dialog .ui-resizable-w {
width: 2px;
left: 0;
}
.ui-dialog .ui-resizable-se,
.ui-dialog .ui-resizable-sw,
.ui-dialog .ui-resizable-ne,
.ui-dialog .ui-resizable-nw {
width: 7px;
height: 7px;
}
.ui-dialog .ui-resizable-se {
right: 0;
bottom: 0;
}
.ui-dialog .ui-resizable-sw {
left: 0;
bottom: 0;
}
.ui-dialog .ui-resizable-ne {
right: 0;
top: 0;
}
.ui-dialog .ui-resizable-nw {
left: 0;
top: 0;
}
/* Interaction states
----------------------------------*/
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
/* We use html here because we need a greater specificity to make sure disabled
works properly when clicked or hovered */
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
border: 1px solid #c5c5c5;
// background: #f6f6f6;
font-weight: normal;
color: #454545;
}
.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited,
a.ui-button,
a:link.ui-button,
a:visited.ui-button,
.ui-button {
color: #454545;
text-decoration: none;
}
.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus,
.ui-button:hover,
.ui-button:focus {
border: 1px solid #cccccc;
background: #ededed;
font-weight: normal;
color: #2b2b2b;
}
.ui-state-hover a,
.ui-state-hover a:hover,
.ui-state-hover a:link,
.ui-state-hover a:visited,
.ui-state-focus a,
.ui-state-focus a:hover,
.ui-state-focus a:link,
.ui-state-focus a:visited,
a.ui-button:hover,
a.ui-button:focus {
color: #2b2b2b;
text-decoration: none;
}
.ui-visual-focus {
box-shadow: 0 0 3px 1px rgb(94, 158, 214);
}
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
border: 1px solid #003eff;
background: #007fff;
font-weight: normal;
color: #ffffff;
}
.ui-icon-background,
.ui-state-active .ui-icon-background {
border: #003eff;
background-color: #ffffff;
}
.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
color: #ffffff;
text-decoration: none;
}
/* Interaction Cues
----------------------------------*/
.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
border: 1px solid #dad55e;
background: #fffa90;
color: #777620;
}
.ui-state-checked {
border: 1px solid #dad55e;
background: #fffa90;
}
.ui-state-highlight a,
.ui-widget-content .ui-state-highlight a,
.ui-widget-header .ui-state-highlight a {
color: #777620;
}
.ui-state-error,
.ui-widget-content .ui-state-error,
.ui-widget-header .ui-state-error {
border: 1px solid #f1a899;
background: #fddfdf;
color: #5f3f3f;
}
.ui-state-error a,
.ui-widget-content .ui-state-error a,
.ui-widget-header .ui-state-error a {
color: #5f3f3f;
}
.ui-state-error-text,
.ui-widget-content .ui-state-error-text,
.ui-widget-header .ui-state-error-text {
color: #5f3f3f;
}
.ui-priority-primary,
.ui-widget-content .ui-priority-primary,
.ui-widget-header .ui-priority-primary {
font-weight: bold;
}
.ui-priority-secondary,
.ui-widget-content .ui-priority-secondary,
.ui-widget-header .ui-priority-secondary {
opacity: .7;
filter:Alpha(Opacity=70); /* support: IE8 */
font-weight: normal;
}
.ui-state-disabled,
.ui-widget-content .ui-state-disabled,
.ui-widget-header .ui-state-disabled {
opacity: .35;
filter:Alpha(Opacity=35); /* support: IE8 */
background-image: none;
}
.ui-state-disabled .ui-icon {
filter:Alpha(Opacity=35); /* support: IE8 - See #6059 */
}
/* Icons
----------------------------------*/
/* states and images */
.ui-icon {
width: 16px;
height: 16px;
}
.ui-icon,
.ui-widget-content .ui-icon {
background-image: url("../images/ui-icons_444444_256x240.png");
}
.ui-widget-header .ui-icon {
background-image: url("../images/ui-icons_444444_256x240.png");
}
.ui-button .ui-icon {
background-image: url("../images/ui-icons_777777_256x240.png");
}
.ui-state-hover .ui-icon,
.ui-state-focus .ui-icon,
.ui-button:hover .ui-icon,
.ui-button:focus .ui-icon,
.ui-state-default .ui-icon {
background-image: url("../images/ui-icons_555555_256x240.png");
}
.ui-state-active .ui-icon,
.ui-button:active .ui-icon {
background-image: url("../images/ui-icons_ffffff_256x240.png");
}
.ui-state-highlight .ui-icon,
.ui-button .ui-state-highlight.ui-icon {
background-image: url("../images/ui-icons_777620_256x240.png");
}
.ui-state-error .ui-icon,
.ui-state-error-text .ui-icon {
background-image: url("../images/ui-icons_cc0000_256x240.png");
}
/* positioning */
.ui-icon-blank { background-position: 16px 16px; }
.ui-icon-caret-1-n { background-position: 0 0; }
.ui-icon-caret-1-ne { background-position: -16px 0; }
.ui-icon-caret-1-e { background-position: -32px 0; }
.ui-icon-caret-1-se { background-position: -48px 0; }
.ui-icon-caret-1-s { background-position: -65px 0; }
.ui-icon-caret-1-sw { background-position: -80px 0; }
.ui-icon-caret-1-w { background-position: -96px 0; }
.ui-icon-caret-1-nw { background-position: -112px 0; }
.ui-icon-caret-2-n-s { background-position: -128px 0; }
.ui-icon-caret-2-e-w { background-position: -144px 0; }
.ui-icon-triangle-1-n { background-position: 0 -16px; }
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
.ui-icon-triangle-1-e { background-position: -32px -16px; }
.ui-icon-triangle-1-se { background-position: -48px -16px; }
.ui-icon-triangle-1-s { background-position: -65px -16px; }
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
.ui-icon-triangle-1-w { background-position: -96px -16px; }
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
.ui-icon-arrow-1-n { background-position: 0 -32px; }
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
.ui-icon-arrow-1-e { background-position: -32px -32px; }
.ui-icon-arrow-1-se { background-position: -48px -32px; }
.ui-icon-arrow-1-s { background-position: -65px -32px; }
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
.ui-icon-arrow-1-w { background-position: -96px -32px; }
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
.ui-icon-arrowthick-1-n { background-position: 1px -48px; }
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
.ui-icon-arrow-4 { background-position: 0 -80px; }
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
.ui-icon-extlink { background-position: -32px -80px; }
.ui-icon-newwin { background-position: -48px -80px; }
.ui-icon-refresh { background-position: -64px -80px; }
.ui-icon-shuffle { background-position: -80px -80px; }
.ui-icon-transfer-e-w { background-position: -96px -80px; }
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
.ui-icon-folder-collapsed { background-position: 0 -96px; }
.ui-icon-folder-open { background-position: -16px -96px; }
.ui-icon-document { background-position: -32px -96px; }
.ui-icon-document-b { background-position: -48px -96px; }
.ui-icon-note { background-position: -64px -96px; }
.ui-icon-mail-closed { background-position: -80px -96px; }
.ui-icon-mail-open { background-position: -96px -96px; }
.ui-icon-suitcase { background-position: -112px -96px; }
.ui-icon-comment { background-position: -128px -96px; }
.ui-icon-person { background-position: -144px -96px; }
.ui-icon-print { background-position: -160px -96px; }
.ui-icon-trash { background-position: -176px -96px; }
.ui-icon-locked { background-position: -192px -96px; }
.ui-icon-unlocked { background-position: -208px -96px; }
.ui-icon-bookmark { background-position: -224px -96px; }
.ui-icon-tag { background-position: -240px -96px; }
.ui-icon-home { background-position: 0 -112px; }
.ui-icon-flag { background-position: -16px -112px; }
.ui-icon-calendar { background-position: -32px -112px; }
.ui-icon-cart { background-position: -48px -112px; }
.ui-icon-pencil { background-position: -64px -112px; }
.ui-icon-clock { background-position: -80px -112px; }
.ui-icon-disk { background-position: -96px -112px; }
.ui-icon-calculator { background-position: -112px -112px; }
.ui-icon-zoomin { background-position: -128px -112px; }
.ui-icon-zoomout { background-position: -144px -112px; }
.ui-icon-search { background-position: -160px -112px; }
.ui-icon-wrench { background-position: -176px -112px; }
.ui-icon-gear { background-position: -192px -112px; }
.ui-icon-heart { background-position: -208px -112px; }
.ui-icon-star { background-position: -224px -112px; }
.ui-icon-link { background-position: -240px -112px; }
.ui-icon-cancel { background-position: 0 -128px; }
.ui-icon-plus { background-position: -16px -128px; }
.ui-icon-plusthick { background-position: -32px -128px; }
.ui-icon-minus { background-position: -48px -128px; }
.ui-icon-minusthick { background-position: -64px -128px; }
.ui-icon-close { background-position: -80px -128px; }
.ui-icon-closethick { background-position: -96px -128px; }
.ui-icon-key { background-position: -112px -128px; }
.ui-icon-lightbulb { background-position: -128px -128px; }
.ui-icon-scissors { background-position: -144px -128px; }
.ui-icon-clipboard { background-position: -160px -128px; }
.ui-icon-copy { background-position: -176px -128px; }
.ui-icon-contact { background-position: -192px -128px; }
.ui-icon-image { background-position: -208px -128px; }
.ui-icon-video { background-position: -224px -128px; }
.ui-icon-script { background-position: -240px -128px; }
.ui-icon-alert { background-position: 0 -144px; }
.ui-icon-info { background-position: -16px -144px; }
.ui-icon-notice { background-position: -32px -144px; }
.ui-icon-help { background-position: -48px -144px; }
.ui-icon-check { background-position: -64px -144px; }
.ui-icon-bullet { background-position: -80px -144px; }
.ui-icon-radio-on { background-position: -96px -144px; }
.ui-icon-radio-off { background-position: -112px -144px; }
.ui-icon-pin-w { background-position: -128px -144px; }
.ui-icon-pin-s { background-position: -144px -144px; }
.ui-icon-play { background-position: 0 -160px; }
.ui-icon-pause { background-position: -16px -160px; }
.ui-icon-seek-next { background-position: -32px -160px; }
.ui-icon-seek-prev { background-position: -48px -160px; }
.ui-icon-seek-end { background-position: -64px -160px; }
.ui-icon-seek-start { background-position: -80px -160px; }
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
.ui-icon-seek-first { background-position: -80px -160px; }
.ui-icon-stop { background-position: -96px -160px; }
.ui-icon-eject { background-position: -112px -160px; }
.ui-icon-volume-off { background-position: -128px -160px; }
.ui-icon-volume-on { background-position: -144px -160px; }
.ui-icon-power { background-position: 0 -176px; }
.ui-icon-signal-diag { background-position: -16px -176px; }
.ui-icon-signal { background-position: -32px -176px; }
.ui-icon-battery-0 { background-position: -48px -176px; }
.ui-icon-battery-1 { background-position: -64px -176px; }
.ui-icon-battery-2 { background-position: -80px -176px; }
.ui-icon-battery-3 { background-position: -96px -176px; }
.ui-icon-circle-plus { background-position: 0 -192px; }
.ui-icon-circle-minus { background-position: -16px -192px; }
.ui-icon-circle-close { background-position: -32px -192px; }
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
.ui-icon-circle-zoomin { background-position: -176px -192px; }
.ui-icon-circle-zoomout { background-position: -192px -192px; }
.ui-icon-circle-check { background-position: -208px -192px; }
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
.ui-icon-circlesmall-close { background-position: -32px -208px; }
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
.ui-icon-squaresmall-close { background-position: -80px -208px; }
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }

View File

@@ -0,0 +1,610 @@
.typeahead__container {
/**
* Restore the font weight unset by the previous rule.
*/
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
/**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
* controls in Android 4.
* 2. Correct the inability to style clickable types in iOS and Safari.
*/
/**
* Remove the inner border and padding in Firefox.
*/
/**
* Restore the focus styles unset by the previous rule.
*/
/**
* Change the border, margin, and padding in all browsers (opinionated).
*/
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
/**
* Remove the default vertical scrollbar in IE.
*/
/**
* 1. Add the correct box sizing in IE 10-.
* 2. Remove the padding in IE 10-.
*/
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
/**
* Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
*/
/**
* Correct the text style of placeholders in Chrome, Edge, and Safari.
*/
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
}
.typeahead__container button,
.typeahead__container input,
.typeahead__container optgroup,
.typeahead__container select,
.typeahead__container textarea {
font: inherit;
/* 1 */
margin: 0;
/* 2 */
}
.typeahead__container optgroup {
font-weight: bold;
}
.typeahead__container button,
.typeahead__container input {
/* 1 */
overflow: visible;
}
.typeahead__container button,
.typeahead__container select {
/* 1 */
text-transform: none;
}
.typeahead__container button,
.typeahead__container html [type="button"],
.typeahead__container [type="reset"],
.typeahead__container [type="submit"] {
-webkit-appearance: button;
/* 2 */
}
.typeahead__container button::-moz-focus-inner,
.typeahead__container [type="button"]::-moz-focus-inner,
.typeahead__container [type="reset"]::-moz-focus-inner,
.typeahead__container [type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
.typeahead__container button:-moz-focusring,
.typeahead__container [type="button"]:-moz-focusring,
.typeahead__container [type="reset"]:-moz-focusring,
.typeahead__container [type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
.typeahead__container fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
.typeahead__container legend {
-webkit-box-sizing: border-box;
box-sizing: border-box;
/* 1 */
color: inherit;
/* 2 */
display: table;
/* 1 */
max-width: 100%;
/* 1 */
padding: 0;
/* 3 */
white-space: normal;
/* 1 */
}
.typeahead__container textarea {
overflow: auto;
}
.typeahead__container [type="checkbox"],
.typeahead__container [type="radio"] {
-webkit-box-sizing: border-box;
box-sizing: border-box;
/* 1 */
padding: 0;
/* 2 */
}
.typeahead__container [type="number"]::-webkit-inner-spin-button,
.typeahead__container [type="number"]::-webkit-outer-spin-button {
height: auto;
}
.typeahead__container [type="search"] {
-webkit-appearance: textfield;
/* 1 */
outline-offset: -2px;
/* 2 */
}
.typeahead__container [type="search"]::-webkit-search-cancel-button,
.typeahead__container [type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
.typeahead__container ::-webkit-input-placeholder {
color: inherit;
opacity: 0.54;
}
.typeahead__container ::-webkit-file-upload-button {
-webkit-appearance: button;
/* 1 */
font: inherit;
/* 2 */
}
.typeahead__container {
position: relative;
font: 1rem Lato, "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.typeahead__container * {
-webkit-box-sizing: border-box;
box-sizing: border-box;
outline: 0;
}
.typeahead__query {
position: relative;
z-index: 2;
width: 100%;
}
.typeahead__filter {
position: relative;
}
.typeahead__filter button {
min-width: 100%;
white-space: nowrap;
}
.typeahead__filter button:after {
display: inline-block;
margin-left: 4px;
width: 0;
height: 0;
vertical-align: -2px;
content: "";
border: 4px solid;
border-right-color: transparent;
border-bottom-color: transparent;
border-left-color: transparent;
}
.typeahead__field {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
position: relative;
width: 100%;
}
.typeahead__button button {
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
.typeahead__field {
color: #555;
}
.typeahead__field input,
.typeahead__field textarea,
.typeahead__field [contenteditable],
.typeahead__field .typeahead__hint {
display: block;
width: 100%;
line-height: 1.25;
min-height: calc(0.5rem * 2 + 1.25rem + 2px);
padding: 0.5rem 0.75rem;
background: #fff;
border: 1px solid #ccc;
border-radius: 2px 0 0 2px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.typeahead__field input:focus, .typeahead__field input:active,
.typeahead__field textarea:focus,
.typeahead__field textarea:active,
.typeahead__field [contenteditable]:focus,
.typeahead__field [contenteditable]:active,
.typeahead__field .typeahead__hint:focus,
.typeahead__field .typeahead__hint:active {
border-color: #66afe9;
}
.typeahead__field input[type="search"],
.typeahead__field input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
appearance: none;
}
.typeahead__field input[type="search"]::-ms-clear {
display: none;
width: 0;
height: 0;
}
.typeahead__container.hint .typeahead__field input,
.typeahead__container.hint .typeahead__field textarea,
.typeahead__container.hint .typeahead__field [contenteditable] {
background: transparent;
}
.typeahead__container.hint .typeahead__query > :last-child, .typeahead__hint {
background: #fff;
}
.typeahead__container button {
display: inline-block;
margin-bottom: 0;
text-align: center;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
background-color: #fff;
border: 1px solid #ccc;
line-height: 1.25;
padding: 0.5rem 0.75rem;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
color: #555;
}
.typeahead__container button:hover, .typeahead__container button:focus {
color: #3c3c3c;
background-color: #f5f5f5;
border-color: #b3b3b3;
}
.typeahead__container button:active, .typeahead__container button.active {
background-image: none;
}
.typeahead__container button:focus, .typeahead__container button:active {
border-color: #66afe9;
}
.typeahead__container input.disabled,
.typeahead__container input[disabled],
.typeahead__container button.disabled,
.typeahead__container button[disabled] {
cursor: not-allowed;
pointer-events: none;
opacity: 0.65;
-webkit-box-shadow: none;
box-shadow: none;
background-color: #fff;
border-color: #ccc;
}
.typeahead__container .typeahead__field input,
.typeahead__container .typeahead__field textarea,
.typeahead__container .typeahead__field [contenteditable],
.typeahead__container .typeahead__field .typeahead__hint,
.typeahead__container .typeahead__field .typeahead__label-container {
padding-right: 32px;
}
.typeahead__filter, .typeahead__button {
z-index: 1;
}
.typeahead__filter button, .typeahead__button button {
margin-left: -1px;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.typeahead__filter:hover, .typeahead__filter:active, .typeahead__filter:focus, .typeahead__button:hover, .typeahead__button:active, .typeahead__button:focus {
z-index: 1001;
}
.typeahead__filter:hover button:focus, .typeahead__filter:hover button:active, .typeahead__filter:active button:focus, .typeahead__filter:active button:active, .typeahead__filter:focus button:focus, .typeahead__filter:focus button:active, .typeahead__button:hover button:focus, .typeahead__button:hover button:active, .typeahead__button:active button:focus, .typeahead__button:active button:active, .typeahead__button:focus button:focus, .typeahead__button:focus button:active {
z-index: 1001;
}
.typeahead__filter + .typeahead__button button {
margin-left: -2px;
}
.typeahead__container.filter .typeahead__filter {
z-index: 1001;
}
.typeahead__list, .typeahead__dropdown {
position: absolute;
left: 0;
z-index: 1000;
width: 100%;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
list-style: none;
text-align: left;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 2px;
background-clip: padding-box;
}
.typeahead__result.detached .typeahead__list {
position: relative;
z-index: 1041;
top: initial;
left: initial;
}
.typeahead__dropdown {
right: 0;
left: initial;
z-index: 1001;
}
.typeahead__list > li {
position: relative;
border-top: solid 1px #ccc;
}
.typeahead__list > li:first-child {
border-top: none;
}
.typeahead__list > li[disabled] > a,
.typeahead__dropdown > li[disabled] > a {
cursor: not-allowed;
color: #bababa;
background-color: #fafafa;
}
.typeahead__list > li > a,
.typeahead__dropdown > li > a {
display: block;
padding: 0.5rem 0.75rem;
clear: both;
color: #333;
text-decoration: none;
}
.typeahead__list > li:not([disabled]) > a:hover,
.typeahead__list > li:not([disabled]) > a:focus,
.typeahead__list > li:not([disabled]).active > a,
.typeahead__dropdown > li:not([disabled]) > a:hover,
.typeahead__dropdown > li:not([disabled]) > a:focus,
.typeahead__dropdown > li:not([disabled]).active > a {
background-color: #f5f5f5;
color: #3c3c3c;
}
.typeahead__list.empty > li {
padding: 0.5rem 0.75rem;
color: #333;
}
.typeahead__list > li.typeahead__group {
border-color: #bfdef6;
font-weight: bold;
}
.typeahead__list > li.typeahead__group:first-child {
border-top: solid 1px #bfdef6;
}
.typeahead__list > li.typeahead__group > a,
.typeahead__list > li.typeahead__group > a:hover,
.typeahead__list > li.typeahead__group > a:focus,
.typeahead__list > li.typeahead__group.active > a {
cursor: default;
color: #17639f;
background: #ecf5fc;
}
.typeahead__list > li.typeahead__group + li.typeahead__item {
border-color: #bfdef6;
}
.typeahead__container.result .typeahead__list,
.typeahead__container.filter .typeahead__dropdown,
.typeahead__container.hint .typeahead__hint,
.typeahead__container.backdrop + .typeahead__backdrop {
display: block !important;
}
.typeahead__container .typeahead__list,
.typeahead__container .typeahead__dropdown,
.typeahead__container .typeahead__hint,
.typeahead__container + .typeahead__backdrop {
display: none !important;
}
.typeahead__dropdown li:last-child {
margin-top: 5px;
padding-top: 5px;
border-top: solid 1px #ccc;
}
.typeahead__cancel-button {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
position: absolute;
right: 0;
cursor: pointer;
line-height: 1.25;
padding: 0.5rem 0.75rem;
visibility: hidden;
}
.typeahead__label .typeahead__cancel-button {
visibility: visible;
right: 4px;
}
.typeahead__container.cancel:not(.loading) .typeahead__cancel-button, .typeahead__label .typeahead__cancel-button {
visibility: visible;
}
.typeahead__container.cancel:not(.loading) .typeahead__cancel-button:hover, .typeahead__label .typeahead__cancel-button:hover {
color: #d0021b;
}
.typeahead__search-icon {
padding: 0 1.25rem;
width: 16px;
height: 16px;
background: url(data:image/svg+xml;charset=utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMS4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDI1MC4zMTMgMjUwLjMxMyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjUwLjMxMyAyNTAuMzEzOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCI+CjxnIGlkPSJTZWFyY2giPgoJPHBhdGggc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkOyIgZD0iTTI0NC4xODYsMjE0LjYwNGwtNTQuMzc5LTU0LjM3OGMtMC4yODktMC4yODktMC42MjgtMC40OTEtMC45My0wLjc2ICAgYzEwLjctMTYuMjMxLDE2Ljk0NS0zNS42NiwxNi45NDUtNTYuNTU0QzIwNS44MjIsNDYuMDc1LDE1OS43NDcsMCwxMDIuOTExLDBTMCw0Ni4wNzUsMCwxMDIuOTExICAgYzAsNTYuODM1LDQ2LjA3NCwxMDIuOTExLDEwMi45MSwxMDIuOTExYzIwLjg5NSwwLDQwLjMyMy02LjI0NSw1Ni41NTQtMTYuOTQ1YzAuMjY5LDAuMzAxLDAuNDcsMC42NCwwLjc1OSwwLjkyOWw1NC4zOCw1NC4zOCAgIGM4LjE2OSw4LjE2OCwyMS40MTMsOC4xNjgsMjkuNTgzLDBDMjUyLjM1NCwyMzYuMDE3LDI1Mi4zNTQsMjIyLjc3MywyNDQuMTg2LDIxNC42MDR6IE0xMDIuOTExLDE3MC4xNDYgICBjLTM3LjEzNCwwLTY3LjIzNi0zMC4xMDItNjcuMjM2LTY3LjIzNWMwLTM3LjEzNCwzMC4xMDMtNjcuMjM2LDY3LjIzNi02Ny4yMzZjMzcuMTMyLDAsNjcuMjM1LDMwLjEwMyw2Ny4yMzUsNjcuMjM2ICAgQzE3MC4xNDYsMTQwLjA0NCwxNDAuMDQzLDE3MC4xNDYsMTAyLjkxMSwxNzAuMTQ2eiIgZmlsbD0iIzU1NTU1NSIvPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=) no-repeat scroll center center transparent;
}
.typeahead__container.loading .typeahead__query:before, .typeahead__container.loading .typeahead__query:after {
-webkit-transition: all 0s linear, opacity 0.2s ease;
-o-transition: all 0s linear, opacity 0.2s ease;
transition: all 0s linear, opacity 0.2s ease;
position: absolute;
z-index: 3;
content: "";
top: 50%;
right: 0.55em;
margin-top: -0.675rem;
width: 1.35rem;
height: 1.35rem;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-radius: 500rem;
border-style: solid;
border-width: 0.1em;
}
.typeahead__container.loading .typeahead__query:before {
border-color: rgba(0, 0, 0, 0.35);
}
.typeahead__container.loading .typeahead__query:after {
-webkit-animation: button-spin 0.6s linear;
animation: button-spin 0.6s linear;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
border-color: #fff transparent transparent;
-webkit-box-shadow: 0 0 0 1px transparent;
box-shadow: 0 0 0 1px transparent;
}
@-webkit-keyframes button-spin {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes button-spin {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.typeahead__label-container {
list-style: none;
position: absolute;
padding-top: calc(1rem * 0.375);
padding-left: 6px;
width: 100%;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.typeahead__label {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
font-size: calc(1rem * 0.875);
position: relative;
background: #ecf5fc;
border: solid 1px #c2e0ff;
padding-left: 4px;
border-radius: 2px;
margin-right: 4px;
margin-bottom: calc(1rem * 0.375);
}
.typeahead__label > * {
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
}
.typeahead__label .typeahead__cancel-button {
line-height: normal;
height: auto;
position: static;
padding-top: calc(1rem * 0.25 - 1px);
padding-bottom: calc(1rem * 0.25 + 1px);
padding-left: 6px;
padding-right: 6px;
margin-left: 4px;
font-size: calc(1rem * 0.875);
border-left: solid 1px #c2e0ff;
}
.typeahead__label .typeahead__cancel-button:hover {
background-color: #d5e9f9;
}

View File

@@ -0,0 +1,346 @@
.typeahead, .tt-query, .tt-hint {
border: 1px solid #CCCCCC;
border-radius: 6px;
outline: medium none;
margin-right: 24px;
padding: 8px 12px;
position: absolute;
/* z-index: 1000;*/
}
.typeahead {
background-color: #FFFFFF;
}
.typeahead:focus {
border: 2px solid #0097CF;
}
.typeahead {z-index: 1;}
.catmapping td div {
position: relative;
}
.tt-query {
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}
.tt-hint {
color: #999999;
}
.tt-menu {
background-color: #FFFFFF;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
margin-top: 12px;
padding: 6px 0;
width: 422px;
}
.tt-suggestion {
font-size: 22px; /* Set suggestion dropdown font size */
padding: 3px 20px;
}
.tt-suggestion:hover {
cursor: pointer;
background-color: #0097CF;
color: #FFFFFF;
}
.tt-suggestion p {
margin: 0;
}
// table styles
.woo-product-feed-pro-body {
font-family: "Open Sans", sans-serif;
line-height: 1.25;
}
.woo-product-feed-pro-table-wrapper:after {
content:"";
display: table;
clear: both;
}
.woo-product-feed-pro-table-left {
float: left;
padding-right: 1%;
width: 74%;
}
.woo-product-feed-pro-table-right {
float: right;
width: 25%;
}
@media screen and (max-width: 480px) {
.woo-product-feed-pro-table-left, .woo-product-feed-pro-table-right {
float: none;
width: auto;
}
.woo-product-feed-pro-table-right {
padding-top: 8px;
}
}
.woo-product-feed-pro-table {
border: 1px solid #ccc;
border-collapse: collapse;
margin: 0;
padding: 0;
width: 100%;
}
.woo-product-feed-pro-table caption {
font-size: 1.5em;
margin: .5em 0 .75em;
}
.woo-product-feed-pro-table tr {
// background: #f8f8f8;
border: 1px solid #ddd;
padding: .35em;
}
.woo-product-feed-pro-table th,
.woo-product-feed-pro-table td {
padding: .525em;
text-align: left;
}
.woo-product-feed-pro-table th {
font-size: .85em;
letter-spacing: .1em;
text-transform: uppercase;
}
.promo-box {
background-color: #674399;
color: #FFFFFF;
}
/* The switch - the box around the slider */
.woo-product-feed-pro-switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
/* Hide default HTML checkbox */
.woo-product-feed-pro-switch input {display:none;}
/* The slider */
.woo-product-feed-pro-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.woo-product-feed-pro-slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .woo-product-feed-pro-slider {
background-color: #0C0;
}
input:focus + .woo-product-feed-pro-slider {
box-shadow: 0 0 1px #0C0;
}
input:checked + .woo-product-feed-pro-slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.woo-product-feed-pro-slider.round {
border-radius: 34px;
}
.woo-product-feed-pro-slider.round:before {
border-radius: 50%;
}
// form styles
.woo-product-feed-pro-form-style-2{
max-width: 500px;
padding: 20px 12px 10px 20px;
font: 13px Arial, Helvetica, sans-serif;
}
.woo-product-feed-pro-channel{
font-style: italic;
font-size: 10px;
}
.woo-product-feed-pro-form-style-2-heading{
font-weight: bold;
font-style: italic;
border-bottom: 2px solid #ddd;
margin-bottom: 20px;
font-size: 15px;
padding-bottom: 3px;
}
.woo-product-feed-pro-form-style-2 label{
display: block;
margin: 0px 0px 0px 0px;
}
.woo-product-feed-pro-form-style-2 label > span{
width: 100px;
font-weight: bold;
float: left;
padding-top: 8px;
padding-right: 5px;
}
.woo-product-feed-pro-form-style-2 span.required{
color:red;
}
.woo-product-feed-pro-form-style-2 input.input-field{
width: 44%;
}
.woo-product-feed-pro-form-style-2 input.input-field-midsmall{
width: 65%;
}
.woo-product-feed-pro-form-style-2 input.input-field-large{
width: 98%;
}
.woo-product-feed-pro-form-style-2 input.input-field-large-active{
width: 98%;
}
.woo-product-feed-pro-form-style-2 input.input-field-medium{
width: 34%;
}
.woo-product-feed-pro-form-style-2 input.input-field-small{
width: 12%;
}
.woo-product-feed-pro-form-style-2 input.input-field,
.woo-product-feed-pro-form-style-2 input.checkbox-field,
.woo-product-feed-pro-form-style-2 input.input-field-large,
.woo-product-feed-pro-form-style-2 input.input-field-small,
.woo-product-feed-pro-form-style-2 input.input-field-midsmall,
.woo-product-feed-pro-form-style-2 input.input-field-medium,
.woo-product-feed-pro-form-style-2 .textarea-field {
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
border: 1px solid #C2C2C2;
box-shadow: 1px 1px 4px #EBEBEB;
-moz-box-shadow: 1px 1px 4px #EBEBEB;
-webkit-box-shadow: 1px 1px 4px #EBEBEB;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
padding: 7px;
outline: none;
}
.woo-product-feed-pro-form-style-2 input.input-field-large-active {
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
border: 1px solid #C2C2C2;
box-shadow: 1px 1px 4px #EBEBEB;
-moz-box-shadow: 1px 1px 4px #EBEBEB;
-webkit-box-shadow: 1px 1px 4px #EBEBEB;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
padding: 7px;
outline: none;
background-color: #0C0;
}
.woo-product-feed-pro-form-style-2 .input-field:focus,
.woo-product-feed-pro-form-style-2 .input-field-large:focus,
.woo-product-feed-pro-form-style-2 .input-field-large-active:focus,
.woo-product-feed-pro-form-style-2 .input-field-midsmall:focus,
.woo-product-feed-pro-form-style-2 .input-field-small:focus,
.woo-product-feed-pro-form-style-2 .input-field-medium:focus,
/*
.woo-product-feed-pro-form-style-2 .textarea-field:focus,
*/
.woo-product-feed-pro-form-style-2 .select-field:focus{
border: 1px solid #0C0;
}
.woo-product-feed-pro-form-style-2 .textarea-field{
height:100px;
width: 55%;
word-break: break-all;
}
.woo-product-feed-pro-form-style-2 input[type=submit],
.woo-product-feed-pro-form-style-2 input[type=button]{
border: none;
padding: 8px 15px 8px 15px;
background: #FF8500;
color: #fff;
box-shadow: 1px 1px 4px #DADADA;
-moz-box-shadow: 1px 1px 4px #DADADA;
-webkit-box-shadow: 1px 1px 4px #DADADA;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
}
.woo-product-feed-pro-form-style-2 input[type=submit]:hover,
.woo-product-feed-pro-form-style-2 input[type=button]:hover{
background: #EA7B00;
color: #fff;
}
.woo-product-feed-pro-textarea{
background-color:#eee;
overflow:hidden;
height:320px;
max-height:320px;
border:1px solid #ccc;
overflow-y: auto;
}
.woo-product-feed-pro-ratingRequest{
color: #DAA520;
}
#woo-product-feed-pro-errormessage {
width: 40%;
color: #555;
border-radius: 3px;
font-size: .8em;
padding: 5px 5px 5px 5px;
margin: 5px 5px 5px 0px;
background: #ffecec;
border: 2px solid #f5aca6;
}
.woo-product-feed-pro-strikethrough {
text-decoration: line-through;
}
.woo-product-feed-pro-blink_me {
animation: blinker 1s linear infinite;
}
.woo-product-feed-pro-inline_manage {
width:100%;
-moz-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0 0 5px #888;
-webkit-box-shadow: 0 0 5px #888;
box-shadow: 0 0 5px #888;
}
@keyframes blinker {
50% { opacity: 0; }
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -0,0 +1,5 @@
<?php
/**
* Nothing to see here.
*/
?>

View File

@@ -0,0 +1,5 @@
<?php
/**
* Nothing to see here.
*/
?>

View File

@@ -0,0 +1,484 @@
/* =============================================================
* bootstrap3-typeahead.js v3.1.0
* https://github.com/bassjobsen/Bootstrap-3-Typeahead
* =============================================================
* Original written by @mdo and @fat
* =============================================================
* Copyright 2014 Bass Jobsen @bassjobsen
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ============================================================ */
(function (root, factory) {
'use strict';
// CommonJS module is defined
if (typeof module !== 'undefined' && module.exports) {
module.exports = factory(require('jquery'));
}
// AMD module is defined
else if (typeof define === 'function' && define.amd) {
define(['jquery'], function ($) {
return factory ($);
});
} else {
factory(root.jQuery);
}
}(this, function ($) {
'use strict';
// jshint laxcomma: true
/* TYPEAHEAD PUBLIC CLASS DEFINITION
* ================================= */
var Typeahead = function (element, options) {
this.$element = $(element);
this.options = $.extend({}, $.fn.typeahead.defaults, options);
this.matcher = this.options.matcher || this.matcher;
this.sorter = this.options.sorter || this.sorter;
this.select = this.options.select || this.select;
this.autoSelect = typeof this.options.autoSelect == 'boolean' ? this.options.autoSelect : true;
this.highlighter = this.options.highlighter || this.highlighter;
this.render = this.options.render || this.render;
this.updater = this.options.updater || this.updater;
this.displayText = this.options.displayText || this.displayText;
this.source = this.options.source;
this.delay = this.options.delay;
this.$menu = $(this.options.menu);
this.$appendTo = this.options.appendTo ? $(this.options.appendTo) : null;
this.shown = false;
this.listen();
this.showHintOnFocus = typeof this.options.showHintOnFocus == 'boolean' ? this.options.showHintOnFocus : false;
this.afterSelect = this.options.afterSelect;
this.addItem = false;
};
Typeahead.prototype = {
constructor: Typeahead,
select: function () {
var val = this.$menu.find('.active').data('value');
this.$element.data('active', val);
if(this.autoSelect || val) {
var newVal = this.updater(val);
// Updater can be set to any random functions via "options" parameter in constructor above.
// Add null check for cases when upadter returns void or undefined.
if (!newVal) {
newVal = "";
}
this.$element
.val(this.displayText(newVal) || newVal)
.change();
this.afterSelect(newVal);
}
return this.hide();
},
updater: function (item) {
return item;
},
setSource: function (source) {
this.source = source;
},
show: function () {
var pos = $.extend({}, this.$element.position(), {
height: this.$element[0].offsetHeight
}), scrollHeight;
scrollHeight = typeof this.options.scrollHeight == 'function' ?
this.options.scrollHeight.call() :
this.options.scrollHeight;
var element;
if (this.shown) {
element = this.$menu;
} else if (this.$appendTo) {
element = this.$menu.appendTo(this.$appendTo);
} else {
element = this.$menu.insertAfter(this.$element);
}
element.css({
top: pos.top + pos.height + scrollHeight
, left: pos.left
})
.show();
this.shown = true;
return this;
},
hide: function () {
this.$menu.hide();
this.shown = false;
return this;
},
lookup: function (query) {
var items;
if (typeof(query) != 'undefined' && query !== null) {
this.query = query;
} else {
this.query = this.$element.val() || '';
}
if (this.query.length < this.options.minLength) {
return this.shown ? this.hide() : this;
}
var worker = $.proxy(function() {
if($.isFunction(this.source)) this.source(this.query, $.proxy(this.process, this));
else if (this.source) {
this.process(this.source);
}
}, this);
clearTimeout(this.lookupWorker);
this.lookupWorker = setTimeout(worker, this.delay);
},
process: function (items) {
var that = this;
items = $.grep(items, function (item) {
return that.matcher(item);
});
items = this.sorter(items);
if (!items.length && !this.options.addItem) {
return this.shown ? this.hide() : this;
}
if (items.length > 0) {
this.$element.data('active', items[0]);
} else {
this.$element.data('active', null);
}
// Add item
if (this.options.addItem){
items.push(this.options.addItem);
}
if (this.options.items == 'all') {
return this.render(items).show();
} else {
return this.render(items.slice(0, this.options.items)).show();
}
},
matcher: function (item) {
var it = this.displayText(item);
return ~it.toLowerCase().indexOf(this.query.toLowerCase());
},
sorter: function (items) {
var beginswith = []
, caseSensitive = []
, caseInsensitive = []
, item;
while ((item = items.shift())) {
var it = this.displayText(item);
if (!it.toLowerCase().indexOf(this.query.toLowerCase())) beginswith.push(item);
else if (~it.indexOf(this.query)) caseSensitive.push(item);
else caseInsensitive.push(item);
}
return beginswith.concat(caseSensitive, caseInsensitive);
},
highlighter: function (item) {
var html = $('<div></div>');
var query = this.query;
var i = item.toLowerCase().indexOf(query.toLowerCase());
var len, leftPart, middlePart, rightPart, strong;
len = query.length;
if(len === 0){
return html.text(item).html();
}
while (i > -1) {
leftPart = item.substr(0, i);
middlePart = item.substr(i, len);
rightPart = item.substr(i + len);
strong = $('<strong></strong>').text(middlePart);
html
.append(document.createTextNode(leftPart))
.append(strong);
item = rightPart;
i = item.toLowerCase().indexOf(query.toLowerCase());
}
return html.append(document.createTextNode(item)).html();
},
render: function (items) {
var that = this;
var self = this;
var activeFound = false;
items = $(items).map(function (i, item) {
var text = self.displayText(item);
i = $(that.options.item).data('value', item);
i.find('a').html(that.highlighter(text));
if (text == self.$element.val()) {
i.addClass('active');
self.$element.data('active', item);
activeFound = true;
}
return i[0];
});
if (this.autoSelect && !activeFound) {
items.first().addClass('active');
this.$element.data('active', items.first().data('value'));
}
this.$menu.html(items);
return this;
},
displayText: function(item) {
return typeof item !== 'undefined' && typeof item.name != 'undefined' && item.name || item;
},
next: function (event) {
var active = this.$menu.find('.active').removeClass('active')
, next = active.next();
if (!next.length) {
next = $(this.$menu.find('li')[0]);
}
next.addClass('active');
},
prev: function (event) {
var active = this.$menu.find('.active').removeClass('active')
, prev = active.prev();
if (!prev.length) {
prev = this.$menu.find('li').last();
}
prev.addClass('active');
},
listen: function () {
this.$element
.on('focus', $.proxy(this.focus, this))
.on('blur', $.proxy(this.blur, this))
.on('keypress', $.proxy(this.keypress, this))
.on('keyup', $.proxy(this.keyup, this));
if (this.eventSupported('keydown')) {
this.$element.on('keydown', $.proxy(this.keydown, this));
}
this.$menu
.on('click', $.proxy(this.click, this))
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
.on('mouseleave', 'li', $.proxy(this.mouseleave, this));
},
destroy : function () {
this.$element.data('typeahead',null);
this.$element.data('active',null);
this.$element
.off('focus')
.off('blur')
.off('keypress')
.off('keyup');
if (this.eventSupported('keydown')) {
this.$element.off('keydown');
}
this.$menu.remove();
},
eventSupported: function(eventName) {
var isSupported = eventName in this.$element;
if (!isSupported) {
this.$element.setAttribute(eventName, 'return;');
isSupported = typeof this.$element[eventName] === 'function';
}
return isSupported;
},
move: function (e) {
if (!this.shown) return;
switch(e.keyCode) {
case 9: // tab
case 13: // enter
case 27: // escape
e.preventDefault();
break;
case 38: // up arrow
// with the shiftKey (this is actually the left parenthesis)
if (e.shiftKey) return;
e.preventDefault();
this.prev();
break;
case 40: // down arrow
// with the shiftKey (this is actually the right parenthesis)
if (e.shiftKey) return;
e.preventDefault();
this.next();
break;
}
},
keydown: function (e) {
this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40,38,9,13,27]);
if (!this.shown && e.keyCode == 40) {
this.lookup();
} else {
this.move(e);
}
},
keypress: function (e) {
if (this.suppressKeyPressRepeat) return;
this.move(e);
},
keyup: function (e) {
switch(e.keyCode) {
case 40: // down arrow
case 38: // up arrow
case 16: // shift
case 17: // ctrl
case 18: // alt
break;
case 9: // tab
case 13: // enter
if (!this.shown) return;
this.select();
break;
case 27: // escape
if (!this.shown) return;
this.hide();
break;
default:
this.lookup();
}
e.preventDefault();
},
focus: function (e) {
if (!this.focused) {
this.focused = true;
if (this.options.showHintOnFocus) {
this.lookup('');
}
}
},
blur: function (e) {
this.focused = false;
if (!this.mousedover && this.shown) this.hide();
},
click: function (e) {
e.preventDefault();
this.select();
this.$element.focus();
},
mouseenter: function (e) {
this.mousedover = true;
this.$menu.find('.active').removeClass('active');
$(e.currentTarget).addClass('active');
},
mouseleave: function (e) {
this.mousedover = false;
if (!this.focused && this.shown) this.hide();
}
};
/* TYPEAHEAD PLUGIN DEFINITION
* =========================== */
var old = $.fn.typeahead;
$.fn.typeahead = function (option) {
var arg = arguments;
if (typeof option == 'string' && option == 'getActive') {
return this.data('active');
}
return this.each(function () {
var $this = $(this)
, data = $this.data('typeahead')
, options = typeof option == 'object' && option;
if (!data) $this.data('typeahead', (data = new Typeahead(this, options)));
if (typeof option == 'string') {
if (arg.length > 1) {
data[option].apply(data, Array.prototype.slice.call(arg ,1));
} else {
data[option]();
}
}
});
};
$.fn.typeahead.defaults = {
source: []
, items: 8
, menu: '<ul class="typeahead dropdown-menu" role="listbox"></ul>'
, item: '<li><a class="dropdown-item" href="#" role="option"></a></li>'
, minLength: 1
, scrollHeight: 0
, autoSelect: true
, afterSelect: $.noop
, addItem: false
, delay: 0
};
$.fn.typeahead.Constructor = Typeahead;
/* TYPEAHEAD NO CONFLICT
* =================== */
$.fn.typeahead.noConflict = function () {
$.fn.typeahead = old;
return this;
};
/* TYPEAHEAD DATA-API
* ================== */
$(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
var $this = $(this);
if ($this.data('typeahead')) return;
$this.typeahead($this.data());
});
}));

View File

@@ -0,0 +1,93 @@
jQuery(document).ready(function($) {
//localStorage.removeItem("attributes");
$( "select" ).change(function() {
//localStorage.removeItem("attributes");
var productId = $('input[name=product_id]').val();
var selectedName = $(this).attr("name");
var selectedValue = $(this).find('option:selected').text();
var storedAttributes = JSON.parse(localStorage.getItem("attributes"));
// Already saved a selection in local storage
if(storedAttributes){
// Only add new selections to the local storage
var len_value = selectedValue.length;
if(len_value > 0){
storedAttributes[selectedName] = selectedValue;
localStorage.setItem("attributes", JSON.stringify(storedAttributes));
}
} else {
var json_attributes = new Object();
json_attributes.productId = productId;
json_attributes[selectedName] = selectedValue;
localStorage.setItem("attributes", JSON.stringify(json_attributes));
}
var storedAttributes = JSON.parse(localStorage.getItem("attributes"));
// Now AJAX call to save in options
var inputdata = {
'action': 'woosea_storedattributes_details',
'data_to_pass': productId,
'storedAttributes': storedAttributes,
}
$.post(frontEndAjax.ajaxurl, inputdata, function( response ) {
}, 'json' );
console.log(storedAttributes);
});
// For shop pages
$(".add_to_cart_button").click(function(){
var productId = $(this).attr('data-product_id');
console.log(productId);
// Ajax frontend
var inputdata = {
'action': 'woosea_addtocart_details',
'data_to_pass': productId,
}
$.post(frontEndAjax.ajaxurl, inputdata, function( response ) {
fbq("track", "AddToCart", {
content_ids: "['" + response.product_id + "']",
content_name: response.product_name,
content_category: response.product_cats,
content_type: "product",
value: response.product_price,
currency: response.product_currency,
});
}, 'json' );
});
// For product pages
$(".single_add_to_cart_button").click(function(){
var productId = $('input[name=product_id]').val();
if(!productId){
productId = $(this).attr('value');
}
console.log(productId);
// Ajax frontend
var inputdata = {
'action': 'woosea_addtocart_details',
'data_to_pass': productId,
}
$.post(frontEndAjax.ajaxurl, inputdata, function( response ) {
fbq("track", "AddToCart", {
content_ids: "['" + response.product_id + "']",
content_name: response.product_name,
content_category: response.product_cats,
content_type: "product",
value: response.product_price,
currency: response.product_currency,
});
}, 'json' );
});
});

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,180 @@
jQuery(document).ready(function($) {
jQuery("#shipping_zone").on('click', function(){
var variations = ( $( "#shipping_zone" ).is(':checked')) ? 1 : 0;
if(variations == "1"){
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_shipping_zones' }
})
.done(function( data ) {
data = JSON.parse( data );
$('#shipping_zones').after('<tr id="select_shipping_zone"><td><i>Select shipping zone:</i><br/>You have multiple shipping zones configured for your shop. Do you want to add all Shipping zones to your product feed or just a one?</td><td valign="top"><select name="zone" class="select-field">' + data.dropdown + '</select></td></tr>');
})
.fail(function( data ) {
console.log('Failed AJAX Call :( /// Return Data: ' + data);
});
} else {
$('#select_shipping_zone').remove();
}
});
jQuery("#channel_hash").on("change", function(){
var channel_hash = $("#channel_hash").find('option:selected').text();
if(channel_hash == 'Google Remarketing - DRM'){ // Ugly hack, should be configurable per channel
$("#fileformat option[value='xml']").remove();
$("#fileformat option[value='txt']").remove();
$("#fileformat option[value='tsv']").remove();
$('#file').after('<tr id="delimiter"><td><span>Delimiter:</span></td><td><select name="delimiter" class="select-field"><option value=",">, comma</option><option value="|">| pipe</option><option value=";">;</option><option value="tab">tab</option><option value="#">#</option></select></td></tr>');
} else if(channel_hash == 'Guenstiger.de'){ // Ugly hack, should be configurable per channel
$("#fileformat option[value='xml']").remove();
$("#fileformat option[value='txt']").remove();
$("#fileformat option[value='tsv']").remove();
$('#file').after('<tr id="delimiter"><td><span>Delimiter:</span></td><td><select name="delimiter" class="select-field"><option value=",">, comma</option><option value="|">| pipe</option><option value=";">;</option><option value="tab">tab</option><option value="#">#</option></select></td></tr>');
} else if(channel_hash == 'Google - DSA'){ // Ugly hack, should be configurable per channel
$("#fileformat option[value='xml']").remove();
$("#fileformat option[value='txt']").remove();
$("#fileformat option[value='tsv']").remove();
$('#file').after('<tr id="delimiter"><td><span>Delimiter:</span></td><td><select name="delimiter" class="select-field"><option value=",">, comma</option><option value="|">| pipe</option><option value=";">;</option><option value="tab">tab</option><option value="#">#</option></select></td></tr>');
} else if(channel_hash == 'Wish.com'){ // Ugly hack, should be configurable per channel
$("#fileformat option[value='xml']").remove();
$("#fileformat option[value='txt']").remove();
$("#fileformat option[value='tsv']").remove();
$('#file').after('<tr id="delimiter"><td><span>Delimiter:</span></td><td><select name="delimiter" class="select-field"><option value=",">, comma</option><option value="|">| pipe</option><option value=";">;</option><option value="tab">tab</option><option value="#">#</option></select></td></tr>');
} else if(channel_hash == 'Google Local Products Inventory'){ // Ugly hack, should be configurable per channel
$("#fileformat option[value='csv']").remove();
$("#fileformat option[value='tsv']").remove();
$('#file').after('<tr id="delimiter"><td><span>Delimiter:</span></td><td><select name="delimiter" class="select-field"><option value=",">, comma</option><option value="|">| pipe</option><option value=";">;</option><option value="tab">tab</option><option value="#">#</option></select></td></tr>');
} else if(channel_hash == 'Google Shopping'){ // Ugly hack, should be configurable per channel
$("#fileformat option[value='txt']").remove();
$("#fileformat option[value='csv']").remove();
$("#fileformat option[value='tsv']").remove();
$('#file').after('<tr id="delimiter"><td><span>Delimiter:</span></td><td><select name="delimiter" class="select-field"><option value=",">, comma</option><option value="|">| pipe</option><option value=";">;</option><option value="tab">tab</option><option value="#">#</option></select></td></tr>');
} else if(channel_hash == 'Fashionchick.nl'){ // Ugly hack, should be configurable per channel
$("#fileformat option[value='tsv']").remove();
$("#fileformat option[value='xml']").remove();
$('#file').after('<tr id="delimiter"><td><span>Delimiter:</span></td><td><select name="delimiter" class="select-field"><option value=",">, comma</option><option value="|">| pipe</option><option value=";">;</option><option value="tab">tab</option><option value="#">#</option></select></td></tr>');
} else if(channel_hash == 'Bol.com'){ // Ugly hack, should be configurable per channel
$("#fileformat option[value='tsv']").remove();
$("#fileformat option[value='xml']").remove();
$('#file').after('<tr id="delimiter"><td><span>Delimiter:</span></td><td><select name="delimiter" class="select-field"><option value=",">, comma</option><option value="|">| pipe</option><option value=";">;</option><option value="tab">tab</option><option value="#">#</option></select></td></tr>');
} else if(channel_hash == 'Snapchat Product Catalog'){ // Ugly hack, should be configurable per channel
$("#fileformat option[value='tsv']").remove();
$("#fileformat option[value='xml']").remove();
$("#fileformat option[value='txt']").remove();
$('#file').after('<tr id="delimiter"><td><span>Delimiter:</span></td><td><select name="delimiter" class="select-field"><option value=",">, comma</option><option value="|">| pipe</option><option value=";">;</option><option value="tab">tab</option><option value="#">#</option></select></td></tr>');
} else {
$("#fileformat")
.empty()
.append('<option value="xml">XML</option><option value="csv">CSV</option><option value="txt">TXT</option><option value="tsv">TSV</option>')
;
}
});
// The Aelia currency has changed, make sure to warn the user to also change the currency prefix and/or suffix
//$('.aelia_switch').change(function(){
$('.aelia_switch').on('change', function(){
var popup_dialog = alert("You have changed the Aelia currency, this will change pricing in your product feed. Make sure the currency prefix and/or suffix on the field mapping page is correct.");
});
jQuery("#countries").on("change", function(){
var country = this.value;
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_channel', 'country': country }
})
.done(function( data ) {
data = JSON.parse( data );
var select = $('#channel_hash');
select.empty();
$.each(data, function(index, val) {
if(val.type == 'Custom Feed'){
if($('optgroup[label="Custom Feed"]').length == 0){
var optgroup_customfeed = $('<optgroup id="CustomFeed">');
optgroup_customfeed.attr('label', val.type);
$("#channel_hash").append(optgroup_customfeed);
$("<option>").val(val.channel_hash).text(val.name).appendTo("#CustomFeed");
} else {
$("<option>").val(val.channel_hash).text(val.name).appendTo("#CustomFeed");
}
}
if(val.type == 'Advertising'){
if($('optgroup[label="Advertising"]').length == 0){
var optgroup_advertising = $('<optgroup id="Advertising">');
optgroup_advertising.attr('label', val.type);
$("#channel_hash").append(optgroup_advertising);
$("<option>").val(val.channel_hash).text(val.name).appendTo("#Advertising");
} else {
$("<option>").val(val.channel_hash).text(val.name).appendTo("#Advertising");
}
}
if(val.type == 'Comparison shopping engine'){
if($('optgroup[label="Comparison shopping engine"]').length == 0){
var optgroup_shopping = $('<optgroup id="Shopping">');
optgroup_shopping.attr('label', val.type);
$("#channel_hash").append(optgroup_shopping);
$("<option>").val(val.channel_hash).text(val.name).appendTo("#Shopping");
} else {
$("<option>").val(val.channel_hash).text(val.name).appendTo("#Shopping");
}
}
if(val.type == 'Marketplace'){
if($('optgroup[label="Marketplace"]').length == 0){
var optgroup_marketplace = $('<optgroup id="Marketplace">');
optgroup_marketplace.attr('label', val.type);
$("#channel_hash").append(optgroup_marketplace);
$("<option>").val(val.channel_hash).text(val.name).appendTo("#Marketplace");
} else {
$("<option>").val(val.channel_hash).text(val.name).appendTo("#Marketplace");
}
}
});
})
.fail(function( data ) {
console.log('Failed AJAX Call :( /// Return Data: ' + data);
});
});
jQuery("#fileformat").on("change", function(){
var fileformat = this.value;
if (fileformat == "xml"){
$('#delimiter').remove();
} else {
// Put delimiter dropdown back
if($("#delimiter").length == 0){
$('#file').after('<tr id="delimiter"><td><span>Delimiter:</span></td><td><select name="delimiter" class="select-field"><option value=",">, comma</option><option value="|">| pipe</option><option value=";">;</option><option value="tab">tab</option><option value="#">#</option></select></td></tr>');
}
}
});
var manage_fileformat = jQuery("#fileformat").val();
var project_update = jQuery("#project_update").val();
if (manage_fileformat == "xml"){
$('#delimiter').remove();
}
if (project_update == "yes"){
$('#goforit').attr('disabled',false);
}
});

View File

@@ -0,0 +1,157 @@
jQuery(document).ready(function($) {
// Dialog opener for information on mapping attributes
jQuery( "#dialog" ).dialog({
autoOpen: false,
show: {
effect: "blind",
duration: 1000
},
hide: {
effect: "explode",
duration: 1000
}
});
// Add a mapping row to the table for field mappings
jQuery(".add-field-mapping").on('click', function(){
var nonce = $('#_wpnonce').val();
var channel_hash = $('#channel_hash').val();
var prevRow = $("tr.rowCount:last input[type=hidden]").val();
var addrow_value = $('#addrow').val();
// When user deletes all default fields
if (prevRow === undefined){
prevRow = 0;
}
var rowCount = Number(prevRow) + Number(addrow_value);
var newrow_value = Number(addrow_value) + Number(1);
$('#addrow').val(newrow_value);
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: {
'action': 'woosea_fieldmapping_dropdown',
'rowCount': rowCount,
'security': nonce,
'channel_hash': channel_hash
}
})
.done(function( data ) {
data = JSON.parse( data );
$( '#woosea-fieldmapping-table' ).append('<tr><td><input type="hidden" name="attributes[' + rowCount + '][rowCount]" value="' + rowCount + '"><input type="checkbox" name="record" class="checkbox-field"></td><td><select name="attributes[' + rowCount + '][attribute]" class="select-field">' + data.field_options + '</select></td><td><input type="text" name="attributes[' + rowCount + '][prefix]" class="input-field-medium"></td><td><select name="attributes[' + rowCount + '][mapfrom]" class="select-field">' + data.attribute_options + '</select></td><td><input type="text" name="attributes[' + rowCount + '][suffix]" class="input-field-medium"></td></tr>');
$('.select-field').on('change', function(){
if ($(this).val() == "static_value") {
var rownr = $(this).closest("tr").prevAll("tr").length;
$(this).replaceWith('<input type="text" name="attributes[' + rowCount + '][mapfrom]" class="input-field-midsmall"><input type="hidden" name="attributes[' + rowCount + '][static_value]" value="true">');
}
});
})
.fail(function( data ) {
console.log('Failed AJAX Call :( /// Return Data: ' + data);
});
});
// Add a mapping row to the table for own mappings
jQuery(".add-own-mapping").on('click', function(){
var nonce = $('#_wpnonce').val();
var channel_hash = $('#channel_hash').val();
var prevRow = $("tr.rowCount:last input[type=hidden]").val();
var addrow_value = $('#addrow').val();
// When user deletes all default fields
if (prevRow === undefined){
prevRow = 0;
}
var rowCount = Number(prevRow) + Number(addrow_value);
var newrow_value = Number(addrow_value) + Number(1);
$('#addrow').val(newrow_value);
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: {
'action': 'woosea_fieldmapping_dropdown',
'security': nonce,
'rowCount': rowCount,
'channel_hash': channel_hash
}
})
.done(function( data ) {
data = JSON.parse( data );
$( '#woosea-fieldmapping-table' ).append('<tr><td><input type="hidden" name="attributes[' + rowCount + '][rowCount]" value="' + rowCount + '"><input type="checkbox" name="record" class="checkbox-field"></td><td><input name="attributes[' + rowCount + '][attribute]" id="own-input-field" class="input-field"></td><td><input type="text" name="attributes[' + rowCount + '][prefix]" class="input-field-medium"></td><td><select name="attributes[' + rowCount + '][mapfrom]" class="select-field">' + data.attribute_options + '</select></td><td><input type="text" name="attributes[' + rowCount + '][suffix]" class="input-field-medium"></td></tr>');
$('.select-field').on('change', function(){
if ($(this).val() == "static_value") {
var rownr = $(this).closest("tr").prevAll("tr").length;
$(this).replaceWith('<input type="text" name="attributes[' + rowCount + '][mapfrom]" class="input-field-midsmall"><input type="hidden" name="attributes[' + rowCount + '][static_value]" value="true">');
}
});
})
.fail(function( data ) {
console.log('Failed AJAX Call :( /// Return Data: ' + data);
});
});
jQuery("#savebutton").on('click', function(){
$("#own-input-field").each(function() {
var input=$(this).val();
var re = /^[a-zA-Zа-яА-Я_-]*$/;
if (input.indexOf("PARAM_") >= 0){
// For Yandex, Zbozi and Heureka also accept Cyrillic characters
var re = /.*/;
}
var minLength = 2;
var maxLength = 50;
var is_input=re.test(input);
// Check for allowed characters
if (!is_input){
$('form').submit(function(){
return false;
});
$('.notice').replaceWith("<div class='notice notice-error is-dismissible'><p>Sorry, when creating new custom fields only letters are allowed (so no white spaces, numbers or any other character are allowed).</p></div>");
} else {
// Check for length of fieldname
if (input.length < minLength){
$('form').submit(function(){
return false;
});
$('.notice').replaceWith("<div class='notice notice-error is-dismissible'><p>Sorry, your custom field name needs to be at least 2 letters long.</p></div>");
} else if (input.length > maxLength){
$('form').submit(function(){
return false;
});
$('.notice').replaceWith("<div class='notice notice-error is-dismissible'><p>Sorry, your custom field name cannot be over 20 letters long.</p></div>");
} else {
$("#fieldmapping")[0].submit();
}
}
});
});
jQuery('.select-field').on('change', function(){
if ($(this).val() == "static_value") {
// var rownr = $(this).closest("tr").prevAll("tr").length;
var rownr = $(this).closest('tr').attr("class").split(' ')[1];
$(this).replaceWith('<input type="text" name="attributes[' + rownr + '][mapfrom]" class="input-field-midsmall"><input type="hidden" name="attributes[' + rownr + '][static_value]" value="true">');
}
});
// Find and remove selected table rows
jQuery(".delete-field-mapping").on('click', function(){
$("table tbody").find('input[name="record"]').each(function(){
if($(this).is(":checked")){
$(this).parents("tr").remove();
}
});
});
});

Some files were not shown because too many files have changed in this diff Show More