Zen Cart Logo
Forums / Addon Shipping Modules / Shipping per Categories

Shipping per Categories

Views: 10,456

Results 1 to 20 of 50
3 Jan 2014, 6:48 AM
#1
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Shipping per Categories

Can anyone help me out with shipping?

I recently added a new category, which have items that are very small, does not cost a lot to ship, so I need different ship fee for this category, but other category will need to be not touched.

here are the two categories that need shipping fees:

  1. Waterslide Decals
  2. Nail Art Waterslide Decals

I set #1 category as zone rate because the items are large, so shipping fee set at $2.50 US per sheet, Canada is $3.00 per sheet, and Rest of World is $6.16 per sheet.

now I add the new Nail Art Waterslide Decals, which are very small items, which will have less shipping fee, for example, US shipping will be $0.46 per sheet, Canada will be $2.00 per sheet, and rest of world will have $3.00 per sheet.

by the way, both categories, I set item weight to "1" (not sure is lb, or oz).
How do I set up the shipping modules so I dont over charge customers for #2 category?

Thank you so much in advance.
here is my website if you needed: http://the4thmuse.com

by the way, should I upgrade to newest zencart?

Arwen

8 Jan 2014, 4:04 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping per Categories

This is rather complicated to write ...

I will see what I can come up with over the next few days or so ... I am such a glutton for punishment ...:lookaroun

8 Jan 2014, 6:51 AM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Shipping per Categories

And yes, you need to upgrade to v1.5.1 if possible, as soon as possible. V1.3.8a has known vulnerabilities and will get hacked sooner or later. Upgrading now will save you the trouble of recovering from a hack and then upgrading.

After you have upgraded you can concentrate on enhancements.

28 Jan 2014, 11:47 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping per Categories

You could try this special shipping module that I wrote ...

This lets you set the Rates for each Category as well as a Rate for Categories not defined ...

Install it on your site and see if it works without error ...

Then for the 1st Category group enter the Categories that the Products are in for each of the Water Decals and the Rate of 2.50 ...

Then for the 2nd Category group enter the Categories that the Products are in for each of the Nail Art Waterslide Decals and the Rate of 0.46 ...

Then on the Undefined Categories, set the Rate to 0.0 ...

If this gives the rates correctly for the US, make a Zone Definition for the US and add it to this shipping module ...

Now, you need to Clone this shipping module and set it up in a similar manner for Canada and make its own Zone Definition for Canada ...

Then Clone it again for the Rest of the World and create a Zone Definition for the Rest of the World ...

17 Feb 2014, 8:46 PM
#5
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Shipping per Categories

Hi Ajeh Oba-san,

Thank you so much for reply back,
I have been sick for last few weeks and sorry not reply back to your sooner.
when you mentioned that you wrote this special shipping module just for me, where can I find this module to install?

Arwen

Ajeh:

You could try this special shipping module that I wrote ...

This lets you set the Rates for each Category as well as a Rate for Categories not defined ...

Install it on your site and see if it works without error ...

Then for the 1st Category group enter the Categories that the Products are in for each of the Water Decals and the Rate of 2.50 ...

Then for the 2nd Category group enter the Categories that the Products are in for each of the Nail Art Waterslide Decals and the Rate of 0.46 ...

Then on the Undefined Categories, set the Rate to 0.0 ...

If this gives the rates correctly for the US, make a Zone Definition for the US and add it to this shipping module ...

Now, you need to Clone this shipping module and set it up in a similar manner for Canada and make its own Zone Definition for Canada ...

Then Clone it again for the Rest of the World and create a Zone Definition for the Rest of the World ...

17 Feb 2014, 10:31 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping per Categories

Sorry, thought I posted it ...

Try this attachment and set your categories_id in the different Category Groups with the prices that you want to charge for them ...

Then on the Undefined Categories set the shipping to 0.00

17 Feb 2014, 11:27 PM
#7
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Shipping per Categories

will do, Thank you so much for doing this for me!!!

Arwen

Ajeh:

Sorry, thought I posted it ...

Try this attachment and set your categories_id in the different Zones with the prices that you want to charge for them ...

