Gossamer Forum
Home : Products : DBMan : Customization :

Shopping cart mod?

(Page 3 of 3)
> >
Quote Reply
Re: Can't Implement Order Mod In reply to
thanks o grain,

i got the mod working, i think, but there, are a few problems, mainly with sendmail. i written down all my scripting woes somewhere else under
dbman customisation:
can't install jpdeni's ordernary mod

by the way, sorry for that, it's your mod isn't it? it's pretty cool, how long did it take you to write up, cause to me it's all rocket science.

cheers,
christopher dang

Quote Reply
Re: Can't Implement Order Mod In reply to
Hi Christopher,

Good idea to switch to a new thread.

In Reply To:
by the way, sorry for that, it's your mod isn't it? it's pretty cool, how long did it take you to write up,
No problem. I have just added it to the Resorce Center so it is easier to find, now that I have noticed an interest for it. Well, it took the spare nights of a week to finish 90 % of it and probably the same for the fine tuning Wink (beeing no real Perl progammer).



Quote Reply
Re: Shopping cart mod? In reply to
Hi I only need the customer to pick one item from the search and then proceed to a form to enter their details they would be assigned an automatic comformation number which and then submit the order. I have the products db & the customer db but now im stuck (have tried to use the ORDERnary mod but cant get that to work)

Quote Reply
Problems with Implementing Shopping Cart In reply to
Hello
I have just attempted to implement the shopping cart mod. Each time I enter my email address and click on "prepare your order", I get these line of codes, instead of the shopping cart. Please can anyone help.

<CENTER>
<form action="http://www.marvelloustime.co.uk/cgi-marvelloustime/dbman/db.cgi" method="GET" name="form1">
<input type=hidden name="db" value="db">
<input type=hidden name="uid" value="">
<input type=hidden name="" value="">


<input type=hidden name="order_mail" value="ademola@adebayo.co.uk">
<input type=hidden name="add_item" value=" - - GBP ">

<font face=Verdana, Arial, Helvetica size=2><B>Number of items: </B>
<SELECT SIZE=1 NAME="no_of_items">
<OPTION value=" 1">1
<OPTION value=" 2">2
<OPTION value=" 3">3
<OPTION value=" 4">4
<OPTION value=" 5">5
<OPTION value=" 6">6
<OPTION value=" 7">7
<OPTION value=" 8">8
<OPTION value=" 9">9
<OPTION value="10">10
</SELECT>

</FONT>
<input type="submit" name="add_order" value="Add Parties">

<P>
<HR>
<P>

<input type="submit" name="check_order" value="Show Order">
<input type="submit" name="send_order" value="Send Order">

<input type="submit" name="cancel_order" value="Cancel Order">
</FORM>
</CENTER>
Content-type: text/html


<html><head><title> </title>

<SCRIPT LANGUAGE="JavaScript">

</SCRIPT>
</head>
<body bgcolor="##33FFFF">
<center>
<table border=1 bgcolor="#FFFFFF" cellpadding=5 cellspacing=3 width=500 align=center valign=center>
<tr><td colspan=2 bgcolor="navy">
<FONT FACE="MS Sans Serif, arial,helvetica" size=1 COLOR="#FFFFFF"><b>bizSuccess Company Listing Database: Login Screen</b></font></td></tr>
<tr><td><p><center><font face="verdana,arial,helvetica" size="4"><b>Login Screen</b></font></center>



<font face="verdana,arial,helvetica" size="2">Welcome to Company Listing Database. Please Log In<p>

<form action="http://www.marvelloustime.co.uk/cgi-marvelloustime/dbman/db.cgi" method="POST">
<input type=hidden name="db" value="db">
<input type=hidden name="uid" value="">

<table border=0>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>User ID:</b></FONT></td>
<td><input type="TEXT" name="userid"></td></tr>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>Password:</b></FONT></td>
<td><input type="PASSWORD" name="pw"></td></tr>
</table>
<p><center>
<INPUT TYPE="SUBMIT" name="login" VALUE="Logon"> 
<INPUT TYPE="SUBMIT" NAME="logoff" VALUE="Cancel">
</center></p></form>
You can sign up for an account online right <a href="http://www.marvelloustime.co.uk/cgi-marvelloustime/dbman/db.cgi?db=db&signup_form=1">here</a>.
<table border=0 width=100%>
<tr>
<td align=right>
<a href="http://www.bizsuccess.co.uk/cgi-bizSuccess/dbman/db.cgi">
<img src="http://www.bizsuccess.co.uk/bizSuccess4.gif"
border=0 width=100 height=31 alt="Database Provided by bizSuccess."></a>
</td></tr>
</table>

</TD></TR></TABLE><P></P></BODY></HTML>



Quote Reply
Re: Problems with Implementing Shopping Cart In reply to
It looks like you need to comment out this line:

Content-type: text/html

That is causing the display of the actual coding to appear on your page.

Since this thread is already very long, please ask further questions in a new thread and just reference this thread if the information here is needed.

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Problems with Implementing Shopping Cart In reply to
Hi adebaya,

It seems that your sub html_record_long doesn't end properly, maybe a missing curly bracket? So it continues with the next sub that starts with a &html_page_top.

Or it is something wrong in your sub html_create_order after the call to &html_record_long. After the if-statement there simlpy should be a call to sub html_footer, like:

Code:
else {
&create_order;

# some lines omitted here just t save space in the forum

if ($in{'create_order'} || $in{'email_address_OK'}) {
&html_record_long(&get_record($in{$db_key}));
}
elsif ($in{'add_order'}) {
&html_view_search;
}
}


&html_footer;
&html_page_bottom;
(been travelling againSmile)
(and LoisC is right about the length of the thread)

Quote Reply
Re: Shopping cart mod? In reply to
I just wanna aks if its very comlicated to leave the verify email screen out. and maybe you can use a unique number to identify the users instead of their email (they can enter the email when they really ordes...)



> >