Is it possible to set a currency per user? - wordpress

Is it possible to set a currency per user rather than based on a user's address. So that no matter where in the world a customer was looking at the site they would always see their "home" price? e.g a US based customer always sees the $ price, even if they are currently shopping from Europe.
Ideal solution would be to have a currency selection box in the user profile.

Option 1
Check this WooCommerce Plugin: "The Currency Converter Widget lets you offer a dynamic currency switcher for displaying product prices and totals." "... your customers will be able to change the currency". (It costs extra, though.)
https://woocommerce.com/products/currency-converter-widget/
https://docs.woocommerce.com/document/handle-multiple-regions-currencies-woocommerce/
Option 2
Another plugin. WooCommerce Multi-Currency: "Multi-Currency is a WooCommerce extension that provides switching currencies and re-calculating rates on-the-fly." The user can "Choose the currency using a sidebar widget" and "Pay in the selected currency" (Also costs extra.)
https://woocommerce.com/products/multi-currency/
Here is an overview on the topic:
https://docs.woocommerce.com/document/shop-currency/ -> text on Multiple Currencies

Related

linking two options filed in gravity form to one another

The issue i am facing is that i want to have two sepreate options field in gravity forms linked to one another. For example if i select option 1 in one filed then the same options get selected in the second field and update the price likewise.
enter image description here
on selecting the addon it updates the price based on number of adults.
i want to do the same with kids but if one select a addon mapped to adults the one mapped to kids should be automatically slected.

Insert Discount - Coupon with SQL in NopCommerce

I do use nopCommerce 3.9 and I would like to insert coupon code from my C# program code. There are requirements such as "Has shopping cart amount" and "Blocked on product". The insert is working fine, I can see the inserted records and I think there are logically right. (The same process happening if I create Discount from Nop admin panel.)When I open the inserted coupon from Nop admin the "Discount info" tab is perfect, on the "Requirements" tab I see the requirements "Requirement Customer has x.xx amount in their shopping cart" and the "Requirement Block Discount on Product", but without value. If I modify the shopping cart value only (I don't modify the "blocked products" on purpose) and save it and reload the page, than everything is good. The blocked products are appeared too.
When I check the data tables I don't see any changes there. The records are the same as I inserted. I guess there is another table(s), where I have to update something, but I cannot find which one it is.
I would appreciate for any help.
From the comments, I believe OP want to insert the new discount rule with two things:
Cart has minimum total X.
Cart has specific product(s) Y.
And the issue is,
Its working properly if they apply discount rule from admin panel,
however, applying it programmatically couldn't store specific
products on a single call.
There are different tables for discount in nopCommerce.
Discount - main table
DiscountRequirement - stores requirement information
Discount_AppliedToProducts - stores discounted products information
Creating a discount rule first time will add entry in discount table only. Then the id of discount table will be used for reference to the DiscountRequirement and Discount_AppliedToProducts table.
It was everything good with my process. The issue was the nopCommerce cache. The nopCommerce keeps the discounts in cache. After I clear the cache I can see my values.
Thanks for everyone who tried to help or had a thought!

How to add “Sales by role” to Woocommerce reports or Filter by role to complete order report

In Woocommerce reports page we want to add filter "Sales by role" to Report or if may be any particular role wise filter report data to show in admin report section, where to find total sale amount by that role, also we need which product and how much quantity in each order product have.

WooCommerce: Out of stock notification issue for a product with low stock

I have set stock for a product to 1. But when I test this setting on front office, trying to buy it, I have this error message:
'Sorry, we do not have enough "product name" in stock to fulfill your order right now. Please try again in 60 minutes or edit your cart and try again. We apologise for any inconvenience caused.'
I don't understand why I have this error, because there is 1 item in stock for this product.
How to get rid of this issue?
For Stock / Inventory product purposes in WooCommerce:
1) Woocommerce settings > Products (tab) > Inventory (sub-tab):
Normally your stock management is enable.
You need to set the Out Of Stock Threshold to 0
You can disable Low Stock Thresold notifications too, if needed.
2) At individual product level (on product pages) > Product data meta box > inventory (tab):
You can "Enable stock management at product level" and have individual settings for a specific product. So you will have to check there too.
I had the same issue and after some digging found that one paypal payment for the product in question is 'pending' that means the person did not have sufficient funds in her paypal account and paypal is waiting to get verification from the bank. The seat will not be released for purchase or show out of stock until paypal secures the funds. Hope this helps.
This is not a perfect solution, but see:
WooCommerce > Settings > Products > Inventory
And clear this settings like this:
Like i said, this is not a perfect solution, since it disables one of the many functions of this plugin, but it helps till the wooteam fix this problem.
The solution is to leave blank "Hold Stock (minutes)"

Woocommerce: Use Stock Management for different attributes

I would like to use the Stock Management in Woocommerce. I have some products which use variing attributes (sizes in my case), however, the stock management only lets me enter a anmount for the whole product (eg 11 running Shirts instead of 11 running shirts in size L). Is there any way to use stock management on attributes?
Thank you for your help.
From the variable product documentation:
Each variation may be assigned:[...]
Stock quantity – Stock for the specific variation, or left blank to use the product’s stock settings.
So, set your product as variable product and check "used for variation" for your size attribute like this:
Then go on the variation tab and generate a variation for each attribute value. On each variation, you have a checkbox to activate the stock management for this attribute value - if it's not checked, it will use the general product inventory in the inventory tab.

Resources