Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Changing Price via Attribute (not incremental)

Changing Price via Attribute (not incremental)

Views: 526

Results 1 to 2 of 2
24 Feb 2012, 7:28 PM
#1
poetryjoe avatar

poetryjoe

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Changing Price via Attribute (not incremental)

I apologize up front if this has been covered before. My business process is:

I have a multiple products that are cut to length (yard, half yard, etc.)

I have a pre-cut attribute that is statically priced (i.e. the precut is always $8.00) and decrements the inventory by .25

A customer could buy .25 off the source material and it will calculate at 5.50 * .25 = 1.36 - this would not be considered a pre-cut

If they buy the "pre-cut" it will always be $8.00

Is it possible to model this business process using attributes?

Thank you,
Joe

26 Feb 2012, 10:14 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Changing Price via Attribute (not incremental)

The precut and the price per yard are each easy to achieve, but the combination on one product may require some tricky work.

You can get the price per yard simply by setting the product base price as required, and making the minimum quantity .25 or whatever, and setting Configuration > Stock > Product Quantity Decimals to 2.

The precut can be an attribute, but if its price is $8.00, that will be added to the base price. You would need to adjust the precut attribute price to total up with the base price to equal 8.00. Then you would have to make sure that when the precut is ordered, a quantity of 1 is selected... this would decrement stock by 1 and not .25, so you might need some custom code to test for the precut being selected and substitute qty .25, base price 0 and attribute price 8.00 for whatever the numbers might otherwise be.