Forums / Setting Up Categories, Products, Attributes / How to swap main product price with the main product price + attribute's price total?

How to swap main product price with the main product price + attribute's price total?

Started by apham on 13 Apr 2011, 10:47 PM · Views: 3,279

Results 1 to 7 of 7
13 Apr 2011, 10:47 PM
#1
apham avatar

apham

New Zenner

Join Date:
Dec 2010
Posts:
9
Plugin Contributions:
0

How to swap main product price with the main product price + attribute's price total?

Hi,

I currently have my products set up like this:

  1. Select a Style: [crimson red (+10.00), lavender purple, etc]
  2. Select a Size: [x-small, small, medium, large, x-large, etc]
  3. Select Quantity: [1,2,3,.. etc]

I currently have the add-on:
Attribute image replaces main product image on selecting attribute
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=994

Let's say I select crimson red, which costs an extra $10.00 for that option, in size x-small. If I select the radio button crimson red, which (based on the add-on) will swap out the main product image, it is misleading when it still displays the MSRP price of $100.00 when it should be $110.00.

My question is, How can I swap the attribute's price (similar to how I'm swapping its image)?

Thanks!

13 Apr 2011, 11:56 PM
#2
igofresh avatar

igofresh

Zen Follower

Join Date:
Oct 2010
Posts:
149
Plugin Contributions:
0

Re: How to swap main product price with the main product price + attribute's price total?

Ive never used the image add on. I can tell you that if you set up the price by attribute for crimson properly it will add the $10 up charge.
Study this well:
https://www.zen-cart.com/tutorials/index.php?article=57

History does not repeat itself but it does rhyme - Mark Twain

14 Apr 2011, 3:26 PM
#3
apham avatar

apham

New Zenner

Join Date:
Dec 2010
Posts:
9
Plugin Contributions:
0

Re: How to swap main product price with the main product price + attribute's price total?

igofresh:

Ive never used the image add on. I can tell you that if you set up the price by attribute for crimson properly it will add the $10 up charge.
Study this well:
https://www.zen-cart.com/tutorials/index.php?article=57

Yes, I understand that but I'm trying to accomplish swapping out the MAIN price, rather than having it display (+10.00) next to the attribute.

Please see the screenshot:
http://www.flickr.com/photos/58493380@N06/5618911297/

Diamond White is selected and is +$10. I want the text in red at the top to read: 441.96, not 431.96.

Thanks for your response.

14 Apr 2011, 7:18 PM
#4
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: How to swap main product price with the main product price + attribute's price total?

try this add on: http://www.zen-cart.com/forum/showthread.php?t=70577

it is not perfect, but it does the job

18 Apr 2011, 3:10 PM
#5
apham avatar

apham

New Zenner

Join Date:
Dec 2010
Posts:
9
Plugin Contributions:
0

Re: How to swap main product price with the main product price + attribute's price total?

Design75:

try this add on: http://www.zen-cart.com/forum/showthread.php?t=70577

it is not perfect, but it does the job

I tried that add-on, and it's getting really close but does not quite work. It does successfully switch to the correct price when I click on the radio button belonging to the attribute w/ different pricing; HOWEVER, when I click on another attribute's radio button, it doesn't go back to the regular pricing.. it just stays stuck w/ displaying the different pricing. Can anyone help me fix this? Thank you!

Edit: To provide more detail about what I'm talking about, if you refer back to my screenshot via the Flickr link above, after I click on Diamond White, it will swap the price from 431.96 to 441.96 (which is correct), but when I click on, let's say.. "Black," it won't swap back to 431.96. Please help!

20 Apr 2011, 3:02 PM
#6
apham avatar

apham

New Zenner

Join Date:
Dec 2010
Posts:
9
Plugin Contributions:
0

Re: How to swap main product price with the main product price + attribute's price total?

Anyone?? Thanks

20 Apr 2011, 5:36 PM
#7
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: How to swap main product price with the main product price + attribute's price total?

you probably have to ask that question in the other thread. I never had the problem you refer to, and i am not a programmer :no: sorry