如何为特定国家/地区显示不同的产品价格? [英] How Can I Show Different Price Of Product For Specific Countries?

查看:172
本文介绍了如何为特定国家/地区显示不同的产品价格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Expertisers .. !!!



我是Tarun,是一名核心程序员。



我有一个在vb.net平台上运行的电子书门户网站。在这里,我需要为某些特定国家/地区显示不同的书籍价格。喜欢:拉丁美洲国家和加勒比国家。



我的242个国家/地区列在我的数据库中,其国家的简称和大陆代码。



所以,我需要在这里显示不同的价格(上段提到的国家名称)国家。



例如:一本书的全球价格为40美元。但是当用户试图从墨西哥购买该书时,价格将为用户可见,金额为35美元。



那么,我如何展示这本书的价格?

Hello Expertisers..!!!

I'm Tarun, working as a core programmer.

I've an e-book portal which is running on vb.net platform. Here, I need to show different price of book for some specific countries. Like: Latin American countries and caribbean countries.

I've 242 countries list in my database with thier country's short name and continent code.

So, here i need to show different prices for them(country names mentioned in above paragraph) countries.

For an example: A book has price in dollars 40$ for all over the world. But when a user is trying to buy that book from "MEXICO" then the price will be visible to the user with the amount of 35$.

So, how do i show that price for the book?

推荐答案

适用于全世界。但是当用户试图从MEXICO购买该书时,用户可以看到价格为35
for all over the world. But when a user is trying to buy that book from "MEXICO" then the price will be visible to the user with the amount of 35


的价格。



那么,我如何显示这本书的价格?
.

So, how do i show that price for the book?


我们不能给你具体细节,因为我们有不知道你的系统是如何工作的。

例如,您可以在每个国家/地区应用折扣值作为百分比,因此墨西哥需要与其相关的折扣值13.5%

但是如果每个国家/地区每本书都需要一个单独的价格,然后你需要一个更大的系统,每个国家的每本书都有查找代码 - 而在242个国家,单独输入数据就越复杂!



但基本上过程是一样的:

1)确定用户所在的国家/地区。您可以从IP地址执行此操作,但这不是很准确: 使用基于IP的地理定位 - 以及为什么它几乎没用。 [ ^ ] - 最好从用户送货地址中识别国家/地区,然后依赖于ele电子鉴定。

2)获取国家和书籍的书价。这取决于你如何计算出价格!

3)不要忘记允许不同的运输费用/方法 - 有些国家更难运送,这意味着更多的成本。请记住,可以应用当地的进口税。
We can't give you specifics, because we have no idea how your system works.
For example, you could be applying a discount value as a percentage in each country, so Mexico would need a discount value associated with it of 13.5%
But if each country needs a separate price for each book, then you need a much bigger system with lookup codes for each book, for each country - and with 242 countries, that's getting complex to administer in terms of data entry alone!

But basically the process is the same:
1) Identify which country the user is in. You can do this from the IP address, but it's not very accurate: Using IP based Geolocation - and why it's pretty much useless.[^] - it's better to identify the country from the user shipping address, ratehr thna rely on electronic identification.
2) Get the book price for the country and book. This will depend on how you work out teh price!
3) Don't forget to allow for different shipping costs / methods - some countries are harder to ship to and that means more cost. Remember local import duties may be applied.


这篇关于如何为特定国家/地区显示不同的产品价格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