Set delivery method based on the items added to the cart

We can set delivery method based on the items added to the cart also based on the subscribed user or address with residential // Get the shipping configuration and profile let shippingConfig = Configuration.ShippingItems.config; let profile = ProfileModel.getInstance(); let isSpecialSubscriber = profile.attributes.customfields.find(field => field.name === ‘yourCustomFieldName’)?.value === ‘T’; // Modify field name as needed //… Continue reading Set delivery method based on the items added to the cart

Points to Note While Removing ‘Free’ From Shipping Methods with Zero Rate

Removing the “Free!” text from the shipping method list displayed on the website on the checkout page using content management. We can only replace the text by blank space or any other alternative symbol or text. The Shipping methods with non-zero cost will be displayed in the UI, only zero-cost in shipping method the “Free!”… Continue reading Points to Note While Removing ‘Free’ From Shipping Methods with Zero Rate

How to Convert ship method into abbreviated form for displaying in the SCA website.

In the NetSuite the ship method values contains 2 or three words in it for example: “3rd party FedEX” so if any client wants to display on the the abbreviation or a single word we can use the following javascript for converting the ship method. Example: “3rd party FedEX” can be converted into FEDEX and… Continue reading How to Convert ship method into abbreviated form for displaying in the SCA website.

Hide delivery option based on checkbox value

Hide the delivery option from the checkout if the checkbox is enabled in the customer record.Else the working should be standard.create a new entity field in the customer record(checkbox)Hide the delivery method section from the checkout page- In this scenario, there should be a default shipping method will be selected in the order. Solution: 1.Create… Continue reading Hide delivery option based on checkbox value