close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

adding same prod with different size to ecart

Thread began 11/26/2009 6:08 pm by watercolor346374 | Last modified 11/30/2009 6:28 pm by Eric Mittman | 1445 views | 3 replies |

watercolor346374

adding same prod with different size to ecart

Hi,

I am still having problems with the sizes.
On my server it works, if a prod does not have a size the size form does not show up, if it has a size it shows up. On the live site: it does not work.
link: signature.php This collection has rings with sizes and necklaces without.


<input type="hidden" name="megan_1_ID_Add" value="<?php echo $row_rsDetail_popheart['prodid']; ?>" />
<input type="text" name="megan_1_Quantity_Add" value="1" size="2" >

<?php if ($totalRows_rsSize > 0) { // Show if recordset not empty ?>


<label style=" margin-left:5px" >
<select name="megan_1_size_Add">
<option value="" selected>Select Size</option>
<?php
do {
?>
<option value="<?php echo $row_rsSize['size']?>"><?php echo $row_rsSize['size']?></option>
<?php
} while ($row_rsSize = mysql_fetch_assoc($rsSize));
$rows = mysql_num_rows($rsSize);
if($rows > 0) {
mysql_data_seek($rsSize, 0);
$row_rsSize = mysql_fetch_assoc($rsSize);
}}
?></select></label>
<br />
<br />
<br />
<input type="image" src="images/add_to_bag_final_300dpi2.jpg" border="0" value="Add to Cart" name="megan_1_ATC">
</form>

I was also wondering how I can change the style of the size menu. I just want a plain dropdown with arrows, no blue and shine.
Thank you

Sign in to reply to this post

Eric Mittman

From the code that you have posted here is looks like the select list should be hidden unless there are rows in the recordset. Looking at the source code on your pages I'm not sure that you have the same code. On the live site it looks like the select lists have different names. One other thing that I notice is that if the code to hide the rs was not working properly the select lists should have a default value of Select Size. Since even the items with sizes to select do not have this option it tells me that the code on your live pages differs from the code you have on your testing server. You should check and compare them and try uploading the copy of pages that are working on your testing server.

Sign in to reply to this post

watercolor346374

code on pages

Hi,
I took the code out of my live pages cause I kept getting messages:
Here is the code I was using:
<?php if ($totalRows_rsSize > 0) { // Show if recordset not empty ?>


<label style=" margin-left:5px" >
<select name="megan_1_size_Add">
<option value="" selected>Select Size</option>
<?php
do {
?>
<option value="<?php echo $row_rsSize['size']?>"><?php echo $row_rsSize['size']?></option>
<?php
} while ($row_rsSize = mysql_fetch_assoc($rsSize));
$rows = mysql_num_rows($rsSize);
if($rows > 0) {
mysql_data_seek($rsSize, 0);
$row_rsSize = mysql_fetch_assoc($rsSize);
}}
?></select></label>
<br />
<br />
<br />
<input type="image" src="images/add_to_bag_final_300dpi2.jpg" border="0" value="Add to Cart" name="megan_1_ATC">
</form>
Something is amiss with it.
Thank you

Sign in to reply to this post

Eric Mittman

I'm not sure how you would see the select list on the live pages if this code is working properly. If you can please post back and include a copy of your add to cart page in a zip archive. I can take a look at it to see if there may be something else going on.

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