Hello every one!
Here is the situation,
I have items that is a physical copy and a digital copy, two of them is considered totally different record. but the physical copy has custom item field which links to the digital version (two field containing list/record -name and integer- internal id if digital version).
the site has 2 separate buy button, one for physical and one for digital.
the site is a site builder only (no SCA )
i can get the id of digital version just fine by doing
<%getCurrentAttribute( 'item' , 'custitem_digital_version') %>
but what i need to do is now <%=getAttribute ( 'item' , DIGITAL_VERSION_ID , '3rd param') %>
ive tried almost everything from passing it as variable(clearly would not work) to putting it straight to html as string using jquery.Ive looked on forums for hours and generally said it cant be done, and if this is the case, how would i go about doing this..i would love to just use the functions such as 'stockstatusmessagehtml' and 'addtocartsubmitscript' .im worried that if i do ajax call to suitelet , it will cause cross domain issue as well. plus, i have no idea how i would use json objects to add to cart and such using the server tags already in place.. since i cant seem to get webcontainer.any help would be greatly appreciated.