antonioxdias Posted October 8, 2020 Share Posted October 8, 2020 Hello there! I've been integrating an embedded feature in a product page, using a Code Block in the Additional Info section. For this to work as intended, i need to be able to access the current product data (name, price, quantity). Is there a way to do this, via a global product variable or similar, without having to scrape the page? Thanks! António Dias Link to comment
tuanphan Posted October 10, 2020 Share Posted October 10, 2020 You want to find name, price, quantity css class name or??? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
antonioxdias Posted October 12, 2020 Author Share Posted October 12, 2020 So, i've got what i needed by scraping the page, and getting the product info directly from the elements innerText. But the ideal solution was if there was some sort of injected variable i could access to that had that information. Something like product.name product.price product.quantity Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.