Forums / Setting Up Categories, Products, Attributes / Need attribute price to display total price not incremental price

Need attribute price to display total price not incremental price

Locked

Started by rickk123 on 31 Aug 2010, 8:49 PM · Views: 3,689

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
31 Aug 2010, 8:49 PM
#1
rickk123 avatar

rickk123

New Zenner

Join Date:
Aug 2010
Posts:
16
Plugin Contributions:
0

Need attribute price to display total price not incremental price

I’m hoping someone can help me with this? I need the price next to the attribute to show the total price and not the incremental price.

I have a product setup exactly like a product in the demo database called PRICEFACTOR. It has a base product price of $10.00 and then uses the price factor to increment the total value. It’s in the “New v1.2 ->Attributes” category. It displays the price on the attributes as follows:
Base price $10.00
Red (+$10.00)
Yellow (+$20.00)
Green (+$30.00)

I need it to display the total price
Base price $10.00
Red ($20.00)
Yellow ($30.00)
Green ($40.00)

Does anyone know an easy way to do this or do I need to get into the PHP code?

1 Sep 2010, 10:56 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Need attribute price to display total price not incremental price

The easy way is to price the product by attributes in the product setup page. In this case, you would have 4 attributes, $10, $20, $30 and $40. The lowest price should display as the 'base' (display) price, like this demo example:

http://www.stevesh.org/demo/index.php?main_page=product_info&cPath=23&products_id=59

1 Sep 2010, 2:15 PM
#3
Join Date:
Jul 2010
Location:
Findon, UK
Posts:
90
Plugin Contributions:
0

Re: Need attribute price to display total price not incremental price

Great tip. Many thanks. However, how did you manage to get the starting price higher than 0 ?

1 Sep 2010, 2:33 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Need attribute price to display total price not incremental price

The starting (display) price will be the lowest of the attribute prices.

1 Sep 2010, 4:04 PM
#5
rickk123 avatar

rickk123

New Zenner

Join Date:
Aug 2010
Posts:
16
Plugin Contributions:
0

Re: Need attribute price to display total price not incremental price

Thanks but I want to use a price factor instead of a fixed price. If I set the price in the main product and use price factors instead of hard coding a price, I then can use the same three attributes throughout my storefront. If I set a hard coded price then I have to create different attributes for every product. The only price that I want to set is the main product price, the add-ons are a factor of the base price.

So I would like to show the total price, the base price plus the add-ons, next to the attribute.

1 Sep 2010, 4:58 PM
#6
Join Date:
Jul 2010
Location:
Findon, UK
Posts:
90
Plugin Contributions:
0

Re: Need attribute price to display total price not incremental price

stevesh:

The starting (display) price will be the lowest of the attribute prices.

That what I would have thought. However, on my shop the starting price is blank although my attribute prices are spot on and works. Any idea what can cause a blank starting price ?

2 Sep 2010, 8:58 AM
#7
Join Date:
Jul 2010
Location:
Findon, UK
Posts:
90
Plugin Contributions:
0

Re: Need attribute price to display total price not incremental price

Don't worry, I figured it out on my own with a little adjustment.
Once again many thanks for your original tip about how to show total prices.

2 Sep 2010, 5:26 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need attribute price to display total price not incremental price

Could you give examples of what worked for you on this, price factors can be confusing and it helps to see how others do it ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!