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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ultradev Shopping Cart 1.2 Problems

Status
Not open for further replies.

CC801340

IS-IT--Management
Joined
Jul 10, 2001
Messages
147
Location
GB
I have built a site using the UltraDev Shopping cart 1.2 from It is all functioning correctly except for the following:

1) My products page displays a large number of products from a database and so I need a repeat region to only display 15 records at a time. I have added the normal UltraDev Repeat Region and recordset navigation bar. However, if I click next, the first 15 records are still displayed each time.

2) I want to be able to email the cart using CDONTS. On my viewcart page I have two forms. One contains the cart and the "update" button, the other contains input boxes (Name, Shipping Address, etc, etc) for the customer to complete. I am fine with sending the data from the second form via CDONTS but how can I also send the contents of the first form (the cart) with this?

Many thanks in advance

Richard Stoneman
 
The second parts no problem, lets tackle one at a time though.

With Sever behaviors - you'll see the repeat region there, delete that from the server behaviors.

Back on your html table, very carefully highlight any cells you want repeated. Then re-do the repeat region. - I think it is actually in your navigation, but the above will not hurt at all. Delete the navigation and reset it up - be careful to select the same recordset name that displays the records you want repeated.

"Insert witty remark here"

Stuart
 
Thankyou very much!! Problem number one solved! I'd tried readding the repeat region behavior but not the recordset navigation tool...
 
ok, onto #2.

Do you only have CDONTS? or do you have JMAIL, or ASPMail or ASPEmail?

"Insert witty remark here"

Stuart
 
Funny you should ask....CDONTS isn't working at the moment and my hosts dont know why - I can also use JMail and ASPMail....
 
ahhh very cool, ok lets go with jmail then.

hang on i'll grab a previous post "Insert witty remark here"

Stuart
 
Ok, heres a script I use for JMAIL. It should give you a good idea - I put this on my register confimation page - up above the head tags.

<%
Dim strRecipient
Dim strCallsign
Dim strPassword
Dim strSquad
Dim strYahoo
Dim strICQ

strRecipient = Recordset1.Fields.Item(&quot;Email&quot;).Value
strCallsign = Recordset1.Fields.Item(&quot;callsign&quot;).Value
strPassword = Recordset1.Fields.Item(&quot;password&quot;).Value
strSquad = Recordset1.Fields.Item(&quot;squad&quot;).Value
strYahoo = Recordset1.Fields.Item(&quot;yahoo&quot;).Value
strICQ = Recordset1.Fields.Item(&quot;ICQ&quot;).Value
%>
<%
Set JMail = Server.CreateObject(&quot;JMail.SMTPMail&quot;)

JMail.ServerAddress = &quot;smtp.mydomain.com&quot;
JMail.ContentType = &quot;text/html&quot;
JMail.Sender = &quot;Webmaster@mydomain.com&quot;
JMail.Subject = &quot;Tour De GVFForce Registration&quot;
JMail.AddRecipient strRecipient
JMail.AddRecipient &quot;webmaster@mydomain.com&quot;
JMail.Body = &quot;<font face='arial' size ='3'>&quot; &_
&quot;IP Address - &quot; & Request.Servervariables(&quot;REMOTE_ADDR&quot;) &_
&quot;<BR>&quot; &_
&quot;Hello!&quot; & strCallsign &_
&quot;<br>&quot; &_
&quot;Email confirmation from Tour De GVFForce&quot; &_
&quot;<br>&quot; &_
&quot;Here are your registration details:&quot; &_
&quot;<br>&quot; &_
&quot;Callsign:&quot; & strCallsign &_
&quot;<br>&quot; &_
&quot;Password:&quot; & strPassword &_
&quot;<br>&quot; &_
&quot;Squad:&quot; & strSquad &_
&quot;<br>&quot; &_
&quot;Yahoo:&quot; & strYahoo &_
&quot;<br>&quot; &_
&quot;ICQ:&quot; & strICQ &_
&quot;<p>&quot; &_
&quot;Go to <a href=' De' GVFForce</a> to log in and get started...&quot; &_
&quot;<p>&quot; &_
&quot;We highly recommend changing your password through the edit my account link. At least to a password you will remember&quot; &_
&quot;<P>&quot; &_
&quot;<BR>&quot; &_
&quot;Please note - you will need to register in the messageboard area to post&quot; &_
&quot;<BR>&quot; &_
&quot;<BR>&quot; &_
&quot;Cheers,&quot; &_
&quot;<br>&quot; &_
&quot;CS & MODs of Tour De GVFForce!&quot; &_
&quot;<br>&quot; &_
&quot;</font>&quot;
JMail.AddHeader &quot;Originating-IP&quot;, Request.ServerVariables(&quot;REMOTE_ADDR&quot;)
JMail.Priority = 1
JMail.Execute
Set Jmail = nothing
%> &quot;Insert witty remark here&quot;

Stuart
 
Thanks for that...the only thing is that Im not sure how to include the contents of the cart in this? The shopping cart page is like this:

<form>
shopping cart displayed in a table
</form>

<form>
order form for customer to complete
</form>

The contents of the cart are not part of a recordset (are they?) so i can't just declare a variable and then use variable=recordset.fields.item(&quot;xxx&quot;).value

There is some information at but I'm not sure how to utilise the code?!

Many thanks for all your help
 
You can change recordset.blah blah to request.form(&quot;field&quot;) &quot;Insert witty remark here&quot;

Stuart
 
But there are two forms on the page and the shopping cart is in the other form. I can do request.form(&quot;name&quot;) no problem for the input boxes the user has completed to give their shipping details - but what about getting JMail to actually read the contents of the other form (the shopping cart) and send that? Hope this makes sense...I will try and get a copy of the page online within the hour - might make more sense if you can see it!
 
Actually come to think of it, I wonder why it has 2 forms.

If I can see the page it would be easier for sure.

&quot;Insert witty remark here&quot;

Stuart
 
email me the viewcart2.asp

to schase@elpasohonda.com &quot;Insert witty remark here&quot;

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top