add_shipping_info and add_payment_info ecommerce.items is not an array

[ad_1]

Hi,

I was testing and saw that in the add_shipping_info and add_payment_info ecommerce.items is not an array of dictionaries, but a dictionary of dictionaries.

{
  event: "add_shipping_info",
  gtm: {XXXXXXXXXXXX
    },
  ecommerce: {
    currency: "BRL",
    value: "206",
    shippingTier: "1",
    items: <span style="text-decoration: underline;">{
      0: {</span>
        id: "2441",
        item_id: "2441",
        item_name: "Com Você",
        currency: "BRL",
        price: 89,
        google_business_vertical: "retail",
        item_category: "Para casa",
        item_category2: "quadro",
        item_variant: "com-moldura-pinus-a4",
        quantity: 2
      }<span style="text-decoration: underline;">,
      1: {</span>
        id: "2439",
        item_id: "2439",
        item_name: "Sentido Faz",
        currency: "BRL",
        price: 28,
        google_business_vertical: "retail",
        item_category: "Para casa",
        item_category2: "quadro",
        item_variant: "print-a4-21-x-297cm",
        quantity: 1
      }
    }
  }
}

In my plugin config I’m using:
When a shipment method is selected with fallback to the ‘Place order’ button.

and

When a payment method is selected with fallback to the ‘Place order’ button.

Maybe it is related to this options.

Best regards, Diego.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer