Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2008
    Posts
    2
    Plugin Contributions
    0

    Default complex attributes

    hi there - i'm new to this board and zen cart, so be gentle with this question. ;-) after looking through the faqs, manual and forum, i think i might be out of luck with what i'm trying to do. but i'm hoping you'll tell me otherwise. the product: custom size doors. basically, i want to create two free-form (text field) attributes: height and width. i want to be able to apply price factors based on each individually as well as the product of height * width. i'll throw out the formulas to make it clearer:

    total price of door = [door price] + [calc'd shipping] + [flat shipping]
    door price = base price * square footage if greater than base size; otherwise, door price = base price / 2 * (base size + size desired) if less than base size. all doors may have different base sizes and prices.

    calc'd shipping = (height + offset) + (width + offset) * variable shipping rate factor

    flat shipping = $100

    so - i need the user to supply both height and width individually, but in determining the price, both values are needed at once. so, a few questions here: is there any way to reference the value of another attribute or itself when defining the price offsets and factors?

    or suppose i were to code in a small calculator that would do this work, is there any way to pass these custom values to zen cart before it's added to the cart as a hidden form value or something?

    thanks much everyone.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: complex attributes

    There is no built-in way to achieve this. It would involve customer coding. I know a designer who I think did something similar, and will contact him to see if he's got time to drop by.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: complex attributes

    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  4. #4
    Join Date
    Feb 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: complex attributes

    kuroi - kind of what i thought. and i think i'll get a start on hacking the code to make it do what i want. it's a bit daunting though, the codebase being as large and complex as it is.

    i'll try to post my patches here when i'm done. i figure i'm not the only one that needs something like this in zen cart.

    thanks much for your replies.

 

 

Similar Threads

  1. v151 Trying to configure multiple product attributes in a complex situation
    By stevechu88 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 22 Oct 2012, 03:39 AM
  2. products with complex attributes
    By GKanes in forum General Questions
    Replies: 1
    Last Post: 7 Dec 2011, 05:29 PM
  3. Multiple Complex Attributes - Loaded Questions
    By sports guy in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Jul 2011, 03:49 PM
  4. Complex Discount
    By apricot in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 15 Jun 2009, 05:36 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