OriginProtocol / dshop

Origin Dshop - launch your own decentralized store
https://www.originprotocol.com/dshop
MIT License
138 stars 87 forks source link

Display taxes in order summary on shops using themes #1013

Closed phyninja closed 2 years ago

phyninja commented 2 years ago

Issue:

On the master branch, only users of the Default theme can charge taxes on orders. I am committing code that's intended to support this feature for other themes.

UI testing performed in my dev environment:

https://user-images.githubusercontent.com/10854442/142399872-3d0c2f80-95f9-43bb-8c77-e2c0a6401440.mov

Jump to: 0:53 - Test that taxes are loaded for a customer from a taxed 'province' [Desktop] 2:09 - Test that taxes are loaded for a customer from a taxed 'country' [Desktop] 3:20 - Test that taxes are loaded for a customer from a taxed 'country' [Mobile] 4:06 - Test that taxes are loaded for a customer from a taxed 'province' [Mobile]

Important In the video, the value of tax calculated is incorrect; this has been addressed with help from @franckc (see https://github.com/OriginProtocol/dshop/pull/939/commits/727cc097e614ca65d05cd1b748e162a78d14d6bd).