WooCommerce Meta Fields
We store some data in meta fields on WooCommerce. This KB article will list out these meta fields which can be useful in importing/exporting data from Woo
Product Sync
When Woo is the master for products, the products sync from Woo > Epos Now. Our plugin adds custom fields for the Woo products and variations.
The custom fields for products are listed here. You can see where to find them in the WooCommerce admin in this article.
| WooCommerce Meta Key | Type | Values | EposNow Field |
|---|---|---|---|
| sln_ignore_stock_update | boolean | 0,1 |
0 = process stock updates 1 = ignore stock updates |
| sln_ignore_product_update | boolean | 0,1 |
0 = process product updates 1 = ignore productupdates |
| sln_epn_title | text |
|
Product name to be used on EposNow. If not set, defaults to woo product name. Does not affect Woo product name. Useful when abbreviated names need to be used on EposNow. Has a 40 character limit. |
| sln_epn_description | text |
|
Product description to be used on EposNow. If not set, defaults to sln_epn_title. Does not affect Woo product description. Has a 127 character limit. |
| sln_product_type | text | standard, measured, weighted |
Type of product on EposNow. Cannot be changed once set. |
| sln_sale_price_measurement_scheme_item_id | integer |
1 => “Centimetres”, 2 => “Metres”, 3 => “Grams”, 4 => “Kilograms”, 5 => “Millilitres”, 6 => “Centilitres”, 7 => “Litres”, 8 => “Square Centimeter”, 9 => “Square Meter”, 11 => “Square Feet”, 12 => “Square Yard”, 18 => “Yards” |
only needs to be set for weighed and measured products SalePriceMeasurementSchemeItemId |
| sln_sale_price_measurement_unit_volume | integer |
|
EPN Measurement Unit Volume |
| sln_unit_multiplier | double |
|
Slynk unit multiplier. Useful with multipacks and measured/weighed products |
| sln_wc_measurement_unit | integer |
1 => “Centimetres”, 2 => “Metres”, 3 => “Grams”, 4 => “Kilograms”, 5 => “Millilitres”, 6 => “Centilitres”, 7 => “Litres”, 8 => “Square Centimeter”, 9 => “Square Meter”, 11 => “Square Feet”, 12 => “Square Yard”, 18 => “Yards” |
only needs to be set for weighed and measured products |
| sln_epn_cost_price | double |
|
EposNow cost price Recommend setting this field in Woo and adding to field mapping as EposNow creates stock batches using the cost price at the time the stock was added. When the stock is deducted, it deducts from the oldest stock batch and uses the cost price from the stock batch to determine the margin. |
| sln_epn_eat_out_price | double |
|
Eat out price |
| sln_epn_rrp_price | double |
|
Rrp price |
| sln_epn_barcode | text |
|
Barcode |
| sln_epn_order_code | text |
|
Order code |
| sln_epn_article_code | text |
|
Article Code |
| sln_epn_brand_id | integer |
|
EposNow brand ID |
| sln_epn_supplier_id | integer |
|
EposNow supplier ID |
| sln_epn_tare_weight | integer |
|
EposNow tare weight |
| sln_epn_size | text |
|
EposNow Size attribute |
| sln_product_category_master | integer | WooCommerce category ID |
Which category should be used when checking the category mapping. Only required if category mapping is enabled on your Slynk account. |
| sln_epn_product_id | integer |
|
The EposNow product ID. Only used when importing products from EposNow to Woo for initial product linking. |
| sln_epn_sort_position | integer |
|
The sort position on the Epos Now till for this product |
| sln_epn_sell_on_till | boolean | true,false | Whether this item should be available on the Epos Now till. If left blank, it will leave this setting as is on EN. |
Order Sync
When Woo is set to be the master for stock, EN orders sync into WooCommerce. The following table shows the meta fields that we sync additional data to in the Woo order.
| Epos Now Transaction | Woo Order meta |
|---|---|
| TotalAmount | _eposnow_total_amount |
| ServiceCharge | _eposnow_service_charge |
| Gratuity | _eposnow_gratuity |
| DiscountValue | _eposnow_discount_value |
| NonDiscountable | _eposnow_non_discountable |
| NonTax | _eposnow_non_tax |
| IsTransactionIncTax | _eposnow_is_transaction_inc_tax |
| Taxes | _eposnow_taxes_summary |
| EposNow Source Key | Woo Order Meta |
|---|---|
| TenderTypeId | _eposnow_tender_TenderTypeId_0 |
| Amount | _eposnow_tender_Amount_0 |
| ChangeGiven | _eposnow_tender_ChangeGiven_0 |
| IsCashback | _eposnow_tender_IsCashback_0 |
| Type | _eposnow_tender_Type_0 |
| PlatformFees | _eposnow_tender_PlatformFees_0 |
| PspReference | _eposnow_tender_PspReference_0 |
| Last4 | _eposnow_tender_Last4_0 |
| Bin | _eposnow_tender_Bin_0 |
| Epos Now Transaction Customer Data | Woo Order Meta |
|---|---|
| Id | _eposnow_customer_id |
| Forename | _eposnow_customer_forename |
| Surname | _eposnow_customer_surname |
| EmailAddress | _eposnow_customer_email |
| AddressLine1 | _eposnow_customer_addressline1 |
| AddressLine2 | _eposnow_customer_addressline2 |
| Town | _eposnow_customer_town |
| County | _eposnow_customer_county |
| PostCode | _eposnow_customer_postcode |
| Epos Now Line Item Data | Woo Order Line Item Meta |
|---|---|
| UnitPrice | _eposnow_unit_price |
| UnitPriceExcTax | _eposnow_unit_price_exc_tax |
| CostPrice | _eposnow_cost_price |
| TaxAmount | _eposnow_tax_amount |
| DiscountAmount | _eposnow_discount_amount |
| DiscountAmountExcTax | _eposnow_discount_amount_exc_tax |
| IsTaxExempt | _eposnow_is_tax_exempt |
| Taxes[0].Rate | _eposnow_tax_rate |