Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Jun 2008
    Posts
    3
    Plugin Contributions
    0

    Default User input product dimensions, update price based on inputs

    Hi, first let me say I am not currently using ZenCart. I am looking for a solution in order to setup an online store for my local business, and I am trying to figure out if Zencart will fit my needs. Hopefully this is an appropriate forum section to post my question. I have read up, checked the FAQ's, searched and can't find anything.

    My family runs a bedding and foam store. I would like to sell foam cut-to-size online (cushions, etc). In order to do this, I need the user to be able to input custom dimensions. The product listings would consist of the basic shapes, rectangle, circle, etc. After selecting the specific product, the user would need to input dimensions - length, width, etc.

    I would then set things up so that the user selects the foam type and thickness from a drop-down menu... this doesn't seem to be difficult. However, the dimensions dictate the price of the product.

    Basically, I need to be able to calculate a price based on volumetric dimensions, which the user inputs. The material selected would determine the price per unit volume or area. This seems easy, but I can't imagine any way of doing this without more advanced custom coding.

    Any help would be much appreciated, even if it is just to say it's not possible with ZenCart. Thanks,

    Scott

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

    Default Re: User input product dimensions, update price based on inputs

    One way is to Break this out and price by the sq in or sq ft and/or allow a partial sq ft

    Have a drop box for thickness and a price per unit for each thickness

    I don't know if you sur charge for circles and odd shapes but you should decide this upfront.

    You only then have to custom a bit of code to determine say the sq ft mathematically in your shopping_cart.php file
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: User input product dimensions, update price based on inputs

    thanks for the reply. So there is a way to have it calculate the square footage based on the input dimensions and then multiply this number by whatever price per sq. foot is set for the selected thickness? Circles wouldn't be an issue but complex cushion shapes require more than 2 input dimension (length, width), so in some cases it wouldn't be as simple as a length*width calculation for sq footage.

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

    Default Re: User input product dimensions, update price based on inputs

    So there is a way to have it calculate the square footage based on the input dimensions and then multiply this number by whatever price per sq. foot is set for the selected thickness?
    Not a default method - see post where I stated "Custom"

    As Zen Cart is open source, one can alter the code to do most anything possible
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jun 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: User input product dimensions, update price based on inputs

    I think this is going to take some custom javascript programming. While I havn't worked in javascript in awhile, and don't know a whole lot, I might be able to figure it out.

    At this point, I'm not quite sure how to combine a shopping cart setup and the javascript price dimension inputs and price calculation scripts.

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

    Default Re: User input product dimensions, update price based on inputs

    Suggest you start by using the min and unit functions in the product entry areas first and see what you are missing before forging ahead with a full blown coding excercise..

    I do not have your specific insight into what you are envisioning but have set a similar thing up for a flooring sales site and did not use any js
    Zen-Venom Get Bitten

  7. #7
    Join Date
    May 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: User input product dimensions, update price based on inputs

    I also need the same functionality. I want a user to be able to enter width and length, have it multiply the two, then add a $ per square foot.

    Has anyone found a solution to this, or created scripting that will do product dimensions? If so, please share. we should add this to the add-on section! It would be so useful.

    Thanks,

  8. #8
    Join Date
    Sep 2009
    Posts
    55
    Plugin Contributions
    0

    Default Re: User input product dimensions, update price based on inputs

    I want to done some calculation on price, that give me a new price for product, now I want that zencart will accept my this new calculated price and passed to add to cart, but it not working as it every time accept there previous price, so my question is that, did any one give me an idea, that what variable is used for price, that I will assigned my calculated value.

    Thanks
    Zahid.

  9. #9
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: User input product dimensions, update price based on inputs

    Hello Zahin,

    I realize there are many people, including yourself, that could really use this attribute calculator mod... i have not been able to complete it and upload in the add-ons section quite yet.

    But since you have the immediate need for it, I'm going to kick it into high gear and just get it done asap.

    Can you wait til Monday? I can surely have it ready for you by then.

    Thanks!

  10. #10
    Join Date
    Aug 2008
    Posts
    50
    Plugin Contributions
    0

    Default Re: User input product dimensions, update price based on inputs

    I believe in you jackie!
    attribute calculator mod YES!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 User input product dimensions, update price based on inputs now Working!
    By ChobPT in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 3 Dec 2012, 01:39 AM
  2. Price based on custom dimensions
    By shamkeem in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 3 Aug 2011, 04:58 AM
  3. price based on dimensions
    By jinx in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 24 Jan 2008, 08:35 PM
  4. Need User text input based on Attribute selected
    By heinz in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Aug 2007, 09:35 PM
  5. Price based on dimensions (per square meter)
    By frankkubiak in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 28 Sep 2006, 04:08 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