Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2010
    Posts
    13
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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
    Last edited by kobra; 16 Feb 2010 at 03:15 AM.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: conditional based attributes to calc shipping?

    Quote Originally Posted by kobra View Post
    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

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Shipping based on attributes
    By cassiedesigns in forum General Questions
    Replies: 1
    Last Post: 20 Dec 2010, 10:16 PM
  2. Need help with a Shipping Module -- calc based on first 3 dig of zip code
    By countrycharm in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 13 Oct 2007, 02:41 AM
  3. Conditional Terms - displayed based on Zone
    By DogTags in forum General Questions
    Replies: 0
    Last Post: 26 Jan 2007, 04:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg