Attributes and attribute terms for custom plugin

This topic has 3 replies, 2 voices, and was last updated 1 year, 3 months ago ago by Atdhe

  • Avatar: Atdhe
    Atdhe
    Participant
    December 2, 2022 at 12:54

    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.

    Please, contact administrator
    for this information.
    2 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 2, 2022 at 16:10

    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

    Avatar: Atdhe
    Atdhe
    Participant
    December 2, 2022 at 18:12

    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.

  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘Attributes and attribute terms for custom plugin’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.