|
Display cart contents in shared border |
Post Reply |
Author | |
JasonJolliff
Groupie Joined: November/05/05 Location: United States Status: Offline Points: 49 |
Post Options
Thanks(0)
Posted: January/02/06 at 6:03pm |
I have used shared borders successfully since I purchased SalesCart years ago (until I redesigned recently and stopped using the shared borders). The shared border does not have to be saved as .asp (I don't think FrontPage even allows that).
|
|
Ricky11
Newbie Joined: May/02/04 Location: Hong Kong Status: Offline Points: 14 |
Post Options
Thanks(0)
|
unfortunatly not many people actually use salescart to that extent so thier is no relevant information on google, it should be on this forum,
i am thinkcing that it does work on the shared border but only when it is in view1.asp but outside of view1.asp page it does not work.. so their is something missing i would assume. |
|
Techno Geek
Admin Group Evil monkey living in my closet! Joined: March/11/04 Location: United States Status: Offline Points: 1206 |
Post Options
Thanks(0)
|
To be honest, no. I have not tried designing a site that has shared broders with ASP codes. That's also where FP sort of comes in short handed. You may want to use Google and see if anyone else is having the same issues.
|
|
Techno Geek
Customer Support Engineer ComCity and SalesCart Technical Support |
|
Ricky11
Newbie Joined: May/02/04 Location: Hong Kong Status: Offline Points: 14 |
Post Options
Thanks(0)
|
any ideas...
|
|
Ricky11
Newbie Joined: May/02/04 Location: Hong Kong Status: Offline Points: 14 |
Post Options
Thanks(0)
|
yes all my pages are saved in asp of-course.. my main pages index.asp is a asp page, but it used a a shared border which is a htm page... it doesn't work still.. strange,
|
|
Techno Geek
Admin Group Evil monkey living in my closet! Joined: March/11/04 Location: United States Status: Offline Points: 1206 |
Post Options
Thanks(0)
|
That's correct but you need to save your pages in .ASP and not the shared borders. View1.asp is already doing what you're trying to do so the code that you have is basically is refined.
|
|
Techno Geek
Customer Support Engineer ComCity and SalesCart Technical Support |
|
Ricky11
Newbie Joined: May/02/04 Location: Hong Kong Status: Offline Points: 14 |
Post Options
Thanks(0)
|
I don't think shard borders can be saved as a asp, and then used as a shared border.. the top shared border is saved as a htm file, but the index.asp page uses top.htm shared border.
the result is a asp page.. This is the contents of top.htm it works when viewed in view1.asp (i.e. the top border does display the cart contents, but it does not work in any other asp page) i think i am missing something. <%@ LANGUAGE="VBScript.Encode" %> <!--#include file="../cgi-bin/codepage.asp"--> <!--#include file="../cgi-bin/ADOVBS.inc"--> <!--#include file="../cgi-bin/IASUtil.asp"--> <% order = Session("orderid") 'READ STUFF From Database Dim objSimpleAdo, rstRS, SQLStmt SQLStmt = "SELECT * From item " SQLStmt = SQLStmt & "WHERE [Orderid] =" & Order & "; " Set SimpleAdo = New CSimpleAdo SimpleAdo.setConnectionString = Session("ConnectionString") Set RS = SimpleAdo.getRecordSet(SQLStmt) 'Do stuff with the record set 'Initialize variables for this application thedate = Cstr(Date) &n bsp; 'get the date thetime = Cstr(Time) &n bsp; 'get the time subtotal = 0   ;   ;'the subtotal for a row of items subweight = 0   ;   ;'the subweight for a row of items subsize = 0   ;   ;'the subsize for a row of items subquantity = 0   ; 'the subquantity for a row of items CurrentRecord = 0 Do While CheckRS(RS) 'Calculate the individual totals for a row subweight = subweight + (RS("Quantity") * RS("Weight")) subsize = subsize + (RS("Quantity") * RS("Size")) subtotal = (RS("Quantity") * RS("Price")) subquantity = subquantity + RS("Quantity") total = FormatCurrency (CCur(subtotal)) grandtotal = grandtotal + subtotal RS.MoveNext Loop Set SimpleAdo = Nothing Set RS = Nothing %> |
|
Techno Geek
Admin Group Evil monkey living in my closet! Joined: March/11/04 Location: United States Status: Offline Points: 1206 |
Post Options
Thanks(0)
|
Is the shared border an ASP page? Are all of your pages saved in ASP?
Also, the include paths should be set to something like <!--#include file="/cg-bin/ADOVBS.inc"--> |
|
Techno Geek
Customer Support Engineer ComCity and SalesCart Technical Support |
|
Ricky11
Newbie Joined: May/02/04 Location: Hong Kong Status: Offline Points: 14 |
Post Options
Thanks(0)
|
How is this possible? I have added all the code before <head> from productpage.asp in to my shared border to display the cart contents.. then when i load up my index.asp page it does not display any contents, it only displays it when i go to view1.asp then it works..
how do i do it? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |