This question already has answers here:
WooCommerce: Set country by default in checkout page
(5 answers)
Closed 1 year ago.
I have a WC shop that delivery to 2 countries in Europe. Issue I have is with unregistered users that don't have their data filled out yet.
I have countries A and B.
B is primary one, when user adds new item to cart he will see shipping for A, how can I set that if there is not data filled out to show shipping for B?
Order in my shipping tab is correct but for guests it always shows A as primary.
You need to go to your woocommerce settings and in the general settings set your store default country (red box at the top) and the set the default customer location to shop base address or you may use geolocation to get default customer location. Try this in incognito window in your browser and you will see it works.
Related
I would like to display WooCommerce products, categories based on visitors' locations. For example if someone from "New York, US" is visiting the website then it'll show New York-specific product to them instead of showing all products from the store.
If someone visit from "Indore, India" then it'll show specific product which I would like to sell to that specific area. So, based on visitors' GEO locations it'll show the products accordingly.
I don't have any specific IP list but I would like to display products based on locations.
Please let me know if you have any question.
As per my understanding WooCommerce Geolocation Based Products
This WooCommerce plugin/extension that adds ability for your store to show/hide products based on visitors geolocation.
You can add many different countries in which you want the settings to apply to. You do this by adding a rule and setting the 2 letter ISO country code in which you want to apply to. For example “US”. You then can set which products and categories to show/hide. You may select more than one for each rule.
You can also add a region or filter by city.
This question already has answers here:
Add custom fields as cart item meta and order item meta in WooCommerce
(2 answers)
Saving a product custom field and displaying it in cart page
(1 answer)
Set product custom field and display value in cart, checkout and view order
(2 answers)
WooCommerce : Add custom Metabox to admin order page
(1 answer)
Closed 4 years ago.
I am developing plugins extending Woocommerce.
This plugins is for trip booking.
My objective is to get the customer information such as his arrival at airport and his next flight time, and show it during the checkout.
I know it can be added to the booking after checkout, but I need to show it somewhere before the checkout. Is there any Cart property i can use to store that information? I can't see anything suitable as per Class WC_Cart documentation.
This question already has answers here:
Add a custom fee for a specific payment gateway in Woocommerce
(1 answer)
Product custom field to enable a specific fee in Woocommerce
(1 answer)
Closed 4 years ago.
I need to figure out how to add a product fee that's based on the credit card the customer uses.
For example, if they pay VISA or MasterCard, I must charge an extra 3%. If they pay American Express, I have to add 5%.
Is this possible, and if so, how do I do it? I am unable to use the WooCommerce Extra Charge for Payment Gateway (Standard) plugin as there are no options in the backend.
It's possible.
You can use a the WooCommerce Extra Charges To Payment Gateway plug-in
On the Total custom Fixed field choose Total % add
Woocommerce Wordpress :
Is there any way to ask customer to provide his phone number before placing an order?
what I need to do is that once a customer adds a product to cart (Before placing the order), customer should be asked to provide his details, plus that I need to notify the admin about the customer and products details
I have a Drupal website with the UBERCART module to accept donations in the form of adopting a book in my library. I need to add an option in the cart page before the checkout to add an entry to the cart with the value of 3% of the total order to cover the payment transaction fees.
It could be a check box that says..
[_] I wish to add 3% to cover the online transfer fees.
Any Ideas of how to implement this? Thanks
I'm not sure how to set up an optional fee, but for required fees, this module will do it:
https://drupal.org/project/uc_fee
Unfortunately there seems to be no version for Drupal 7 yet.
Also, it's a little quirky in some ways...for example, if you want to create a fee to be applied to all products of a particular class, by default that fee gets applied at the cart level, meaning that that a long as the cart contains at least one product of the type you specified when creating the conditional action, the fee will be applied to the other products in the cart as well. If the fee only should be applied once per order then you can just set Max Applications to zero, otherwise...
The process to apply a fee to each product in the cart of a particular class is as follows:
Create a fee at Store administration > Fees with a price of zero
Click the "conditions" link next to the fee (again, from Store administration > Fees) and say the cart needs to contain at least one product of your desired class
Go to Store administration > Products > Manage classes, click "edit" for your desired class, go to the Fees tab and override the price to be whatever the fee should be.
Create products of that class. If your products are already created, it appears you need to edit each already-existing product and override the fee there (on the Fees tab); unfortunately the product-class override only appears to apply to products created after the setting was changed.
I realise it's a long time since this question was posted, but it came up in search when I was trying to solve a similar problem. Since it hasn't been satisfactorily answered after all this time, I thought I'd share the solution I found for my own problem.
There is some sample module code here:
http://www.stevenalanwilson.com/articles/open-drupal-pages-using-built-overlay
I created my own module with this code to allow customers to specify if they live in a rural area. If they check the box, a $5 rural delivery fee is added to the cost of their order. The label on the checkbox and the value of the fee can be set by changing the code in the module.
The scenario asked here would need some additional coding to calculate the 3% fee based on the value of the order, which shouldn't be too hard to achieve.
if you are using drupal 6 then visit these link in your site
Administer -> Store administration -> Configuration -> Shipping quote settings
then visit the "quote method" where you can define your shipping quote setting
once you understand the method for creating shipping charges, you can apply whatever shipping rate you want to charge.