I want if someone visit our website from United Kingdom so url should be www.myurl.com/uk and if someone from Canada so url should be www.myurl.com/ca
if someone from usa so url should be www.myurl.com
i am able to fetch the country name from http://www.geoplugin.net/php.gp?ip=86.180.246.104 this api
for all the countries website look & feel will remain same only we will change the currency like default currency is USD but in uk it will be GBP etc
Problems i am facing
1. i need to know what code should i write in .htacess which will handle this script (when i don't have any specific file / folder with the name of "uk", "ca" etc)
2. i also want to keep country name in url with all other sub pages as well i.e. for United kingdom www.myurl.com/uk/contact-us , www.myurl.com/uk/about-us and in Canada www.myurl.com/ca/contact-us , www.myurl.com/ca/about-us
3. sometimes returning user directly hit to their desire page like www.myurl.com/uk/contact-us but this time if he is in Canada so url should be change as well to www.myurl.com/ca/contact-us
The solution is to use mod_geoip and a similar question with solution was posted here
Related
my sites pages and posts titles, descriptions and featured images gets changed automatically. I am using all in one seo plugin but titles and descriptions are not coming from seoplugin. I don't know from where they are coming. Please check this screenshot when URL is added in Excel Sheet then t shows an abnormal post card with som chinese or japanese language text.screenshot for reference
NetSuite, out of the box, comes with the knowledge that several countries - the US, China, Australia, etc. - have states/provinces. In the standard Address form, if you chose one of those countries, rather than giving you a free-form text field in which to enter the state, it gives you a list of the states it knows about based on the country.
You can add to the list of states in a given country via Setup=>Company=>States/Provinces/Counties. If you add a state to one of the countries that NetSuite knows have states, it'll appear in the list of states for that country when you choose the country in the standard Address form.
In the same place at Setup=>Company=>States/Provinces/Counties you can add a new country and specify its states, just like it comes out of the box with US, China, etc. But when you do that and then, in the standard Address form, select that new country, it doesn't give you the list of that country's states - it just gives you the standard free-form text field. But we want it to show the list of states in that country and prevent free-form entry, just like it does out of the box with, say, the US?
My question is - how do I tell NetSuite to use the defined states for the new country in the Address form and not allow free-form text entry?
This is what I observed in my test account: if there is only state/province defined for the country, the free-form entry is still shown in the address form. If there are at least two states, the dropdown is shown.
I have some questions related to Price List in Demo site.
I found a "CURRENCY" in General tab and a "CURRENCY CODE" in Rules tab. What are the differences between these two CURRENCY?
In rule tab, there is a section: "LIMIT TO CERTAIN WEB REQUESTS"
Is this for Affiliate web sites only?
Thanks,
Giang
I found a "CURRENCY" in General tab and a "CURRENCY CODE" in Rules tab. What are the differences between these two CURRENCY?
The one in the General tab is what currency should be returned when you retrieve a price from the pricelist. In the rules tab, that currency is used to match the price list for retrieval in the first place. You use the rules to obtain the price list (which can be based on a currency code) and then when you retrieve a price for a Sku from the pricelist, that price is in the currency that is in the General tab.
In rule tab, there is a section: "LIMIT TO CERTAIN WEB REQUESTS" Is this for Affiliate web sites only?
No, you can use anything from the request URL you see in your browser.
I have a product named "X" and I'm the only one selling it. The product qty is 482. I've checked junglescout, amztracker and they shows correct product qty. Also, I've checked my other products, and qty is correct. How do they show correct qty? Amazon Product Advertising Api doesn't give this information. Also by parsing amazon product page, you can't give the correct qty. How can I get product qty?
to get stock for your products on amazon you need to use Amazon Reports API and request _GET_MERCHANT_LISTINGS_DATA_ report. and for FBA products you need to request _GET_AFN_INVENTORY_DATA_ report.
If you want to do it programmatically, you can use AWS API Carcreate request and add 999 as a qty parameter.
If you want to do it manually using amazon page however, it's pretty much the same. You can add to cart to a specific seller you wanted to check on And then go to your cart and change the value of the qty to 999, it will then reveal the exact value of the stock.
If you want an easy way, there are some good folks who are generous enough to develop a free Chrome extension. One of it is called stock stats. You may want to check it out.
So I'm working on a project where I need to pull specifically the last purchase a user has made in ubercart and output the date plus a year on a specific page. I'm pretty lost as to how to go about this, the project was being handled by a coworker who quit and I don't have a whole bunch of drupal experience.
SELECT MAX(FROM_UNIXTIME(created)) AS last_purchase_date FROM uc_orders WHERE uid = YOUR_USER_ID