Expose product id as an html data attribute

For building ecommerce apps that leverage the product Id, the cleanest approach to accessing per-product data with the fewest network requests is to have the product id for a product available on page load. Presently the site and page id are added as data attributes to the html tag, I propose doing the same with the product id.
  • Dan Sutherland
  • May 26 2023
  • Hollie Ford commented
    27 May, 2023 06:04am

    Hello, Dan Sutherland

    I want some information abut the leverage the product id, because i have some project and this info is helpful for my project. i hope you will help me.

    Best regard,
    Hollie Ford