30 lines
451 B
JavaScript
30 lines
451 B
JavaScript
|
/**
|
||
|
* A basic product variation.
|
||
|
*
|
||
|
* For more details on the product variation properties, see:
|
||
|
*
|
||
|
* https://woocommerce.github.io/woocommerce-rest-api-docs/#product-variations
|
||
|
*
|
||
|
*/
|
||
|
const variation = {
|
||
|
regular_price: '20.00',
|
||
|
attributes: [
|
||
|
{
|
||
|
name: 'Size',
|
||
|
option: 'Large',
|
||
|
},
|
||
|
{
|
||
|
name: 'Colour',
|
||
|
option: 'Red',
|
||
|
},
|
||
|
],
|
||
|
};
|
||
|
|
||
|
const getExampleVariation = () => {
|
||
|
return variation;
|
||
|
};
|
||
|
|
||
|
module.exports = {
|
||
|
getExampleVariation,
|
||
|
};
|