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

Can a style influence what is passed onto the cart page?

Thread began 3/01/2011 3:49 pm by Roxana | Last modified 3/04/2011 12:40 pm by Roxana | 1117 views | 5 replies


Can a style influence what is passed onto the cart page?

I am still working on hiding non-relevant select menus. For example, if items have no size option, the size selection menu should be hidden. The size value for these item is set to zero.

In order for the items still to be passed on to the cart page I used this code (suggested by Jason), with the respective recordsets put in place:

$ATC_itemSize = "".$row_rspricelookup['size'] .""?$row_rspricelookup['size']:($row_rspriceNoSize['size']!=""?$row_rspriceNoSize['size']:($row_rspriceNoVersion['size']!=""?$row_rspriceNoVersion['size']:$row_rspriceNoVersionNoSize['size']));// column binding

In order to hide the non-relevant menu, I am using a temporary style

if ( (!isset($row_rsversion['version_id'])) || ($row_rsversion['version_id'] == "13") )
$tmpElementClassVersion = "hide";
$tmpElementClassVersion = "show";
if ( (!isset($row_rssizedefault['size_id'])) || ($row_rssizedefault['size_id'] == "8") )
$tmpElementClassSize = "hide";
$tmpElementClassSize = "show";

8 and 13 represent the zero values.

With the style defined like this (I also tried display:none, display:block):
.hide {
visibility: hidden;}
.show {
visibility: visible}

And for the output:
<select class="<?php echo $tmpElementClassVersion; ?>
for the version select menu

<select class="<?php echo $tmpElementClassSize; ?>
for the size select menu.

The problem: with the style in place, the product is not correctly passed onto the cart (for example a product in sizes S, M and L, no matter what size I choose, size S is being passed on).

Is something wrong with the if-statement?

This was the original thread:

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





Ease of use


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