• Resolved franckt45

    (@franckt45)


    Hello

    First of all, congratulations on the plugin. However, I’m encountering an issue with {{items_attributes}} in WooCommerce. In Google Sheets, it exports only a single attribute, whereas there are multiple attributes (Size, color, customization, etc.).

    Thank you in advance for your assistance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nasir Ahmed

    (@nasirahmed)

    Hello,

    You can use {{itemmeta_xxxx}} tag to send additional item fields. Observe the woocommerce_ordder_itemmeta database table, and how the data is saved. You can use the meta key with the above-mentioned tag and send the data to Google Sheets or any receiver platform. Example: {{itemmeta_size}}, {{itemmeta_color}} etc. See this attached image.

    View post on imgur.com

    • This reply was modified 1 year, 5 months ago by Nasir Ahmed.
    Thread Starter franckt45

    (@franckt45)

    Thank you very much pour your reply. I will test as soon as possible..

    On the other hand, I don’t understand the usefulness of {{items_attributes}} ? Color and size are saved in WooCommerce attributes.

    Best regards,

    Plugin Author Nasir Ahmed

    (@nasirahmed)

    Hello,

    {{items_attributes}} is the result of WC_Product::get_attributes() function. The AFI plugin calls the function by providing the item ID as an argument and and uses the data it gets in return. The plugin doesn’t modify any data, it just sends what it get.

    Thread Starter franckt45

    (@franckt45)

    Thank you !  WC_Product::get_attributes() function just send only a single product attribute . It’s weird

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘{{items_attributes}} in WooCommerce’ is closed to new replies.