SourceTec Software

It is currently Wed Apr 23, 2014 10:57 pm

All times are UTC + 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Apr 02, 2008 3:16 pm 
Offline
Member

Joined: Fri Mar 28, 2008 4:40 pm
Posts: 8
Dear Sir/Madam,

How can i add in Text Box and Add to cart button into the web scroller. Something like Amazon style but i want it to be display at the page itself. My code as below if using pure asp:-

eg(scrolling information as below):

Before:
[Image]
[ProductCode]

sts_ai("i0",[0,"<%=sName%>","<%=sLink%>","_self","<%=sImage%>",80,158,"center"],["transparent","7pt Verdana,Arial","#000000","none","7pt Verdana,Arial","#000000","none"]);


After:
[Image]
[ProductCode]
[Qty Text Box]
[Add To Cart Button]



Code:
                txtImage=trim(openRS("SmallImage"))
   pID = trim(openRS("ProductID"))
                  Productcode=trim(openRS("ProductCode"))
                  ProductDesc=ucase(trim(openRS("Name")))
                  DP=trim(formatnumber(openRS("DealerPrice"),2))
                  RP=trim(formatnumber(openRS("RetailPrice"),2))
   PV = trim(formatnumber(openRS("PointValue"),2))
   if txtImage="" then txtImage="/ge/cms/images/noproduct.gif"
                  response.write "<td class=""tdbottom""><img src="&txtImage&" border=""0""></td>"
                  response.write "<td class=""tdbottom"" valign=""top""><table valign=""top""><tr><td><b><font color=""green"">"&Productcode&"</font></b></td></tr><tr><td><font color=""gray"">"&ProductDesc&"</font></td></tr><tr><td>"&openrs("details")&"</td></tr><tr><td><font color=""red"">"& usualP &" : "& curCode &" <strike>"& formatnumber(DP,2) &" </strike></font></td></tr><tr><td>"& MemberP &" : "& curCode &" "& formatnumber(RP,2) &"</td></tr>"
                  %>
                  <tr><td><input class="textbox" type="text" name="txtProdQty<%=pID%>" id="txtProdQty<%=pID%>" value="1" size="2" maxlength="3" onChange="checkInt('txtProdQty<%=pID%>');"> <img src="/ge/cms/images/carts.jpg" name="Buy" onClick="javascript:insertToCart('<%=Session("MemberCode")%>','<%=Productcode%>','<%=Session("cmsCountry")%>','add','<%=piD%>','<%=ProdPriceType%>')" border="0" alt="Add to Cart"></td></tr>
[/code]

Thank you.
Appreciate for yours kindly reply.

Regards,
Michelle


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 02, 2008 3:55 pm 
Offline
Support Team
Support Team
User avatar

Joined: Thu Aug 01, 2002 5:59 pm
Posts: 1808
Try this:

Code:
<%
......
sName=rs("productname")
s=s+"<br><input type=text id='xtProdQty"+rs("productid")+"><img src='' onclick='insertToCart(...)'>"
%>
sts_ai("i0",[0,"<%=s%>","<%=sLink%>","_self","<%=sImage%>",80,158,"center"],["transparent","7pt Verdana,Arial","#000000","none","7pt Verdana,Arial","#000000","none"]);


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group