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

Shipping per Categories

Views: 10,466

Results 41 to 50 of 50
19 Mar 2014, 9:24 PM
#41
ajeh avatar

ajeh

Oba-san

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

Shipping per Categories

Exactly where I placed it ...

The code in BLACK is current existing code in the zones.php file ... you add the new code in RED around and within the current existing code in BLACK in the zones.php file ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Mar 2014, 9:51 PM
#42
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Shipping per Categories

@Ajeh

Just noted a little typo in the header of both files:

@version itemcat.php 1969 [B]2104[/B]-01-03 06:57:21Z ajeh $

Don't think I will be alive then :laugh:

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

19 Mar 2014, 9:56 PM
#43
gabstero avatar

gabstero

Zen Follower

Join Date:
Nov 2007
Posts:
342
Plugin Contributions:
0

Re: Shipping per Categories

Ajeh -

thanks so much! it is seems to be working fine but I am realizing that calculating the extra charge will always be related to the global rate Table. Currently I have that set to whatever they get on the malaysian continent (UPS Zone Rates).
The cat 12, and 15 has items shipped from the US. if someone buys and item from one of these categories that ships from the US to the US, the calculated rate is too high. Should be actually less that as if it is shipped from Malaysia (all the categories not affected my the mod).

hope I am making sense.

thanks!
g

19 Mar 2014, 10:13 PM
#44
ajeh avatar

ajeh

Oba-san

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

Re: Shipping per Categories

frank18:

@Ajeh

Just noted a little typo in the header of both files:

@version itemcat.php 1969 [B]2104[/B]-01-03 06:57:21Z ajeh $

> 
> Don't think I will be alive then :laugh:

Always have been a tad bit dyslexic ... :blush:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Mar 2014, 10:17 PM
#45
ajeh avatar

ajeh

Oba-san

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

Re: Shipping per Categories

gabstero:

Ajeh -

thanks so much! it is seems to be working fine but I am realizing that calculating the extra charge will always be related to the global rate Table. Currently I have that set to whatever they get on the malaysian continent (UPS Zone Rates).
The cat 12, and 15 has items shipped from the US. if someone buys and item from one of these categories that ships from the US to the US, the calculated rate is too high. Should be actually less that as if it is shipped from Malaysia (all the categories not affected my the mod).

hope I am making sense.

thanks!
g

You need to be a lot more specific ...

If you are trying to say the charges of $2.75 and $1.75 have to change with each different Zone then this is a heck of a lot harder to write, which is what I was trying to ask you about in post #37 ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Mar 2014, 7:48 PM
#46
gabstero avatar

gabstero

Zen Follower

Join Date:
Nov 2007
Posts:
342
Plugin Contributions:
0

Re: Shipping per Categories

Ajeh -

I am sorry if I confused you. Reading again my post I can see it's confusing. The scenario is really simple:

The store has 3 categories:

  • Two of the categories has products originating in Malaysia. The manufacturer here prefers the Zone Rate module.
  • One category has products originating in USA. The manufacturer here prefers the Per Unit if shipped in the USA and the USPS if shipped worldwide.

Both locations are shipping worldwide including even their country of origin. Chances are that a customer say from... Romania would have a product from Malaysia and from the USA in the cart.

A friend mentioned that you wrote a mod somewhere where you can selectively disable shipping modules based on categories. Is this thread addressing that? That would be the ideal situation for me.

does this make sense? Again I apologize for the confusion.

thanks
g

24 Mar 2014, 10:27 PM
#47
ajeh avatar

ajeh

Oba-san

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

Re: Shipping per Categories

On the Zone Rate zones shipping module, use the Zones in order as in Zone 1, Zone 2, Zone 3 etc. Do not skip Zones and then add more in Zones ...

You appear to be skipping Zones then using a Zone then skipping Zones then using Zone ...

I am going to have to think on this more as there will be issues when someone orders from multiple categories ...

Perhaps if you could spell out what shipping method is suppose to show for which Category and what to do when there is a mixed cart of Products from each of the categories and what shipping module should then be used ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Mar 2014, 7:46 PM
#48
gabstero avatar

gabstero

Zen Follower

Join Date:
Nov 2007
Posts:
342
Plugin Contributions:
0

Re: Shipping per Categories

Ajeh:

On the Zone Rate zones shipping module, use the Zones in order as in Zone 1, Zone 2, Zone 3 etc. Do not skip Zones and then add more in Zones ...

You appear to be skipping Zones then using a Zone then skipping Zones then using Zone ...

I was skipping zones - that might have been the issue.

Ajeh:

I am going to have to think on this more as there will be issues when someone orders from multiple categories ...

Perhaps if you could spell out what shipping method is suppose to show for which Category and what to do when there is a mixed cart of Products from each of the categories and what shipping module should then be used ...

Thanks Ajeh - sure it is simple:

Category 1 (and its nested categories): using Zone Rates
Category 2 (and irs nested categories): using USPS api

It might be easier to just make a separate purchase for items from each location because indeed, if customer has items from different location, calculating the shipping rate might be a pain. But here's an idea:

What if customer has mixed items from different categories in the cart, price is calculated using the cheapest rate for each location? Example:

Item from category 1 (using Zone Rates)
Item form Category 2 (using USPS api)

Shipping rate total should be Zone Rate + Cheapest USPS rate

thanks
g

28 Mar 2014, 12:14 AM
#49
ajeh avatar

ajeh

Oba-san

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

Re: Shipping per Categories

On Category 1 and is subcats, are you actually just trying to charge $4.00 per 0.5lbs?

What happens to those not in the Countries for:
HK, US, CA, MX and PR

are you just trying not to ship the Products in Category 1 and subcats to anywhere not in these 5 countries?

Do your Products that use USPS ship everywhere or only to these 5 countries?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Aug 2018, 3:04 PM
#50
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Shipping per Categories

Hello everyone !!

I have been searching for quite few days, but could not find anywhere..

I will be thankful if someone helps me here....

I want to setup shipping module that calculates the shipping cost by weight as well as price.

I am using two types of shipping on my website https://shopping.muteyaar.org - expedited shipping and regular mail shipping , both with zone rates that calculate by weight of shipment.

Now, the problem is that I want to restrict regular mail shipping for orders of high value (say USD 100 for example). I have already restricted the weight element to 1 KG. More than 1 KG is not shipped through regular mail... But I want also want to restrict the price value.

I mean I want to restrict regular mail shipping for orders of more than 100 USD price and 1 KG weight.

Only the orders with value less than 100 USD and weight 1 KG should be able to be shipped through regular mail......

Is that possible?
Kindly help me out on this.

thanks in advance.