Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shopping Cart Help!!

Status
Not open for further replies.

azammw

Technical User
Jun 21, 2000
2
US
I am working on a shopping cart with an Access database. The problem is that it adds the items to the cart, but for some reason the first item is not displayed on the contents page. The items thereafter, do show up. Please take a peek at <A HREF=" TARGET="_new"> and let me know. I would appreciate if any assistance or suggestions could be emailed to <A HREF="mailto:azammw@excite.com">azammw@excite.com</A>.<br><br>Thanks in Advance!
 
Dear azammw,<br><br>What a great problem! Ok, here is what I see.<br><br>First in file addprod.asp this error exists:<br>&lt;!--# include file=&quot;adovbs.inc&quot; --&gt;<br><br>should be &lt;!-- #include file=&quot;adovbs.inc&quot; --&gt;<br><br>how the rest of the page is even executing given that error is beyond me and since I don't do VBScript I don't even want to know.<br><br>Next: The first item I added to the cart was 'balloons'. They did not appear to recieve a quantity value when the new record was generated. Again in VBScript (Very Bad Script) you don't even see the error it just messes up your html code for you ( how nice).<br><br>Next: When I added a second item ( cups) to the cart then changed the 'quantity' edit box to '2' and clicked recalculate things really broke. It appears another item of no name was added to the database also without a quantity.<br><br>Good design starts at the bottom. That would be your database design. Your quantity column should have a default value of '1' since zero makes no sense.<br><br>Without seeing the server code I can not analyze further.<br><br>&quot;But, that's just my opinion... I could be wrong&quot;.<br>-pete
 
Sure, but how do I put my source code on a page up on the server without it actually thinking it is an asp page.
 
Dear, azammw,<br><br>Well I really meant for you to just post snippets of code that you feel are relavant to the problem at hand right here in the forum, like this:<br><br>&lt;%<br> // edit modes<br> // 0 = not saving anything<br> // 1 = saving new content Area ¦ txNewContentArea,txDescription<br> // 2 = saving changes to content area ¦ txDate,txContent<br> nEditMode = Math.abs(Request(&quot;editMode&quot;));<br> if ( isNaN( nEditMode)) nEditMode = 0;<br> <br> switch( nEditMode){<br> case 1: // add new content area<br> Response.Write(&quot;NewContentArea: &quot; + Request(&quot;txNewContentArea&quot;) + &quot;&lt;br&gt;&quot;);<br> break;<br> }<br> <br>%&gt;<br>&lt;iframe id=&quot;ifNewContentArea&quot; src=&quot;frmNewContentArea.htm&quot;<br> noresize=resize width=500 height=350<br> style=&quot;display:none;position:absolute;left:100;top:55;&quot; &gt;<br>&lt;/iframe&gt;<br>&lt;iframe id=&quot;ifEditContentArea&quot; src=&quot;frmEditContent.htm&quot;<br> noresize=resize width=600 height=520 border=5&gt;&lt;/IFRAME&gt;<br> &lt;!--<br> style=&quot;display:none;position:absolute;left:100;top:55;&quot; &gt; <br>&lt;/iframe&gt; --&gt;<br>&lt;FORM action=&quot;&quot; method=POST id=form1 name=form1&gt;<br>&lt;INPUT type=&quot;hidden&quot; id=mainCurIFName name=mainCurIFName value=&quot;&quot;&gt;<br>&lt;INPUT type=&quot;hidden&quot; id=ifShowing name=ifShowing value=&quot;0&quot;&gt;<br><br>But since you asked, you could zip all the files up and let people download them from your site by makeing a link to the file using the 'file' protocol<br><br>Or<br><br>put all the files into a folder with browsing permission and rename each file with a .txt extension and point people to the folder.<br><br>There are a few more including puting them into word documents etc., but this should get you going.<br><br>Hope this helps<br>-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top