In a Prestashop 1.6 based store I want to accept payments via Paypal in only one currency (Euros). However, I want to show prices in other currencies based on the location of the customer (probably using it's IP address?). How can I do that?
In Modules and services > payment you have a tab CURRENCY RESTRICTIONS, you can check in which currency you would like Paypal to be available
For currecy selection by IP:
First, you should get the user IP after, you should set the curency of the Prestashop context
$this->context->currency->id = $id_currency
To get $id_currency, follow this steps
You should get the country of the the user IP with this script
Then get the currency code by country code (you can get if from a csv file or you you should use an API or database)
The free IP Find service provides currency information in the response for any given IP Address.
Eg. http://ipfind.co?ip=8.8.8.8
Will return (among other things)
currency: USD
Related
I use prestashop 1.7.3.3 e-commerce system.
I need to get a phone number from the customer.
Phone field looks optional. I want to make it mandatory.
How can i do that?
enter image description here
You can set that field as mandatory in the BO > Customers > Addresses.
I can select a currency with a currency column but the value is always in USD, is it possible to change the currency iso code?
E.g. $39.99 this is in Canadian dollars but always appears 39.99 USD.
I see you can use text but then i am stuck with the $ symbol.
Right now i have had to use a regular expression to drop the $
What is happening is that the price you see is through your own IP address, but when you run your API you are calling the API on our American servers for you. The website registers our servers' US IP address and display their price in US dollars instead. Unfortunately, at this time, you cannot change the currency.
If you are using a Crawler, in the Advanced Options (by toggling the Simple button to Advanced), choose to crawl Locally instead, this will use your own IP address, and should therefore display the price in your desired currency.
Thanks,
Meg
Im trying to get an item page on market in certain currency, tried to add
Accept-Language: ru-RU\r\n
and
Accept-Language: ru-RU, ru\r\n
and
Accept-Language: ru, ru-RU;q=0.8\r\n
to header but steam ignores it and always gives a page with mixed rubles, euros and dollars.
Also, how can i get a page in xml format? ?format=xml and ?xml=1 dont work, tried with application/xml and */*
If someone still needs this:
http://steamcommunity.com/market/search/render/?start=0&count=10&l=english¤cy=5&q=&category_730_ItemSet%5B%5D=any&category_730_TournamentTeam%5B%5D=any&category_730_Weapon%5B%5D=tag_weapon_ak47&category_730_Exterior%5B%5D=tag_WearCategory0&category_730_Quality%5B%5D=tag_strange&appid=730
l param (Language): english, russian, french, etc.
count is how much results to display
start is starting result (start=10&count=10 is 2nd page with 10 results)
currency: 5 = ruble, 3 = USD. There are many others.
http://steamcommunity.com/market/listings/730/StatTrak%E2%84%A2%20AK-47%20%7C%20Blue%20Laminate%20%28Factory%20New%29/render?start=0&count=5¤cy=5&language=english
Recently Valve added market prices on inventory page when inspecting an item. The price is loaded through AJAX, and through inspecting network requests I found this:
http://steamcommunity.com/market/priceoverview/?country=US¤cy=3&appid=730&market_hash_name=AWP%20|%20Electric%20Hive%20(Factory%20New)
You can force currency with this (currency 3 is EUR), returns lowest price on market and median price, JSON format.
Sellers will always list items for sale in the native currency of
their Steam Wallet, and buyers will always see Community Market prices
expressed in the native currency of their Steam Wallet. For items
listed for sale in a different currency than the buyer's Steam Wallet
currency, we apply an exchange rate which we update daily.
- Community Market FAQ
Meaning, if you are looking at the market from a browser you are logged in on and you have funds in your wallet that are not in Rubles, you won't see Rubles.
You can, however, get around this. If you log out of the market and visit your URL, there are two parameters you can pass for force language and region changes.
For example, using the ever popular Supply Crate Key: http://steamcommunity.com/market/listings/440/Mann%20Co.%20Supply%20Crate%20Key?l=russian&cc=ru
Notice the l and cc parameters. The l is setting the language to Russian and the cc is setting the region to Russia.
Now, this doesn't appear to work on the entire page. The graph showing historical trends still appears to be in USD, even though the surrounding text is in Russian.
But, the individual listings of items did, in fact, change currencies.
Is there a way to get an item in another currency using the eBay API?
Very simple. All you have to do is change the site ID parameter. Since you didn't specify a language, I'm going to assume you're doing this HTTP-GET and just parsing the XML. The same principles will apply regardless of how you do it, programatically or not.
For a URL:
"http://open.api.ebay.com/shopping"
?callname=GetSingleItem
&responseencoding=XML
&appid=[APPID]
&siteid=2 <------------This, for example, is Canada's siteid. 0 is US. This will change the currency returned under < ConvertedCurrentPrice>
&version=839
&ItemID=181195344321
Put it all together and you get this copy/paste-friendly "http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=XML&appid=[APPID]&siteid=2&version=839&ItemID=181195344321"
Make sure to use your app ID as the parameter.
You can use this call for currency change:
Currency type can be changed in Ebay while listing an item using Add Item call in Ebay's trading API.
http://developer.ebay.com/devzone/xml/docs/Reference/eBay/extra/additms.rqst.additmrqstcntnr.itm.crrncy.html
Thanks CedCommerce
You can and it's actually very simple. You can use the Shopping API GetSingleItem.
Depending on what currency you are interested in, all you have to do is change the SiteID on which you are making the call. For example, if you want to get the price in EUR, you can set the SiteID to 3(UK), or 77(Germany). You will also have to set the IncludeSelector to "Details". This way, you will get a response that will contain the following fields.
<ConvertedCurrentPrice currencyID="GBP">68.55</ConvertedCurrentPrice>
<CurrentPrice currencyID="USD">92.9</CurrentPrice>
where the CurrentPrice is the original price of the listing, on the ebay site the listing was made, and the ConvertedCurrentPrice is the price of the listing on the site that corresponds to the SiteID you supplied.
You can see a full list of SiteIDs with the currencies they are using here
I am looking for the list of codes that are associated with different FedEx Shipping Methods.
Here is the run down of what we are doing. We have a Web Hook setup up to forward all of our orders to a portal that organizes the orders and sends the orders to a 3PL at our fulfillment center. We want to start forwarding out the proper shipping methods also which we need to assign to numbers. So the code that is sent through the web hook to our portal for each different shipping method is needed. Sorry if I am off on wording, I am not the tech guy over here haha.
Thank you!
Here's the list of valid codes:
PRIORITY_OVERNIGHT
PRIORITY_OVERNIGHT_SATURDAY_DELIVERY
FEDEX_2_DAY
FEDEX_2_DAY_SATURDAY_DELIVERY
STANDARD_OVERNIGHT
FIRST_OVERNIGHT
FIRST_OVERNIGHT_SATURDAY_DELIVERY
FEDEX_EXPRESS_SAVER
FEDEX_1_DAY_FREIGHT
FEDEX_1_DAY_FREIGHT_SATURDAY_DELIVERY
FEDEX_2_DAY_FREIGHT
FEDEX_2_DAY_FREIGHT_SATURDAY_DELIVERY
FEDEX_3_DAY_FREIGHT
FEDEX_3_DAY_FREIGHT_SATURDAY_DELIVERY
INTERNATIONAL_PRIORITY
INTERNATIONAL_PRIORITY_SATURDAY_DELIVERY
INTERNATIONAL_ECONOMY
INTERNATIONAL_FIRST
INTERNATIONAL_PRIORITY_FREIGHT
INTERNATIONAL_ECONOMY_FREIGHT
GROUND_HOME_DELIVERY
FEDEX_GROUND
INTERNATIONAL_GROUND
Sourced from FedEx docs: http://www.fedex.com/us/solutions/wis/pdf/xml_transguide.pdf?link=4
I've added this list to the Shopify Wiki too.
The problem is, the values your 3PL expects may not be the true "carrier" values so there is no way to provide you with such a list.
These are the values that FedEx expects for Web Services which is the current list. The XML API has been retired and did not support all services.
FEDEX_1_DAY_FREIGHT
FEDEX_2_DAY
FEDEX_2_DAY_AM
FEDEX_2_DAY_FREIGHT
FEDEX_3_DAY_FREIGHT
FEDEX_EXPRESS_SAVER
FEDEX_FREIGHT_ECONOMY
FEDEX_FREIGHT_PRIORITY
FEDEX_GROUND
FIRST_OVERNIGHT
GROUND_HOME_DELIVERY
INTERNATIONAL_ECONOMY
INTERNATIONAL_ECONOMY_FREIGHT
INTERNATIONAL_FIRST
INTERNATIONAL_PRIORITY
INTERNATIONAL_PRIORITY_FREIGHT
PRIORITY_OVERNIGHT
SMART_POST
STANDARD_OVERNIGHT