changing locations in django satchmo

发布于 2022-09-06 10:19:23 字数 670 浏览 11 评论 0

I am using Satchmo(skeleton project that comes in the projects folder when you download Satchmo) but am not in the US. I see that by default there is a Zipcode/Postcode* and list of states on the checkout page.

My question is, is the best way to change this(location details, billing information) to edit the /satchmo/apps/satchmo_store/shop/models.py file (hard edit the Order model) or is there a better way to maybe set your location to a place other than the USA?

The reason I'm asking is because I'm not sure what implication a change like this might have throughout the skeleton project if I just deleted the zip code column.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无法言说的痛 2022-09-13 10:19:23
  1. go to /admin/l10n/country/ and mark the appropriate countries as active
  2. go to /admin/shop/config/, select the site (probably localhost) and set the default shipping country and possible shipping countries
  3. if you want to control whether the state and ZIP are requred or not, go to /settings/ , select "Satchmo Shop Settings" and modify "Required billing data", "Required shipping data" and "State required?" settings.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文