notrab / headless-dropshipping-starter

Create your own dropshipping store with Next.js, Snipcart & Printful 👕

Home Page:https://headlessdropshipping.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tax calculation

moxley01 opened this issue · comments

Hey there,

In the /api/snipcart/tax endpoint there is a line which goes

if (eventName !== "shippingrates.fetch") return res.status(200).end();

Shouldn't shippingrates.fetch be taxes.calculate ?

Hey there,

In the /api/snipcart/tax endpoint there is a line which goes

if (eventName !== "shippingrates.fetch") return res.status(200).end();

Shouldn't shippingrates.fetch be taxes.calculate ?

yes you are right!!

I'd happily accept a PR

Hey frens!

It is not calculating the taxes using retail prices, right?