Questions tagged [country]

448 questions
2
votes
1 answer

how to get the FULL details for the current user using UserService, including their default address?

The default address data returned contains country and region codes, but not country and region names. Any one know if there's a way to do that in Spartacus, or would that be something custom?
2
votes
3 answers

Making one application in different languages

How can you make one application for multiple languages? I've heard that Apple rejects applications that only contain different languages. So how can you change your images, text and icons for a specific country or language? I submitted three…
BarryK88
  • 1,806
  • 2
  • 25
  • 41
2
votes
1 answer

Magento - Product by country using IPaddress

I want to add a radio button with the following option Show product in > United States > International > Both Upon selection the product will show on the front end for the appropriate customers using IP detection I google it and i found one…
Vasanthan.R.P
  • 1,277
  • 1
  • 19
  • 46
2
votes
3 answers

Extract country name from text in column to create another column

I have tried different combinations to extract the country names from a column and create a new column with solely the countries. I can do it for selected rows i.e. df.address[9998] but not for the whole column. import pycountry Cntr = [] for…
newpy
  • 33
  • 1
  • 4
2
votes
3 answers

Disable tax for company and specific country in WooCommerce checkout

In Woocommerce checkout, I am trying to remove tax if billing_company is not empty: Here is my code add_action( 'woocommerce_checkout_update_order_review', 'bbloomer_taxexempt_checkout_based_on_zip' ); function…
shawtky
  • 15
  • 1
  • 6
2
votes
3 answers

java - Getting current date and time based on the locale (country)

I would like to fetch the current date / time based on the locale. If I pass locale object, I need to get the relevant date / time of the country.
Sriram
  • 2,909
  • 8
  • 27
  • 35
2
votes
1 answer

How to set product fees displayed only for a country in curent language that user is using

I'm using a plugin "WooCommerce Product Fees" to add custom fees to products. I want to set these custom fields to be displayed only for one country. * Check if a product contains fee data. * * @param int $id Product ID. *…
Helen_zs
  • 75
  • 2
  • 10
2
votes
1 answer

How to blank all WooCommerce checkout fields by default except country?

On my WooCommerce checkout page, I want the billing fields to be blank except for the billing country. I'm using this to make sure the checkout form is blank when it gets filled…
trose1189
  • 21
  • 2
2
votes
1 answer

Display a delivery day range based on shipping country in Woocommerce

In Woocommerce, I'm trying to add an estimated delivery day range on cart and checkout pages. I have set 2 shipping Zones: Germany and other European countries (outside Germany) called "DHL Europe". I need to display a different delivery day range…
limilo
  • 327
  • 3
  • 17
2
votes
1 answer

Make custom calculated shipping methods cost for a specific country in Woocommerce

i'm looking for a solution that allows me to change the cost of every shipping zones because i need to have a rounded value also in my second currency (from € to yen for Japan). I used WC_Geolocation::geolocate_ip() to change the currency…
Alessio
  • 21
  • 3
2
votes
1 answer

Set minimum allowed weight for a specific country in WooCommerce

I am trying to specifically apply a mandatory minimum weight of 20 kilos for the country of Colombia avoiding checkout if the total cart weight is under this minimal weight. Here is my actual code, that allow me to fix a minimum weight: add_action(…
Manuel
  • 43
  • 1
  • 4
2
votes
4 answers

DropDown List resets to the first item and doesn't return a selectedvalue

So I have a country dropdownlist and a state dropdownlist which is being populated dynamically based off of the country chosen. When I click the country the state dropdown gets populated just fine but the problem arises when I click a value (state)…
gdubs
  • 2,724
  • 9
  • 55
  • 102
2
votes
1 answer

Fetch country based on the IP Address using python django

Is there any snippet or an example that can help me fetching country from the IP address? First I need to fetch the user's IP and then based on that I need to fetch the country. Below is the snippet that I am trying and have started with. from geoip…
2
votes
1 answer

Display the customer origin country on admin edit order pages in Woocommerce

I would like to be able to see which country the product was ordered from, even if it is from the origin country. The location where I would like to show the origin country: So in the picture above it does show the country as long as it is not the…
AHG
  • 33
  • 3
2
votes
2 answers

package for detecting users contry in php?

I want to know what is the best package to detect country which user is visiting from? I am using php/mysql..
Padmanabha Vn
  • 624
  • 1
  • 14
  • 33