I hope this message finds you well. I am reaching out to seek assistance from knowledgeable members of the Shopify community regarding a specific requirement we have for our Shopify store. Our aim is to apply an additional charge of $0.50 to the cart total when a customer selects a specific state ( Like New York ) in the United States during the checkout process. However, if the customer unselects or chooses a different state, this additional charge should not apply.
We have explored the available options within Shopify’s native settings, but we have been unable to find a straightforward solution to meet this requirement. Therefore, we would greatly appreciate your expertise and insights on how to achieve this functionality. Here is a summary of the requirement:
When a customer selects the state of New York during checkout, an extra charge of $0.50 should be added to the cart total.
If the customer unselects or chooses a different state, the $0.50 charge should not apply.
We understand that this may require some customization or integration with third-party apps. We are open to your recommendations and suggestions on the best approach to accomplish this requirement effectively.
If you have encountered a similar scenario or have expertise in customizing Shopify to meet specific needs, we kindly request your assistance in providing detailed steps, code snippets, or recommendations to implement this feature correctly. Any additional information or guidance you can provide would be highly appreciated.
Thank you for your time and support. We greatly value the knowledge and expertise within the Shopify community and look forward to hearing from you.
One way is to use a third-party app. There are a number of apps available that can help you to add additional charges to your cart based on the customer’s state.
Another way is to use Shopify Liquid. You can use Liquid to add a new line item to the cart with the title “New York State Tax” and the amount $0.50. You can then use Liquid to conditionally show or hide this line item based on the customer’s state.
Here is an example of how you can add a new line item to the cart with Liquid:
{% if customer.state == "NY" %}
<p>
<strong>New York State Tax</strong>
<span>$0.50</span>
</p>
{% endif %}
Here is an example of how you can conditionally show or hide a line item based on the customer’s state:
{% if customer.state == "NY" %}
<li class="line-item">
<span class="title">New York State Tax</span>
<span class="amount">$0.50</span>
</li>
{% endif %}
Whichever method you choose, make sure to test it thoroughly to make sure that it is working correctly.
Thank you for your response and suggestions. I appreciate your input.
However, in our specific case, we are looking for a solution that applies the additional charge in the checkout page based on state select rather than just displaying it as a line item in the cart. Therefore, using Liquid to modify the cart may not meet our requirements.
We are interested in exploring any available Shopify functionality or third-party apps that can help us achieve the desired outcome of applying an additional charge of $0.50 based on the customer’s state selection on the checkout page. If you have any recommendations or insights regarding such solutions, we would greatly appreciate your input.
Great question! I was wondering if you have looked at adding a handling fee or adjusting the shipping rates for customers checking out from that specific state?
You can split your shipping zones so that the state of New York is separate from the rest of the states of the USA and if you are using carrier calculated rates you can add a handling fee to those rates to automatically add a .50 charge. If you are using your own rates, you can instead bump those by an additional .50 charge as well.
Thank you for your response and suggestion. Splitting the shipping zones and adding a handling fee or adjusting the shipping rates based on the customer’s state is indeed one approach to consider.
However, in our specific requirement, we need to apply an additional charge of $0.50 to the cart total directly, rather than adding it to the shipping rates or as a handling fee. This additional charge is not related to shipping specifically, but rather a separate fee that should be applied based on the customer’s state selection.
We are exploring options to achieve this functionality using Shopify’s native features or a custom app. If you have any insights or suggestions on how we can implement this additional charge without directly impacting the shipping rates, we would greatly appreciate your input.