Table Rates CSV format for zip codes - magento

My CSV file have a format like this picture
I import successfully. But in cart page, I fill postcode 1500 then get estimate quote, nothing happen. I had to fill 1500-2170 then get quote, it show Price 500.
No shipping method show if I use postcode 1500 in my address. How to make it show or estimate by fill 1500 instead of 1500-2170.

The Zip/Postal Code on the Table Rates table does not accept a range of zip or postal codes. It only accepts the exact codes.
That is the following are valid entries for the Zip/Postal Code column:
1500
1501
1502
etc.
If you want to enter a range of zip or postal codes you need to install a module to allow this functionality. There is a module WebShopApps MatrixRate that adds this functionality:
http://www.magentocommerce.com/magento-connect/webshopapps/extension/604/webshopapps-matrixrate--the-original-multiple-table-rate-solution--certified-bug-free

The Zip/Postal Code does not allowed area range. You just given a exact code. Ex: Hyderabad: zipcode is: 500001. Once you try this method.

Related

Google Sheets data validation's input reject option is not working

I have a google sheet something with 3 columns Column Name , Tech Club Name , Tech Club Email id . I want to have column Tech Club Email id to have unique entries . If someone tries to enter a duplicate entry it should reject it with an error message of Entry already present .
I have this data validation rule:
forumula: =COUNTIF($C$2:$C10,$C2)<2
Instead of the formula whenever I enter duplicate entry in the column it doesn't reject the input it only gives warning on the previous input as shown below:
How can have a data validation rule which simply rejects user from entering the duplicate value ?
The cell range entered in the Data Validation Box should not be the whole column (which contains 1000 rows), but rather a more limited range. If you want to check between the C2 and C10 cells, I would suggest changing the cell range from:
Sheet1!C1:C1000
to:
Sheet1!C2:C10
although you can choose a wider range if you want, it just cannot be the whole column.

line break in csv file content

Guys i need to create a very simple csv file with some product details in order to import them to an online shopping site. Each product has 3 attributes: name, description and price.
The csv file would look like this:
product 1,product description,100
product 2,product description,100
product 3,product description,100
I have 2 problems:
1) each product description has more than one line, something like
This the product's description.
This is a cool feature.
This is another feature.
Product made in the US.
How can i keep/add this formatting in the csv file?
2) second problem, most product descriptions contain a comma "," in there, like:
This product is great, reliable and also cheap.
How can i add these commas to the description without breaking the csv format?
And a final question: some product descriptions have more than 800 or even 100 characters. Is it possible to add that much characters in a field in a csv?
A workaround for the first problem is to use HTML <br/> tags instead of line breaks. That's what I'm doing, at least until I find a better solution.
So you would change:
This the product's description.
This is a cool feature.
This is another feature.
Product made in the US.
to:
This the product's description.<br/>This is a cool feature.<br/>This is another feature.<br/>Product made in the US.
As for the second problem: in my tests, Magento didn't seem to have any trouble with commas within fields. But you can always change the delimiter Magento uses. I usually use tab (\t). Make sure to use Magento's advanced import features in System > Import/Export > Dataflow-Profiles.

importing csv (magento)

I have a certain attribute dealer_country in my website, which is a dropdown attribute containing a list of all countries. However, in my csv file, the dealer_country attribute will be containing country codes(in 2-letter format). Would it be possible to import with this condition?
Yes. There is an easy way and a hard way.
If programming is your bag then you can get your attribute hooked up to the Magento country codes and have it return country names on the front end.
It would take a while to write such an ideal solution. However you can use a 3rd party import tool like 'Magmi' to get your products in without having to define your attribute values first.
Once in you can edit your attribute entries for country and, in the second column put the country names to be shown on the front end. e.g. for 'GB' in column one you have 'United Kingdom of Great Britain and Northern Ireland' in column two. Or for 'LY' you can add 'The Great Socialist People's Libyan Arab Jamahiriya' for column two... Oops!
http://sourceforge.net/apps/mediawiki/magmi/index.php?title=Main_Page

Validate zip code using just first 4 digits

