less than a minute read • Updated 9 minutes ago
Hide the postal code input on the cart
How to hide the address and postal code entry on the cart so shipping and taxes calculate at checkout instead.
The following CSS styling allows you to hide the calculate shipping/taxes address entry on the cart. Shipping and/or taxes will still be calculated on the checkout - but this can be useful if you want to remove some of the requirements for customers on the cart.
Important: Note: If you are accepting payments by PayPal Express Checkout, the Sidecart currently requires that the customer complete their shipping address on the cart before it will allow them to proceed to PayPal from the cart. As such, we would recommend leaving the address entry in place if you're using that payment method from the cart.
Apply the snippet to your configuration
-Copy the style at this link onto your computer's clipboard:
<style>
#fc [data-fc-id="block-address-entry"],
#fc [data-fc-id="change-shipping-location-button"] {
display: none;
}
</style>-In the Foxy admin (https://admin.foxy.io), go to Settings > Templates.
-In the Custom header field, paste the code you copied at the top of the field (take care not to remove anything already there).
-Scroll down until you see the Update button and click to save.
-Run a test through to ensure that it works as expected.