How can I receive payment in multiple currency in wordpress Woocommerce? - wordpress

I just installed wordpress and woocommerce, my default currency is USD.
Now when I convert the currency on store it is working smooth. I mean it is changing from USD to INR.
Now say I want to make payment in INR and product cost is USD100 and after converting currency it display INR6500 but when I checkout it pass INR100 to payment gateways.
Kindly suggest.

I was using a plugin long back, currency swicher. This plugin will change your plugin will convert your customer's currency automatically based on their addresses. But you have to enter the conversion rates for currency in admin panel and have to keep updated.
If you can code something like getting conversation rates from a live api and update that list then it will be superb. But still if you can manage updating rates manually , it can work like charm.

Related

Bulk change the order date for all orders of a specific product in Woocommerce

How would I bulk change the order date for a specific product in Woocommerce?
We have an integration into Royal Mail click and dropto create postage, but the royal mail integration only downloads orders made in the past 7 days. When pre-orders get released that were made over a week ago they don't get transferred over unless I change the order date, and its a slow process to do manually.
I would love to be able to simplify this.
Happy to run a custom piece of SQL.
Any ideas?

Using WooCommerce. How to prompt for address before cart/checkout, based on the address (i.e. zipcode), show specific products available?

I am building out an ecommerce website using WordPress and WooCommerce. I'm able to set up my products and corresponding fees/taxes based on the address entered, but it's during checkout. I will have two locations which could have different inventory, so looking to have the address/zipcode check well before the cart/checkout so that specific products would be shown based on the address/zipcode.
I've searched everything and anything--all I can find is based on geolocation, but the shipping (or delivery) address is what I need to know ahead of time because someone can order from a different location but for delivery within the delivery area serviced.
Thanks in advance!
I have been looking for something similar, but I want to force the customer to put their zip code in before checkout so I can valid their cart for delivery.
I found this plugin:
https://wordpress.org/plugins/woocommerce-check-pincode-zipcode-for-shipping/
I haven't tested it, but it looks like something that could work for what you are doing. It can check stock of product based on a zip code at any given location.

Google Analytics eCommerce Report Local Currency

new here and looking for help.
I'm trying to get the amount people are spending on a products for a website in local currency.
I'm looking at a GA page for someone overseas and the currency values from itemRevenue for each productName I'm seeing in my report in Sheets are not looking like they're local to that store but rather my countries currency. I've tried localItemRevenue but that gave an error saying the dimensions and metrics can't be used together. I've got date/hour included as well in the report.
I tried to use itemRevenue with currencyCode to get around this but they couldn't be used together either.
I thought I could use transactionRevenue along with productName/date/hour/minute but that didn't work (I realised because more than one item can be bought per transaction).
Could someone tell me what GoogleAnalytics uses for currency here and if it can be solved easily?
Google Analytics uses the currency settings that are set in the data view settings.
If you send a different currency, as specified by the currency field in the e-commerce-tracking, GA will convert it to the currency set in the view settings as long as it is on the list of supported currencies.
So the first thing to do would be to check the view settings - this defaults to USD, and it happens amazingly often that people fail to set the proper currency.
Next thing to check would be to see what is actually sent to the property - if there is a mismatch between view currency and currency set in the code the values will be converted from the latter to the former.
Your question is not quite clear to me.
However I am assuming that you want to set local currency of your client's country in Google Analytics account.
You can change your currency:
1) Login to your Google Analytics Account
2) Select the View & Click on View Settings.
3) Set "Currency displayed as" -> currency of your choice.
Unless and until you set your desired currency here, you won't be able to get it in Web Interface, Query Explorer, Sheets or API.
I hope this helps.

NopCommerce 3.6 Tax By Country & State & Zip always results in zero tax

The NopCommerce 3.6 Tax By Country & State & Zip plugin always returns zero tax for one of my stores. I have the same results locally and remotely, but the database was not copied from local machine. I performed the steps locally and then again remotely to help eliminate the particular environment as a factor.
What might be wrong?
Here are some screen shots to demonstrate.
Tax provider marked primary :
Test customer address contains example zip code.
No roles are marked exempt.
Set tax based on shipping address, etc.
Tax rates were imported via SSMS.
Customer is not exempt.
General tax category has been added.
CountryID of 1 is present.
Specific tax rate for test shipping address is identified.
I also attempted a test with a specific StoreId of 1, though there is only 1 store. Also the field is not nullable, zero acts as the wildcard.
All products are taxable and assigned to General tax category.
No tax displayed in the cart.
No tax displayed in checkout.
No relevant errors in the log.
As much as I wanted to avoid thinking it was true, this problem was created by a third party plugin. A vendor's alternate "One Page Checkout" was clearing the tax for the cart once the Checkout page was hit, and preventing that user from ever obtaining tax calculations in the cart afterward. Removing the plugin corrected the problem, and I've reached out to the vendor for support.
Thanks for anyone who took the time to look at this!
EDIT: To be clearer, what's occurring is that the Real One Page Checkout plugin creates NULL fields in the Address table and associates them with the customer. Therefore, any subsequent orders put in the cart by that customer will never calculate taxation again. I didn't investigate what else might be happening as a result.
I've downloaded the latest copy of the plugin and tested with the same results. All orders placed without the plugin installed work fine, with the plugin installed there are blank records added to the Address table and associated with the Customer.
Here is how the One Page Checkout plugin for nopCommerce works:
When the customers open the checkout page they start with blank addresses (that is why initially you see two empty addresses in the database - one for the billing address and another one for the shipping address) and that is why your taxes are 0 since there is still no any country selected.
Once the customer selects a country then the address in the database will be updated with the country id and all the tax calculations will be based on the newly selected country. The order total will also be updated and the customers will see the new taxes. If the customer changes the country again then the order total will again be updated again with the new taxes based on the new country.
By looking at the provided screenshots, your customer already has an address in his address book and you expect him to use the same address for any new orders.
In that case you can simply check these settings in the administration of the One Page Checkout plugin - Preselect Last Customer Billing Address and/or Preselect Last Customer Shipping Address.
This way when the customer starts the checkout it will not start with a blank address but with the address he has used to make his latest order.
Since the preselected address should already has a country selected then your taxes will automatically be shown for that country right from the start of the checkout.

Change product currency and price in ubercart-based drupal with variable price

I run a donation site in Drupal, that soon needs to expand to another country, and will need to support not only switch of language, but also currency. The thing is, users donate money to charity in their own currency, and this needs to be summed up to a total amount of donations shown to the current user in their own currency.
A fundraiser is an ubercart product that users "buy" at a variable price, thus making a donation. I am creating a custom Donation node with each ubercart purchase containing CCK fields such as the amount donated.
So what I need to allow is this:
A user makes a donation in, say, Euro, EUR
Another user makes a donation in Danish Kroner, DKK
A third user views the site in US locale and should see all the donations converted to USD based off of the exchange rate at the time of donation for all the donations.
And it gets a little more difficult: We are using the UC variable price module to allow users to donate any amount they see fit.
So can this be accomplished using Drupal and Ubercart, and if so, how?
I am afraid that you will end up writing your own plug-in to convert currencies.
The problem with the conversion is, this is something that changes but you already realized this. The only source of exchange rates I know is Oanda and they seem to have their own Data Feed.
Unfortunately, I cannot tell if you would be allowed to use it for free, I believe it would be good to ask them.

Resources