Forums / Setting Up Categories, Products, Attributes / Calculate price by number entered as text

Calculate price by number entered as text

Views: 1,102

Results 1 to 3 of 3
1 Apr 2010, 2:29 PM
#1
twdhosting avatar

twdhosting

Zen Follower

Join Date:
Mar 2005
Posts:
119
Plugin Contributions:
0

Calculate price by number entered as text

Hi there,

I am trying to set-up the following but cannot see a way of doing it?

I want to sell electrical cables in specific lengths with a choice of connector on either end, the price of the cable is calculated by £x.xx per cm + £x.xx for connectors.

At first I was going to use a drop down for the lengths but the vast number of lengths and prices has made this a bit of a nightmare! (we are talking 5cm to 20m)

What I really need is an attribute for the customer to enter a length (in cm) then they select the connectors and zen cart works it out??????

Using the quantity box as a length box is out of the question because the store has other products that are not by length PLUS it screws the maths up because it would multiply the connector attribute too.

I've searched the forums, Google and the software add-ons but I cannot see anything that can do this?

Any help please?????????

Thanks in advance!

22 Apr 2010, 4:18 PM
#2
ewanvrooyen avatar

ewanvrooyen

New Zenner

Join Date:
Apr 2010
Posts:
4
Plugin Contributions:
0

Re: Calculate price by number entered as text

I'm having the same issue with selling carpets. I would like to sell by square meter. It would be great if you could add "per square meter" after the price to make it clear. Rugs etc. will not be per square meter.

Any help would be greatly appreciated.

31 Jan 2011, 10:01 AM
#3
robertgriffinit avatar

robertgriffinit

New Zenner

Join Date:
Jan 2011
Posts:
5
Plugin Contributions:
0

Re: Calculate price by number entered as text

This thread should answer your question about inputting lengths of cables. The answer requires changing the text box to one that can handle numbers by rewriting bits of code in the 'core':

Using Numeric Values And Dependant Attributes
http://www.zen-cart.com/forum/showthread.php?t=33423&highlight=Numeric+Values+Dependant+Attributes

Good luck!