close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Getting Add to Cart buttons, with Size Options, added to Products Page

Thread began 2/11/2016 3:56 pm by graham | Last modified 2/12/2016 8:40 pm by graham | 378 views | 11 replies

Ray BorduinWebAssist

We are probably going to have to do this in a premier support ticket. We are going to have to append the product ID to the price span and pass it into the update price function.

I made a mistake earlier... lines 88-100 needed to stay above... so move the code that begins with:
$paramOption_rsSizeLookup

and ends with:
$totalRows_rsSizeLookup = mysql_num_rows($rsSizeLookup);

back above the add to cart code on the top of the page with the other recordset. That will fix the add to cart price, but the display price will need some hand editing of the function and html.

I can try to walk you through it....

Where you have: <span id="newPrice">
Update it to: <span id="newPrice_<?php echo $row_rsFaceproducts['ProductID']; ?>">

Then where you have: onchange="updatePrice(this)"
Update it to: onchange="updatePrice(this,<?php echo $row_rsFaceproducts['ProductID']; ?>)"

Update: function updatePrice(list)
To: function updatePrice(list,id)

and update: document.getElementById("newPrice")
to: document.getElementById("newPrice_"+id)

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...