close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Using eCart on pages with Tabbed Panels

Thread began 11/03/2009 4:11 pm by Rich Petersen | Last modified 11/16/2009 9:57 am by Jason Byrnes | 3372 views | 11 replies |

Rich Petersen

Using eCart on pages with Tabbed Panels

Hello!!

Been using eCart with great success....

I recently decided to change the menu page a bit. Right now, the menu for this sandwich shop is for two weeks, and it is in one table on the page and working great.

I changed it to have one week's menu on one tab, and another weeks menu on a second tab. The first tab works fine, the second tab sends you to the first tab when you try to "add to cart"

Any ideas?

Thank you,
Rich

Sign in to reply to this post

Jason ByrnesWebAssist

Does the first tab go to the cart display page?


do you have a link?

Can you send a copy of the page? I will need some more details on the problem to have an idea of what is wrong.

Sign in to reply to this post

Rich Petersen

Jason,

Yes, the first tab will take you to the cart, and operates without error.

Attached is the test page...

Thanks,
Rich

Attached Files
ourlunches2.zip
Sign in to reply to this post

Rich Petersen

Jason,

Have you had a chance to look at this? Any suggestions?

I haven't touched it in a bit, but will work on it tonight. I'll let you know if I make any headway or find more useful info.

Thanks,
Rich

Sign in to reply to this post

Jason ByrnesWebAssist

Whith so many add to cart buttons on the page, it is impossible to see what may be going wrong.


To trouble shoot this, first simplify.

Create the page with 2 tabs, on each tab add a static add to cart button to take the recordset out of the equation, then test it.

If it is working with both as static add to cart buttons, create the recordset for each one and then change them to Dynamic add to cart buttons and test.

Once you have the first 2 working, add the next 2, one on each tab. and test. By adding them back one pair at a time, one on each tab, you can more easily pin point which one doesn't work for trouble shooting.


If you continue to have problems, please post a link as seeing the problem in a browser may help me see where the problem is.

Sign in to reply to this post

Rich Petersen

Good point......

I'll take care of that and let you know...

Thanks Jason,

Rich

Sign in to reply to this post

Rich Petersen

Here you go Jason...

ourlunches2.php

Thank you...

Sign in to reply to this post

Rich Petersen

BTW Jason, if you add to cart, then go to cart, then come back, you will go to the "actual" page, so make sure you change back to ourlunches2.php to continue testing.

Sign in to reply to this post

Jason ByrnesWebAssist

Looking at the source code of the page,


this is the add to cart form that gets created for one of the items that works:

html:
<td align="left" valign="middle"><form name="teacherslunchbox_21_ATC_14" method="POST" action="/ourlunches2.php">

<p>Quantity:
<input type="text" name="teacherslunchbox_21_Quantity_Add" value="1" size="4" >
<input type="hidden" name="teacherslunchbox_21_ID_Add" value="14" >
<br>
&nbsp;&nbsp;&nbsp;&nbsp;Bread:
<select name="teacherslunchbox_21_Bread_Add">
<option value="Honey Wheat">Honey Wheat</option>
<!-- <option value="Pumpernickel">Pumpernickel</option> -->
<option value="White">White</option>

</select>
</p>
<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="image" src="WA_eCart/Images/Pacifica/Btn3_EN_addtocart.gif" border="0" value="Add to Cart" name="teacherslunchbox_21_ATC" >
</p>
</form></td>



This is the add to cart form for an itwem that does not work:

html:
<td align="left" valign="middle"><form name="teacherslunchbox_1_ATC_" method="POST" action="/ourlunches2.php">
<p>Quantity:
<input type="text" name="teacherslunchbox_1_Quantity_Add2" value="1" size="4" >
<input type="hidden" name="teacherslunchbox_1_ID_Add2" value="" >
<br>
&nbsp;&nbsp;&nbsp;&nbsp;Bread:
<select name="teacherslunchbox_1_Bread_Add2">

<option value="Honey Wheat">Honey Wheat</option>
<!-- <option value="Pumpernickel">Pumpernickel</option> -->
<option value="White">White</option>
</select>
</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="image" src="WA_eCart/Images/Pacifica/Btn3_EN_addtocart.gif" border="0" value="Add to Cart" name="teacherslunchbox_1_ATC" > </p>

</form></td>





the main differance is that the one that does not work has a blank value for the ID:

html:
<input type="hidden" name="teacherslunchbox_1_ID_Add2" value="" >



The one that does work has a positive value for the ID:

html:
<input type="hidden" name="teacherslunchbox_21_ID_Add" value="14" >
Sign in to reply to this post

Rich Petersen

Ah, nice catch. I'll check it out and let you know.....

Thanks for the feedback, you guys are awesome.

Rich

Sign in to reply to this post
loading

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