Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / attribute priced by length

attribute priced by length

Locked

Views: 2,170

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
2 Feb 2009, 11:51 PM
#1
Join Date:
Mar 2006
Posts:
15
Plugin Contributions:
0

attribute priced by length

We have a new site thats being built but we need some advice before we go any further.

What the cusotmer will do is enter the dimensions of his unit required, these are custom made.

i.e. on the product page the customer enter his dimensions into a text box, say 20 x 22.7mm and clicks update and the prices is worked out by attributes that are setup already.

so an attribute would be set at £0.20 per 2mm total £404.60

Is the attributes on zen cart up to this?

If so any ideas how I would set this up?

3 Feb 2009, 1:28 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: attribute priced by length

Attribites can be configured for many options...
I do not get your example as doing normal math

20X22X£0.20= £88.00
20X22.7X£0.20= £90.80
20X23X£0.20= £92.00

Or

22+22.7*£0.20 = £8.54

3 Feb 2009, 2:19 AM
#3
Join Date:
Mar 2006
Posts:
15
Plugin Contributions:
0

Re: attribute priced by length

My maths is great. I used a calculator as well, must of pressed another button :-)

£90.80 is correct it's supposed to be 0.20 per 1mm as well (its been a long day)

So how would I set this up?

3 Feb 2009, 2:29 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: attribute priced by length

If this needs to be 100% "custom" then I would price it by the mm at £0.20 ea.
Present them the text entry for their exact size.
Provide instructions to multilpy their 2 numbers and round to the next higher whole mm and order that many or "enter the result in the qty to order box"

If you want this to be automatic and done through programming then it will take exactly that "custom coding"

1 Apr 2009, 9:39 AM
#5
eleven01 avatar

eleven01

New Zenner

Join Date:
Mar 2009
Posts:
28
Plugin Contributions:
0

Re: attribute priced by length

Bump,
Is this custom coding possible? and if so, how would I go about it?
I need to do this but don't really have any idea where to start, any tips or advice would be hugely appreciated,
Thanks.

6 Jul 2009, 2:03 PM
#6
karl19 avatar

karl19

New Zenner

Join Date:
Jun 2007
Posts:
62
Plugin Contributions:
0

Re: attribute priced by length

We're also looking for a way of having two fields (height and width) for a product being input by the customer and then the price being worked out based on the product's base price per square meter.

I've seen a couple of posts on the forum, where people have asked for this, but no solutions yet. If anyone had this custom coded, would you be interested in releasing the code to share with the community?

6 Jul 2009, 6:10 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: attribute priced by length

karl19:

I've seen a couple of posts on the forum, where people have asked for this, but no solutions yet.
See my Post #4 and change mm to m/sq
You will need instructions to enter only whole meters as length and width

7 Jul 2009, 9:41 PM
#8
danew avatar

danew

New Zenner

Join Date:
Jul 2009
Posts:
3
Plugin Contributions:
0

Re: attribute priced by length

Guys,

You lost me some how with this explanation...
I am sure this is THE post I am looking for but I don't get it... :huh:
Maybo someone would be so nice to explain me, how did you set up an item to calculate its price dependigly on atributes?
I tried to use length but it does not change much.. What am I doing wrong?

8 Jul 2009, 1:37 AM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: attribute priced by length

DaNew:

I tried to use length but it does not change much.. What am I doing wrong?
You gave no idea what you are doing???
Expand upon what you want and what you have done and be specific

8 Jul 2009, 7:40 AM
#10
karl19 avatar

karl19

New Zenner

Join Date:
Jun 2007
Posts:
62
Plugin Contributions:
0

Re: attribute priced by length

Thanks for the reply kobra! That would be an option sometimes, unfortunately not for this project, where they require that customers can input height and width requirements individually and the shop calculates the price accordingly.

I guess we need to have a look at having this custom coded, not sure how complicated that would be. If we get it done, I'll try and post a solution back here.

8 Jul 2009, 7:55 AM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: attribute priced by length

karl19:

where they require that customers can input height and width requirements individually and the shop calculates the price accordingly
That is what was described earlier
premierbluetooth:

i.e. on the product page the customer enter his dimensions into a text box, say 20 x 22.7mm and clicks update and the prices is worked out by attributes that are setup already.

8 Jul 2009, 8:12 AM
#12
karl19 avatar

karl19

New Zenner

Join Date:
Jun 2007
Posts:
62
Plugin Contributions:
0

Re: attribute priced by length

Thanks again for your reply kobra!

The way I understant it, the solution you're suggesting means the customer inputs their height + width in a text field and then, on their own, multiplies the values and if they have 2x2m, they get 4sqm and inputs 4 as quantity.

That's still a little too much work for this the customers of this site - call them lazy, but that's how it is! They would need one box with width and one with height (and perhaps a button to click with "calculate price" or similar, where the system adds the dimensions and outputs the price based on the sqm price). The product is wallpaper, so it's likely to be quite exact also, for example a customer wants a dimension of:

340cm width
250cm height

If price per square meter is £10, the final price would be £85, as dimension is 8.5sqm.

It seems to me that would be a tad more complicated ;)

8 Jul 2009, 8:37 AM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: attribute priced by length

They are calculated from attributes
attribute A = length
attribute B = width
partial/decimal lengths/widths make it complicated...whole values easier

8 Jul 2009, 10:52 AM
#14
danew avatar

danew

New Zenner

Join Date:
Jul 2009
Posts:
3
Plugin Contributions:
0

Re: attribute priced by length

Dear Kobra(:smartalec:),

Sorry that I was unclear.
Allow me to explain price calculation first:
X - price factor
B - base price
W - width
H - height
SellPrice = (WHX) + B
So SellPrice depends on dimensions of article multiplayed with 'price facor' plus some base price.
What I did:

  • I set article price to B.
  • I set price to be calculated from attributes.
  • I defined two attributes:
  • Width (text)
  • Hight (text)
  • I set price by attribute. I think here I did something wrong... or I did not 'told' system to handle it in proper way. When I use different values for Width and Hight I still get same price calculated... as both attributes would not be multiplayed with eachother.

Is this more clear or did I missed some?

8 Jul 2009, 1:00 PM
#15
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: attribute priced by length

DaNew,
What is this?
What type of dimensions do you sell in?

8 Jul 2009, 7:50 PM
#16
danew avatar

danew

New Zenner

Join Date:
Jul 2009
Posts:
3
Plugin Contributions:
0

Re: attribute priced by length

kobra:

DaNew,
What is this?
What type of dimensions do you sell in?

Kobra,

Dimension used for sale is piece. One piece (a window) can have different dimensions.
I found out relation between size of the window and its price (that's formula described in my previous post).

Another approach could be: not to sell by piece but square meter. But the problem with this approach is that price by square meter decreases when square area increases. So then still some fixed price should be added...
That's why in my formula you will find a 'base price'.

with regards

30 Aug 2009, 1:17 PM
#17
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: attribute priced by length

I have found the answer, The mod you need is available here apparently it will calculate the cost in 3 dimensions as well.