Then on the Undefined Categories set the shipping to 0.00

17 Feb 2014, 11:51 PM
#8
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Shipping per Categories

Hi there,

I followed the file path and installed the two files within zip file to my server,
I was unable to modify "Zone Rates" section, I can only click on it. see attachments
please help me!!!

Attachment 13796
Attachment 13797

Ajeh:

Sorry, thought I posted it ...

Try this attachment and set your categories_id in the different Zones with the prices that you want to charge for them ...

Then on the Undefined Categories set the shipping to 0.00

18 Feb 2014, 12:08 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping per Categories

You appear to be trying to customize the Zone Rate and the shipping module that I wrote should be called ItemCat ...

I meant to say the:

Itemcat group1 categories

No clue why I said Zone ... must of been a senior moment ... :cool:

I will fix that in the post ...

19 Feb 2014, 12:46 AM
#10
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Shipping per Categories

Hi there,

So far I got my categories entered in "itemcat", but have no idea what you mean by below:

If this gives the rates correctly for the US, make a Zone Definition for the US and add it to this shipping module ...

Now, you need to Clone this shipping module and set it up in a similar manner for Canada and make its own Zone Definition for Canada ...

Then Clone it again for the Rest of the World and create a Zone Definition for the Rest of the World ...

I looked for "Zone Definition" but can not find it anywhere. its this also located within "Shipping Modules"?

Arwen

19 Feb 2014, 1:49 AM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping per Categories

You want 3 sets of shipping rates for your category groups ...

1 US

2 Canada

3 Rest of the World

Once you can make the shipping work correctly for the US you would be cloning the Itemcat shipping module ...

You need to make 3 Zones for:

1 US

2 Canada

3 Rest of the World

This can be done manually or you can look in the FAQs with a search on:
zones

and you should find:
http://www.zen-cart.com/content.php?308-prepared-zone-definitions

This has some quick ways to make various Zones that can be used for the Zone Definitions that you need ...

For example, what is your idea of the US? Is this the 48 states plus DC? The 50 States plus DC or the 50 States plus DC plus the US territories?

Once you have your Zone Definitions complete, we get to the "cloning" of the Itemcat shipping module ...

Cloning is done by copying the 2 shipping module files to new names:
/includes/modules/shipping/itemcat.php
/includes/languages/english/modules/shipping/itemcat.php

For Canada you can use:
/includes/modules/shipping/itemcatcan.php
/includes/languages/english/modules/shipping/itemcatcan.php

For the Rest of the World you can use:
/includes/modules/shipping/itemcatworld.php
/includes/languages/english/modules/shipping/itemcatworld.php

Then, in the files for Canada:
/includes/modules/shipping/itemcatcan.php
/includes/languages/english/modules/shipping/itemcatcan.php

you need to change all references to:
itemcat
to
itemcatcan

and then
ITEMCAT
to
ITEMCATCAN

these replacements are case sensitive ...

Then, for Rest of the world you would change in the files:
/includes/modules/shipping/itemcatworld.php
/includes/languages/english/modules/shipping/itemcatworld.php

all references to:
itemcat
to
itemcatworld

and for:
ITEMCAT
to
ITEMCATWORLD

again, these are case sensitive ...

Once you have the 3 sets of Itemcat files the the US, Canada and the Rest of the World made and set the Zones inside these modules ... you are using the same settings for each set of Category Group and the price that you want for each Zone ...

On the Pricing, you just use your 3 sets of prices:

1 US (itemcat)
Category Group 1 2.50
Category Group 2 .46
Undefined Categories 0.00

2 Canada (itemcatcan)
Category Group 1 3.00
Category Group 2 2.00
Undefined Categories 0.00

3 Rest of the World (itemcatworld)
Category Group 1 6.16
Category Group 3.00
Undefined Categories 0.00

If you read this post a few times, you should see how to build the 3 Zone Definitions that you need, then the cloned copies for Canada and the Rest of the World, then the Pricing for the Category groups in each one ...

And when your eyes start to cross and the words begin to blur ... don't be afraid to ask for help as you go along as many do need more help as they go through this process ... :lookaroun

