You have no items in your shopping cart.

Saturday, July 20, 2019 5:02:13 PM

Need AttributeCombination SKU Passed to dataLayer

Avatar

Posted: 22 days ago

#8886 Quote

Scott

Posted: 22 days 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

Avatar

Posted: 22 days ago

#8887 Quote

Scott

Posted: 22 days 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.
Avatar

Posted: 22 days ago

#8888 Quote

Support

Posted: 22 days 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.
Avatar

Posted: 22 days ago

#8889 Quote

Scott

Posted: 22 days 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
Avatar

Posted: 17 days ago

#8892 Quote

Scott

Posted: 17 days ago

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

Posted: 17 days ago

#8895 Quote

Support

Posted: 17 days 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.
Avatar

Posted: 17 days ago

#8898 Quote

Scott

Posted: 17 days 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
Avatar

Posted: 17 days ago

#8900 Quote

Support

Posted: 17 days 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.
Avatar

Posted: 11 days ago

#8902 Quote

Scott

Posted: 11 days ago

#8902 Quote
Hello,

It works perfectly now!

Thanks
Avatar

Posted: 10 days ago

#8904 Quote

Scott

Posted: 10 days ago

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

Powered by nopCommerce

Copyright © 2019 FoxNetSoft. All rights reserved