Monday, November 26, 2018

Customize the native Paypal Express Checkout button in the Shopping cart page

After enabling the Paypal Express Checkout, it will automatically create a 'Checkout with Paypal' button in the Shopping cart. There is no standard setting to change or customize this native button. The only option is to create a script to override the image using jquery. Instructions are as follows:

1. Navigate to Setup > Site Builder > Tags > New to create an empty tag.
2. Navigate to Setup > Site Builder > Themes > customize any basic theme.
3. Under General subtab > ADDITION TO <HEAD> section > insert this code:

4. Under Body subtab > CONTENT AREA TEMPLATE > add the website tag created in Step #1.
5. Click Save.
6. Navigate to Lists > Website > Tabs > Edit Shopping Cart.
7. Under Tag Substitution subtab > select the Website tag > then in the Substitution Value text area, copy and paste this script:


8. Click Save.
9. Navigate to Setup > Site Builder > Setup Website > Appearance tab to apply the custom Website Theme.
10. Click Save.


Disclaimer: The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. NetSuite Inc. does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in using their own Web server configurations.

NetSuite Inc. does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. NetSuite Inc. disclaims all warranties, express or implied, and in particular, disclaims all warranties of merchantability, fitness for a particular purpose, and warranties related to the code, or any service or software related thereto.

NetSuite Inc. shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.

No comments:

Post a Comment