You have no items in your shopping cart.

Friday, April 26, 2024 9:39:50 PM

Need AttributeCombination SKU Passed to dataLayer

Posted: 4 years ago

#8886 Quote

Scott

Posted: 4 years ago

#8886 Quote
Hello,

In version 1.35 you had built a feature request for passing the AttributeCombination Sku value to the dataLayer but it doesn't seem to be working as expected.

If you look at this image, you'll see that the AttributeCombination SKU has a value of B-3 however this value is not being passed to the dataLayer, instead the Simple SKU value of B is being passed to the dataLayer.

We need the AttributeCombination Sku value to be passed to the dataLayer.

Hope this image clarifies the request.

Thanks

Posted: 4 years ago

#8887 Quote

Scott

Posted: 4 years ago

#8887 Quote
I don't see the image that I pasted here, if you need the image I can email it to you directly.

Posted: 4 years ago

#8888 Quote

Support

Posted: 4 years ago

#8888 Quote
I checked and it worked.
Did you enable "inventory by product attribute combination" for this product?
If yes.
Send me login and password to your store by email. I'll check it myself.

Posted: 4 years ago

#8889 Quote

Scott

Posted: 4 years ago

#8889 Quote
Hello,

That works, however as far as I see the only spot the correct Sku is being passed to is in the transactionProducts object on the order confirmation page.

The correct Sku should also be set everywhere else a Combo Sku is being output, such as:

Cart page in the cart_product_list array that is passed to the dataLayer

Order Confirmation page in the ProductIDList array that is passed to the dataLayer

Posted: 4 years ago

#8892 Quote

Scott

Posted: 4 years ago

#8892 Quote
Hello, was hoping this could be addressed in the next update. Let me know. Thanks!

Posted: 4 years ago

#8895 Quote

Support

Posted: 4 years ago

#8895 Quote
Please check careful.

1. Cart page in the cart_product_list array that is passed to the dataLayer
cart_product_list object has the correct Sku (add the product from product details page and check it).
Important!
If you want to change the attribute from shopping cart page using Ajax than plugin will not send the new Sku.

2. Order Confirmation page in the ProductIDList array that is passed to the dataLayer
Read the same answer.

Please check it and write me.

I saw that I can catch the trigger "product_attributes_changed".
Maybe it will help me to send the new event.

Posted: 4 years ago

#8898 Quote

Scott

Posted: 4 years ago

#8898 Quote
Hello,

For the Cart page I am still not seeing the AttributeCombo SKU value in dataLayer. I confirmed that the inventory is set to track for attributes. In regards to your question about if Cart is updated, I do not care about that right now, only concerned with outputting correct Attribute Combo SKU on initial page load

For the order confirmation page, I reconfirmed that the correct AttributeCombo SKU was still being passed to dataLayer but was still not being passed to the ProductIDList object in dataLayer. I am less concerned with this compared to Cart page since I can always parse transactionProducts object for the correct SKU since you are correctly outputting that now.

Thanks

Posted: 4 years ago

#8900 Quote

Support

Posted: 4 years ago

#8900 Quote
You are right.
I have found the bug and solved it.
Download new ZIP file and replace DLL file. Restart your nop store and try.
Write me about result.

Posted: 4 years ago

#8902 Quote

Scott

Posted: 4 years ago

#8902 Quote
Hello,

It works perfectly now!

Thanks

Posted: 4 years ago

#8904 Quote

Scott

Posted: 4 years ago

#8904 Quote
Review has been posted - thanks so much!

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved