Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 General help me questions
 Buttons on Page
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sharon
VP-CART Super User

357 Posts

Posted - March 15 2005 :  05:45:07  Show Profile  Visit Sharon's Homepage  Reply with Quote
When the pages shopaddtocart.asp & shopcreateorder.asp display the buttons for Continue Shopping, Recalculate & Checkout are all justified to the left instead of centred. I cannot find where this is controlled from. Probably very simple, please help.

I mostly use Firefox as a browser. This problem does not occur in IE but it does in Firefox, NetScape & also Opera. Strange as it is only these buttons that are ever affected.



Edited by - sharon on March 17 2005 03:57:32

bme
Starting Member

35 Posts

Posted - March 20 2005 :  12:52:06  Show Profile  Reply with Quote
Do you have dreamweaver, frontpage, or some other html editor? If you do , I can tell you what lines to change.

Go to Top of Page

Sharon
VP-CART Super User

357 Posts

Posted - March 21 2005 :  05:27:35  Show Profile  Visit Sharon's Homepage  Reply with Quote
quote:

Do you have dreamweaver, frontpage, or some other html editor? If you do , I can tell you what lines to change.





Yes, I use Dreamweaver, thanks.

Go to Top of Page

bme
Starting Member

35 Posts

Posted - March 21 2005 :  14:05:50  Show Profile  Reply with Quote
Ok....I don't remember what the code looked like at first, so I need you to copy and paste:

Sub FormatFormFields (Its around line 213 in shopaddtocart.asp)
to the end of the sub (labeled "End Sub" around line 250 in shopaddtocart.asp)

Make sure you get it all and I can fix it pretty easy.

If you are able, you can apply what I did, however, there is some extra code in there you may or may not need.

Sub FormatFormFields
%>

<%=CartHeaderFont%><%=getlang("langCart01")%> <%=scartitem%><%=CartHeaderEnd%>
<form action="shopaddtocart.asp" method="post">
<%
dim allowdelete
allowdelete="TRUE"
CartFormat allowdelete
response.write "<center>"
response.write "<p> </p>"
response.write "<p> </p>"
If Getconfig("xbuttoncontinueshopping")="" Then
%> <input name="continue" type="submit" value="<%=getlang("langCart03")%>" /> <%
else
%><input type="image" name="continue" alt="Continue Shopping" src="<%=getconfig("xbuttoncontinueshopping")%>" /> <%
end if
If Getconfig("xbuttonrecalculate")="" Then
%> <input name="recalculate" type="submit" value="<%=getlang("langCart04")%>" /> <%
else
%><input type="image" name="recalculate" alt="Update" src="<%=getconfig("xbuttonrecalculate")%>" /> <%
end if
If Getconfig("xbuttoncheckout")="" Then
%> <input name="checkout" type="submit" value="<%=getlang("langCart05")%>" /> <%
else
%><input type="image" name="checkout" alt="Checkout" src="<%=getconfig("xbuttoncheckout")%>" /> <%
end if
Addwebsessform
response.write "</center>"
response.write "</form>"

%>
<%=CartInfoFont%><%=CartComment%><%=CartInfoFontEnd%>
<%
if getconfig("xAllowSaveCart")="Yes" Then
Response.write "<br>" & "<a href='shopsavecart.asp'>" & getlang("langSaveCart") & "</a>" & "<br>"
End if
if getconfig("xWishlist")="Yes" Then
Response.write "<br>" & "<a href='shopsaveperm.asp'>" & getlang("langwishlist") & "</a>" & "<br>"
End if

End Sub


You can probably do something similar with the other page if you know html code.

Bill


Go to Top of Page

Sharon
VP-CART Super User

357 Posts

Posted - March 23 2005 :  02:00:24  Show Profile  Visit Sharon's Homepage  Reply with Quote
Hi Bill, to follow is copied from my shopaddtocart.asp lines 213 to 272 incl.

Sub FormatFormFields
%>
<div align="center"><%=CartHeaderFont%><%=getlang("langCart01")%> <%=scartitem%><%=CartHeaderEnd%>
</div>
<P align="center">
<FORM action="shopaddtocart.asp" method="POST">
<div align="center">
<%
dim allowdelete
allowdelete="TRUE"
CartFormat allowdelete
response.write "<br>"
If Getconfig("xbuttoncontinueshopping")="" Then
%>
<INPUT name="continue" type=submit value="<%=getlang("langCart03")%>">
 
<%
else
%>
<INPUT name="continue" border='0' type=image src="<%=getconfig("xbuttoncontinueshopping")%>">
 
<%
end if
If Getconfig("xbuttonrecalculate")="" Then
%>
<INPUT name="recalculate" type=submit value="<%=getlang("langCart04")%>">
 
<%
else
%>
<INPUT name="recalculate" border='0' type=image src="<%=getconfig("xbuttonrecalculate")%>">
 
<%
end if
If Getconfig("xbuttoncheckout")="" Then
%>
<INPUT name="checkout" type=submit value="<%=getlang("langCart05")%>">
 
<%
else
%>
<INPUT name="checkout" type=image border='0' src="<%=getconfig("xbuttoncheckout")%>">
 
<%
end if
Addwebsessform
response.write "</P></FORM>"
response.write "<center>"
%>
<%=CartInfoFont%><%=getlang("langCart02")%><%=CartInfoFontEnd%>
<%
if getconfig("xAllowSaveCart")="Yes" Then
Response.write "<br>" & "<a href='shopsavecart.asp'>" & getlang("langSaveCart") & "</a>" & "<br>"
End if
if getconfig("xWishlist")="Yes" Then
Response.write "<br>" & "<a href='shopsaveperm.asp'>" & getlang("langwishlist") & "</a>" & "<br>"
End if


End Sub


I appreciate your help.

Sharon

Go to Top of Page

bme
Starting Member

35 Posts

Posted - March 23 2005 :  08:03:31  Show Profile  Reply with Quote
 
Sub FormatFormFields
%>
<div align="center"><%=CartHeaderFont%><%=getlang("langCart01")%> <%=scartitem%><%=CartHeaderEnd%>
</div>
<form action="shopaddtocart.asp" method="post">
<%
dim allowdelete
allowdelete="TRUE"
CartFormat allowdelete
response.write "<center>"
response.write "<br />"
response.write "<br />"

If Getconfig("xbuttoncontinueshopping")="" Then
%> <input name="continue" type=submit value="<%=getlang("langCart03")%>"> <%
else
%> <input name="continue" border="0" type="image" src="<%=getconfig("xbuttoncontinueshopping")%>"> <%
end if

If Getconfig("xbuttonrecalculate")="" Then
%> <input name="recalculate" type="submit" value="<%=getlang("langCart04")%>"> <%
else
%> <input name="recalculate" border="0" type="image" src="<%=getconfig("xbuttonrecalculate")%>"> <%
end if

If Getconfig("xbuttoncheckout")="" Then
%> <input name="checkout" type="submit" value="<%=getlang("langCart05")%>"> <%
else
%> <input name="checkout" type="image" border="0" src="<%=getconfig("xbuttoncheckout")%>"> <%
end if

Addwebsessform
response.write "</center>"
response.write "</form>"
response.write "<center>"
%>
<%=CartInfoFont%><%=getlang("langCart02")%><%=CartInfoFontEnd%>
<%
if getconfig("xAllowSaveCart")="Yes" Then
Response.write "<br>" & "<a href='shopsavecart.asp'>" & getlang("langSaveCart") & "</a>" & "<br>"
End if
if getconfig("xWishlist")="Yes" Then
Response.write "<br>" & "<a href='shopsaveperm.asp'>" & getlang("langwishlist") & "</a>" & "<br>"
End if
response.write "</center>

End Sub


This should work, depending on how some of your fonts are set. Let me know if there are any quirks.

Bill

Go to Top of Page

bme
Starting Member

35 Posts

Posted - March 23 2005 :  08:06:41  Show Profile  Reply with Quote
you will need to add a "nbsp;" at the end of the input tags between the > <%

Don't put in the quotes

Go to Top of Page

Sharon
VP-CART Super User

357 Posts

Posted - March 29 2005 :  04:19:11  Show Profile  Visit Sharon's Homepage  Reply with Quote
Hi Bill, Worked a treat. Shopcreateorder.asp still shows buttons justified left but from what you've given me I 'should' be able to work it out. I'll let you know, thanks.

Shopcreateorder.asp edited OK based on previous example, thanks for your help.


Edited by - sharon on March 29 2005 07:21:32
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00