Attributes added with REST API not showing
-
I’m trying to sync my new woocommerce site with my old website. So if a product is on the list to be synced, it is posted onto the woocommerce products list using a php script which includes the following code:
‘attributes’ => array(
array(
‘name’ => ‘Colour’,
‘visible’ => true,
‘options’ => array($colour),
),This works and the product with all the attributes set, eg. Colour: White, appears in the product list and looks exactly like the products I’ve created manually. But when I try to use the colour filter on woocommerce. Only the filters for the products I created manually are shown. For example I manually created a blue gem and the filter “blue” is the only filter shown, although I have many products with many different colours, all with their colour attributes set. As far as I can see there is no difference between the blue gem and any of the others.
The page I need help with: [log in to see the link]
- The topic ‘Attributes added with REST API not showing’ is closed to new replies.