close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

4 different prices pick one that has value.

Thread began 3/21/2010 1:03 am by dave315749 | Last modified 3/21/2010 10:39 am by Ray Borduin | 724 views | 1 replies |

dave315749

4 different prices pick one that has value.

I would like to know the best way to implement this feature into the add to card behavior. I have up to 4 different price values but only 1 that will actually be taken when "atc". Depending on which value has a number, sometimes other values wont have numbers.

1. price from the price_field_prod
2. price from a spot_price_calculation_prod
3. price from price plus percent field x spot.
4. wholesale when members are logged in.

what is the best way to add up values ? Do you think custom coded in php first and then have a final value to drop in the cart? or can they be done within ecart? How would you do it ?

thanks!

Sign in to reply to this post

Ray BorduinWebAssist

I'd probably do it all in the SQL statement, using COALESCE or simple addition depending on whether the on whether the empty fields use NULL or zero.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...