RE: Customise Cart in Sitebuilder

Hey Netsuite Pro’s.

I’m having some issues trying to locate and edit files that relate to the Cart page in a site using Site Builder.

I have experience with SCA but not so much with SiteBuilder. I can see how the templates are put together and how to display variables and trigger functions from the HTML.

I’ve looked in the file cabinet and the ‘Web Site Hosting Files’ are empty, and there are no scripts that relate to the cart.

So my question is, how do I create a new field in the cart that will display data from a custom record? Or can I add a row to the options in the ‘Set Up Website => Cart’ where the other fields are added?

Any help would be amazing, I’ve been searching through the internet and can’t find anything that references this issue.

Thanks!

 

 

Marts2390 Rookie Asked on October 11, 2019 in SuiteCommerce.
Add Comment
9 Answers

Hey,

So there are two tasks I am trying to achieve.

Task 1:

Display a value from a custom field that if populated will add the value defined in the custom field to the cart. So I will need to write a script that pulls in the item record, and checks for this custom field, then recalculates the cart. Also displaying this custom field in the cart using the getCurrentAttribute(‘item’, ‘custom_field) as an inline cart message isn’t working, so I’m guessing that the inline message doesn’t have access to the item record, so I would need to add a tag, or edit the html for the cart.. which it seems Site Builder does not let you have access to.

Task 2:

Add a text box to Review and Submit page that a user can upload a message that will be saved to the record. I’ve used a tag that will create a text box in this page, however I need to update the record with the values that are in this text box. I’m guessing that it’ll require an additional script, but I would need to access the current record and update on submit.

Frustratingly i’ve achieved both of these previously using SCA so I would have imagined it be simpler in Site Builder but the limited documentation and access to source files has thrown a lot or road blocks.

Any help would be much appreciated!

 

Rookie Answered on October 14, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.