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

    Default Creating number entry -$product['attributes']

    I have created a new attribute type of 'size' and added it to the table, and i created an option value to go with it to allow me to add to the product.

    I edited attributes.php to handle the new size attribute (PRODUCT_OPTIONS_TYPE_SIZE) in a very similar manner like a text box..

    The difference is that the input name will be id[width] or id[height]

    .... I need to handle it this way because although w&h will be displayed, I need to calculate the area and apply a calculation to the result to generate an option price .... which I have done in shopping_cart.php

    My problem is that the option adds an entry in the cart summary, but the name & value pair is blank.

    I can't see where $product['attribute']['product_options_name'] is being set for this type... should i even bother trying to set this? or hack in a lookup to ignore it for those 2 fields ?

    I would like to integrate these 2 options as much as possible into the 'normal' attribute settings...

  2. #2
    Join Date
    Jun 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: Creating number entry -$product['attributes']

    This sounds like an attribute I need for my ZenCart

    I am creating a site that is (hopefully) going to enable an on-line print service for paper and canvas prints.

    So far, I have product attributes set up that work as a series of set sizes (using radio buttons) and a file upload attribute so that the client can send me their artwork.

    This works great, but unfortunately, people would rather specify their exact width and height values when they make the order.

    I don't know how to process this into a price.

    I would imagine I would work it out from the area - calculated from the width and height values - but I haven't a clue how code this.

    Can anyone help me out here?

    Thanks

  3. #3
    Join Date
    Nov 2005
    Location
    Germany, Bavaria
    Posts
    30
    Plugin Contributions
    0

    Default online calculation with given atrribute fields

    Hello Lysdexic,

    this is it what I'm searching for a long time.

    I have a similiar shop like you and its a torture for my clients to orientate with hundrets of formats and the prices. Not to talk about manageing.

    Did you allready find anything this way?

    walzen
    www.escrevo.de
    Version: ZC 1.3.7
    PHP: 4.4.4
    MySQL 5.0.33
    Server OS: Linux 2.6.18.2

  4. #4
    Join Date
    Jul 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Creating number entry -$product['attributes']

    I have a work-around:

    Let the clients know that they must choose pre-selected sizes based on your material width. Then have them enter in the actual custom dimensions in some kind of information box, not an attribute.

    Essentially, require your users to "size up" their print to your selection of sizes, then enter in the custom size you need to "trim down" to.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 22 Oct 2008, 10:10 PM
  2. Creating Custom Product Attributes
    By youderian in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Oct 2008, 01:22 AM

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