19 Feb 2014, 4:21 AM
#12
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Shipping per Categories

OK, I cloned these files:

For Canada you can use:
/includes/modules/shipping/itemcatcan.php
/includes/languages/english/modules/shipping/itemcatcan.php

For the Rest of the World you can use:
/includes/modules/shipping/itemcatworld.php
/includes/languages/english/modules/shipping/itemcatworld.php

However my issue is, I am unable to remove "Zone Rates" value since there is no "remove" and "edit" buttons anymore since I installed custom itemcat module. so regardless what I put into my shopping cart, shipping values are pulling information from "Zone Rates".
any idea what I can fix this?

Thanks
Arwen

19 Feb 2014, 1:47 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping per Categories

Sounds like you have typos in the cloned versions ...

Can you Zip your files:
/includes/modules/shipping/itemcatcan.php
/includes/languages/english/modules/shipping/itemcatcan.php

/includes/modules/shipping/itemcatworld.php
/includes/languages/english/modules/shipping/itemcatworld.php

and attach them to your post, please?

19 Feb 2014, 4:44 PM
#14
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Shipping per Categories

here are the files:
the first attached zip file is from: \includes\modules\shipping
the 2nd one is from: \includes\languages\english\modules\shipping

Ajeh:

Sounds like you have typos in the cloned versions ...

Can you Zip your files:
/includes/modules/shipping/itemcatcan.php
/includes/languages/english/modules/shipping/itemcatcan.php

/includes/modules/shipping/itemcatworld.php
/includes/languages/english/modules/shipping/itemcatworld.php

and attach them to your post, please?

19 Feb 2014, 6:42 PM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping per Categories

Have you ever installed this Debug program for v1.3.8?

If not, please install it and try to reproduce the problem where you cannot see the Install or Delete in the Admin for the shipping ...

Then, look in the /cache directory for the Debug logs and read any that are created and post the contents here ...

20 Feb 2014, 5:26 AM
#16
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Shipping per Categories

should I remove the custom module frist, then run Debug program?
or just run Debug program?

Ajeh:

Have you ever installed this Debug program for v1.3.8?

If not, please install it and try to reproduce the problem where you cannot see the Install or Delete in the Admin for the shipping ...

Then, look in the /cache directory for the Debug logs and read any that are created and post the contents here ...

20 Feb 2014, 2:08 PM
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping per Categories

No, leave the shipping modules installed and the debugger may help determine the problem ...

I tested them and they seem to be working fine ...

One thing to also check is that the code files are in the:
/includes/modules/shipping

and that the language files are in the:
/includes/languages/english/modules/shipping

to make sure they did not get mixed up or might be missing ...

In the Tools ... Developers Tool Kit ... you could check in the bottom input box for:
itemcat.php
itemcatcan.php
itemcatworld.php

and make sure you see them in the right directories ...

20 Feb 2014, 7:58 PM
#18
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Shipping per Categories

Can you tell me where can I find this "Debut program" for v1.3.8.
sorry about all these questions, I am just not as savvy as you, but I do can follow instructions :)

Ajeh:

Have you ever installed this Debug program for v1.3.8?

If not, please install it and try to reproduce the problem where you cannot see the Install or Delete in the Admin for the shipping ...

Then, look in the /cache directory for the Debug logs and read any that are created and post the contents here ...

21 Feb 2014, 5:24 AM
#20
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Shipping per Categories

Yay!!!!
I got it to work!!!
You are right all a long, I was not scroll to the right on my page, when I enter a long country codes for my Zone shipping for Rest of world section.
Now I got "Zone Rates" module disable, everything work great!!!

Now I only have one more question (I hope!!!)
People will not only purchase one sheet of decal from me, they always purchase more then one, some time even 10 sheets.
however I dont want to charge too much if they purchase more then one.
at my etsy store, when people purchase two sheets, the 2nd sheet will be extra $0.40 on top of $2.50 (the first sheet), and another extra $0.40 if they purchase 3 sheets.

how do I add this to the custom shipping module?
Thanks
Arwen