This topic has 3 replies, 2 voices, and was last updated 1 years, 11 months ago ago by Atdhe
Hi there, I created a plugin to import products and insert them into woocommerce from third party API, while I tested this plugin on a staging site which is on the same server as main website, the staging site did not have the xstore theme, so today when I added the plugin. everything works perfectly except the product attributes, the parent attributes Color and Size are created but their terms are not, if your dev could just please take a quick look at the code I have provided to let me know if I am giving out the wrong slug_name or something which your theme uses since it doesnt work with the standard slugs, thank you and I hope to receive some positive news, now remember I am not expecting your devs to code a solution for me, I just need them to confirm if the slugs I used are correct for inserting terms like pa_color and pa_size or should I use something else that theme uses, thank you.
Hello,
We would recommend you contact the support of WooCommerce.
Slugs are partially correct, but they may be different
namely
pa_color and pa_size – default that comes with our imports, but it is correct that the slug is calculated according to this formula https://prnt.sc/SSZ83ctmevDc https://prnt.sc/tUDReudfwAZB
Regards
Hi there,
Actually everything is working perfectly, the attribute terms were added after the second cron so there are no issues, thank yo for replying.
Tagged: attribute terms, attributes, custom, plugins, themes, woocommerce, wordpress
The issue related to '‘Attributes and attribute terms for custom plugin’' has been successfully resolved, and the topic is now closed for further responses