close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Incremental price not showing on Product Details page

Thread began 2/22/2016 5:54 am by Mags | Last modified 2/25/2016 10:59 am by Mags | 2951 views | 8 replies

Mags

OK, I solved one problem in that the price increment column hadn't been included in the recordset and so wasn't showing on the product details page. That's now fixed, however the price increment still isn't being passed to the cart page. I think there may be a bug in Dreamweaver as the problem seems to be when I try to update the Add to Cart behavior (second last step in the tutorial, "Add dynamic product options II"). When I follow the steps, it doesn't appear to do anything except add another option value, but as plain text rather than code. I already have this as my select menu:

<select name="VetProCart_1_Format_Add">
<option value="">Select a format..</option>
<?php
do {
?>
<option value="<?php echo $row_rsFormat['ProductOptionID']?>"><?php echo $row_rsFormat['OptionName']?> (+£<?php echo $row_rsFormat['OptionPriceIncrement']; ?>.00) </option>
<?php
} while ($row_rsFormat = mysql_fetch_assoc($rsFormat));
$rows = mysql_num_rows($rsFormat);
if($rows > 0) {
mysql_data_seek($rsFormat, 0);
$row_rsFormat = mysql_fetch_assoc($rsFormat);
}
?>
</select>

but when I update the eCart Add from Recordset Behavior as instructed in the tutorial, this is what it does:

<select name="VetProCart_1_Format_Add">
<option value="">Select a format..</option>
<?php
do {
?>
<option value="<?php echo $row_rsFormat['ProductOptionID']?>"><?php echo $row_rsFormat['OptionName']?> (+£<?php echo $row_rsFormat['OptionPriceIncrement']; ?>.00) </option>
<?php
} while ($row_rsFormat = mysql_fetch_assoc($rsFormat));
$rows = mysql_num_rows($rsFormat);
if($rows > 0) {
mysql_data_seek($rsFormat, 0);
$row_rsFormat = mysql_fetch_assoc($rsFormat);
}
?>
<OPTION value="<?php echo $row_rsFormatLookup['OptionName']; ?>" selected>&lt;?php echo $row_rsFormatLookup['OptionName']; ?&gt;</OPTION>
</select>

Note the extra OPTION (in caps, this is exactly the way Dreamweaver inserted it). I've tried removing that extra option, changing the recordset for the correct option to rsFormatLookup but nothing's working. Would you be able to take a look for me please? Access details in the PM field.

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