Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / conditional based attributes to calc shipping?

conditional based attributes to calc shipping?

Views: 1,251

Results 1 to 4 of 4
16 Feb 2010, 1:34 AM
#1
shewhorn avatar

shewhorn

New Zenner

Join Date:
Feb 2010
Posts:
13
Plugin Contributions:
0

conditional based attributes to calc shipping?

Is it possible to have conditionals for calculating shipping costs?

I only have one product (a photographic print) but that product has options...

Size (16"x24", 20"x30", etc)
Paper (the type of paper used)
Mounting

Past a certain size shipping a mounted print flat (vs. rolled) becomes prohibitively expensive so I want something along the lines of:

if( (shipping_size >= 30x40) & (mount == true) )
{
shipping_price += $30.00;
}

If that didn't make sense...

If the shipping size is greater than or equal to 30"x40" and the client wants the print mounted then add $30 to the shipping cost.

Is this possible?

Cheers, Joe

16 Feb 2010, 2:09 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: conditional based attributes to calc shipping?

I do not believe that shipping_size is a table or record in a table

I haven't looked but check your attribute table structure for a possible

16 Feb 2010, 2:12 AM
#3
shewhorn avatar

shewhorn

New Zenner

Join Date:
Feb 2010
Posts:
13
Plugin Contributions:
0

Re: conditional based attributes to calc shipping?

kobra:

I do not believe that shipping_size is a table or record in a able

I haven't looked but check your attribute table structure for a possible

I doubt it is.... I'm an ex c/c++ software engineer. Web stuff... don't touch it. :-) I was just thinking out loud in terms of the logic I wanted. (so ignore the variables... they have no bearing on the actual code in Zen Cart... I'm just describing the behavior I'd like to see).

Cheers, Joe

16 Feb 2010, 2:18 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: conditional based attributes to calc shipping?

Then yes you are on the correct track

I also am a compiled language user and this interpreted php was/is difficult - - - I also have a mental block to learning a new lang at this stage for me