How can I calculate then display different currencies on a web page? - currency

I'm working on a Shopify site and would like product prices to be viewed in different currencies alongside each other e.g.
£123 | $456 | €789
I've read a few methods on Shopify e.g. 'How to Show Multiple Currencies' but you have to select which currency you want and the all the prices change accordingly. However, I need all currencies to be in view together - GBP, USD, EUR.
Is there a way I can set it up so that when I enter the base price in GBP, the USD and EUR prices will be automatically calculated and displayed on the web page? Ideally, the client would like to update the currency exchange rates in the back-end.
Please help if you can.

If you study the way Shopify provides for the currency display, you'll see it is nothing more than a bit of Javascript, connected to a currency exchange mechanism.
To do what you want, just hack the Javascript a little. It is not hard to do that. The entire pattern is already laid out for you in one currency, so adding others is easy.

Related

Can you use ImportXML to scrape a specific regional version of a page?

I'm using IMPORTXML to scrape the price for about twenty games from https://gg.deals/ The problem however is that it's scraping the default version which lists prices and deals for the US region. These are often different so a straight up currency conversion won't work e.g. https://gg.deals/dlc/world-of-warcraft-shadowlands/ lists €35.60 as the best EU Keyshop price but $28.76 for the best US one. I'd like it to scrape the EU prices and I'm wondering is there any way to add this data into the IMPORTXML call?
Simple, use a proxy to spoof the region you want to grab prices for.
https://uk.4everproxy.com worked for me to grab EU prices.

How to extract conversion results based on different attribution models from the Google Adwords API

I need to extract data from the adwords API to allow me to see the impact of different attribution models on conversion. I'm visualising my adwords data in the Klipfolio tool. My adwords account is set up to use the position based model but I'd also like to show last click conversions. This is essentially the data which is available in the adwords manager interface. I'm making my API calls via the supermetrics tool but can also create them directly in Klipfolio.
I'm not entirely familiar with the adwords query language but it does look like that there is a field for attribution type.
I've got as far as extracting data via this, using the Klipfolio interface:
SELECT
Date,Conversions,ConversionTypeName
FROM CAMPAIGN_PERFORMANCE_REPORT
DURING {date.add(-7).format('yyyyMMdd')},{date.today.format('yyyyMMdd')}
Exactly what I'm looking for is WHERE function where I can specify a different type of attribution model from the current.
I cannot obtain this data from our Google Analytics data as our conversion data from GA is, unfortunately, duplicated. We're using the adword's conversion tags de-duplication functions to get around this issue.
I'd be very grateful if anyone could share an example of how an API request could look with the attribution model field present or, indeed, give some feedback on whether this is even possible.
Hi you can find more information about the CAMPAIGN_PERFORMANCE_REPORT report here
You can find there the WHERE and SELECT fields like this:
SELECT CampaignName, Clicks, Impressions, Cost
FROM CAMPAIGN_PERFORMANCE_REPORT
WHERE Impressions < 10
DURING LAST_30_DAYS'
Usually the reason for the duplications it's the selection of SELECT parameters, but I cannot say this for sure without more information.

Buy historcal tweets for a specific period and specific keyword in Arabic

I want to buy data from twitter or any other source that can sell twitter data legally. I want all tweets that mention a specific keyword in the last six months. I want them to make analysis for a research purpose.
It seems that plan were changed in recent days for twitter and Gnip.
I'd recommend going to https://developer.twitter.com/en/docs/tutorials/one-time-historical-powertrack-jobs.html.
It'll ask you to submit the query rules you're looking for and the duration of time. Once that's set up, a Twitter employee should reach out with an estimate.

Yahoo Finance APIs - For Different Stock Exchange

I actually want to know that whether i can use the Yahoo Finance API to get the data from a specific Stock Exchange. I tried to find the answer and looked through the YQL guide but they didn't mention that how can I specify the stock exchange to get the current share price.
For example I want to know the share price of a company from Australian Stock Exchange and then I want to know another share price of a different company from NewYork Stock Exchange.
Any help is much appreciated.
Thanks
For LSE (London Stock Exchange), all the symbols are just appended with '.L'.
It seems the Australian Stock Exchange is '.AX' (I got the info from this page: https://help.yahoo.com/kb/SLN2310.html )

Product Price based on currency in Magento

I need to set multiple product price for products in Magento based on currency.
I know that this can be done by creating multiple websites, but doing so only for a price attribute doesn't seem reasonable as everything expect that remains the same. Will also be problematic in terms of SEO.
Also came through an extension : http://www.magentocommerce.com/magento-connect/currency-pricing.html, but doesn't looks promising based on the reviews.
Please share our suggestions on how this can be achieved without multiple website setup.
You can use the Auto Currency Switcher for this here is the link
This extension uses the IP address of the country and display the currency according to the IP address. You just have to set up the Magento Cron to updated the currency and it will show the updated price of the products according to the country.
I think there is no need to create the multiple stores.
Hope it helps.
Thanks,

Resources