Jump to content

Can I show a product price with and without Tax

Recommended Posts

2 hours ago, amba said:

Site URL: https://ambrand.nz/

hello

I need to show our product prices including and excluding gst ( Tax) 

Does anyone know how I could do this?

Thanks

Have you refer information from the following link:https://support.squarespace.com/hc/en-us/articles/206540947-Setting-up-manual-tax-rates-in-Squarespace-Commerce

Edited by bangank36

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

The following is not a solution but a pointer to a part of a possible solution you may need.

The cited code watches prices and allows a developer to create a callback to manipulate prices.

Taxes can be extremely complicated and my code knows nothing of them. The developer would need to deal with all that. At its simplest you could have a single tax rate that would be applied to the price and then you'd display both prices. If you have a more complex tax system then the code could turn into a nightmare very quickly.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment

Thanks, That gave me an idea. 

I could use the sale price as a section that would exclude the tax amount and change it from sales to including and excluding tax.  Need to remove the strikeout and the word sale.

.product-price::after {
    content: ' including';
}
.original-price::before {
    content: ' excluding ';
}
.products.collection-content-wrapper .original-price {
    text-decoration: none;
}
.product-mark.sale {
    visibility: hidden;
}

 

unfortunately this is all on one line, would prefer the one price below the other.

 

Any input would be greatly appreciated. 

Link to comment
On 10/10/2022 at 6:53 AM, amba said:

Thanks, That gave me an idea. 

I could use the sale price as a section that would exclude the tax amount and change it from sales to including and excluding tax.  Need to remove the strikeout and the word sale.

.product-price::after {
    content: ' including';
}
.original-price::before {
    content: ' excluding ';
}
.products.collection-content-wrapper .original-price {
    text-decoration: none;
}
.product-mark.sale {
    visibility: hidden;
}

 

unfortunately this is all on one line, would prefer the one price below the other.

 

Any input would be greatly appreciated. 

try add display: block to these code

.product-price::after {
    content: ' including';
	display: block;
}
.original-price::before {
    content: ' excluding ';
	display: block;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.