I'm using table rates to assign shipping costs in Magento.
Our zip codes are in the following format: XXXX-XXX. Is there any "easy" way I can change the validation so that 1234-234 is assigned the same shipping cost as 1234-678 without doing it explicitly?
I would like to fill the tablerates.csv file like this:
Country,Region/State,"Zip/Postal Code","Order Subtotal (and above)","Shipping Price"
US,*,1234,20,5
and the system would assign 5 as the shipping cost to 1234-234, since 1234 is contained within 1234-234.
I'm imagining a simple change from "if clientzip = csvzip" to "if clientzip like 'csvzip%" somewhere in Magento's files...
I found a workaround. My country didn't have regions set in the database, so I added the three relevant regions to my country (in terms of shipping costs).
INSERT INTO db_magento.directory_country_region (
region_id ,
country_id ,
code ,
default_name
)
VALUES (
NULL , 'CountryCode', 'RegionCode', 'Region Name')
Now the system automatically forces filling out the "State/Province" field.

a bit of a string matching conundrum in excel-vba

i'm writing a program at work for a categorizing issue.
i get data in the form of CODE, DESCRIPTION, SUB-TOTAL for example:
LIQ013 COGNAC 25
LIQ023 VODKA 21
FD0001 PRETZELS 10
PP0502 NAPKINS 5
Now it all generally follows something like this...the problem is my company supplies numerous different bars. So there are like 800 records a month with data like this. My boss wants to breakdown the data so she knows how much we spend on a certain category each month. For example:
ALCOHOL 46
FOOD 10
PAPER 5
What I've thought of is I setup a sort of "data-base" which is really a csv text file that contains entries like this:
LIQ,COGNAC,ALCOHOL
LIQ,VODKA,ALCOHOL
FD,PRETZELS,FOOD
FD,POPCORN,FOOD
I've already written code that imports the database as a worksheet and separates each field into its own column. I want excel to look through the file and when it sees LIQ and COGNAC to assign it the ALCOHOL designator. That way I can use a pivot table to get the category sums. For example I want the final product to look like this:
LIQ013 COGNAC 25 ALCOHOL
LIQ023 VODKA 21 ALCOHOL
FD0001 PRETZELS 10 FOOD
PP0502 NAPKINS 5 PAPER
Does anyone have any suggestions? My worry is that a single point expression match to JUST the code i.e. just to LIQ without a match to COGNAC as well would maybe result in problems later when there are conflicting descriptions? I'd also like the user to be able to add ledger entries so that the database of recognized terms grows and becomes more expansive and hopefully more accurate.
EDIT
as per #Marc 's request i'm including my solution:
code file
please note that this is a pretty dumb-ed down solution. i removed a bunch of the fail-safes and other bits of code that were relevant to a robust code but not to our particular solution.
in order to get this to work there are two parts:
the first is the macro source code
the second is the actual file
because all the fail-safes are removed, the file needs to be imported to excel exactly the way it appears. i.e. Sheet1 on the googleDoc should be Sheet1 on the excel, start pasting data at cell "A1". before the macro is run, be sure to select cell "A1" in Sheet1. as i said, there are implementations in the finished product to make it more user friendly! enjoy!
EDIT2
These links suck. They don't paste well into excel.
If your comfortable with it I can email you the actual workbook. Which would help in preserving the formatting etc.
Use a lookup table in a separate sheet. Column A of the lookup sheet contains the lookup value (e.g. PRETZELS), Column B contains the category (FOOD, ALCOHOL, etc). In the cells where you want the category to show up in your original sheet (let's use D3 for the result where B3 holds the "PRETZELS" value), type this formula:
=VLOOKUP(B3,OtherSheet!$A$1:$B$500,2,FALSE)
That assumes that your lookup table is in range A1:B500 of a worksheet named "OtherSheet".
This formula tells Excel to find the lookup value (B3) in column A of your lookup and return the corresponding value from column B of your lookup table. Absolute references (the $) ensure that your formula won't increment cell references when you copy/paste the formula in other cells.
When you get new categories and/or inventory, you can update your lookup table in this one place by just adding new rows to it.

Resources