Applicable for the following version/s:
Reference Checkout 2.0 & 2.1 (Bundle 41420)
In Reference Checkout 2.0, only the Store Display Name, Price, Thumbnail Image, SKU(Item Name/Number) of an Item are displayed in the Shopping Cart by default.
To add an Item's Web Store Description to the details shown in the Reference Shopping Cart, follow these steps:
1. Navigate to Documents > Files > File Cabinet, then open this folder: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. > Reference Checkout.
2. Copy the files listed below from the Reference Checkout application folder to their corresponding folders in the Custom Checkout application folder:
/templates/shopping_cart/macros/shopping_cart_item_macro.txt
/js/src/app/ItemsKeyMapping.js
3. Navigate to Documents > Files > File Cabinet, then open this folder: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. > Custom Checkout > js > src > app. Click Edit next to the ItemsKeyMapping.js file, and click the Edit link in the file record.
4. Scroll to the bottom of the script, and add this code:
, _storeDescription: 'storedescription'
after this code:
, _ratingsCountsByRate: function (item)
{
return item.get('custitem_ns_pr_rating_by_rate') && JSON.parse(item.get('custitem_ns_pr_rating_by_rate')) || {};
}
5. Click the Save button.
6. Navigate to Documents > Files > File Cabinet, then open this folder: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. > Custom Checkout > templates > shopping_cart > macros. Click Edit next to the shopping_cart_tem_macro.txt file, and click the Edit link in the file record.
7. Locate this line:
and add this code after it enclosed in a DIV tag:
8. Click the Save button.
No comments:
Post a Comment