Getting the internal id of the sub-items from the matrix item in site builder

In the site builder we may come across the situation we want to alter the details of the sub-items in the PLP,PDP,search pages.For eg:You want to change price,add some details.
In site builder we can’t access the internal id’s of the sub-items in default way to get the internal id.All that we can have is the matrix parent item internal id.
For this we have to have a suitescript. 

  • First pass the id to the suitescript as a parameter.
  • Load the matrix item record.
  • There is a sublist id matrixmach in which the subitems is obtained as an array and we can have the subitem internal id from that.

  • We can load the sub-item record and get the details.

Leave a comment

Your email address will not be published. Required fields are marked *