-
Zen Cart noob...any experts around to help?
Problem solved.... the issue was created when my service provider renamed my admin folder for security reasons!!! I've renamed the admin folder and all is good :-)
-
Zen Cart noob...any experts around to help?
I was drawn between OsCommerce and Zen Cart for a small personal ecommerce project and veered towards Zen for my first attempt. I can instal and add categories/products all day and even managed to set up Paypal payments ok but there's a small issue that's snowballing by the minute for me!! I want to have a product with several attributes eg. a T-shirt in small, medium and large. I'd like to present different stock levels to buyers so they don't buy a size I don't have, I don't think the basic Zencart can do this so would like to try the 'stock by attribute' add-on but having installation issues. I downloaded what I thought would be the latest version and unzipped the directory. The read me file says to rename 2 directories before uploading but the problem is only one exists! I've downloaded earlier versions and it's in there but no matter what version I try, I'm having no joy...anyone use 'stock by attribute' that could assist?
-
Receive deposits/full payments for hoiday rental via paypal?
The cheeky git had the gall to charge me £50 to 'cover utilities' while I was there but seems to go deaf when I mention the cost of designing/hosting/maintaining a website... He's got free hosting and domain name outta me, free CMS and i'm brushing up on SEO just to help it list better for him!!
-
Receive deposits/full payments for hoiday rental via paypal?
Hi folks, not been in for a while, busy doing other stuff but got a tap on the shoulder from my brother a couple of weeks back. He wants a website asap (don't they all??!!) to advertise his recently purchased holiday caravan for rent on the Isle of Wight. I'd just started playing with Joomla so thought this to be ideal for a first time Joomla project. I'm still a noob regards web design in any format so not expecting to win any awards with it and as my bro' wants the budget to be as cheap as possible (don't they all??!!) I've gone with a Siteground template and a non commercial extension to allow him to update the availablity as and when. I've told him he needs some method of receiving online payment, deposit and full balance. There is commercial software that would handle this and then some but he's not happy about paying for it. I think that leaves Paypal as next in line. i think a couple of buttons would suffice, a fixed amount deposit button and another to allow the payer to input their own figure to finalise payment, maybe a drop down list of prices? Never used paypal like this before so any pointers and recommendations would be most appreciated, thanks!! p.s. Just got back after a very pleasant week there so can recommend it!! ;-)
-
emailmeform.com issues..
Lol, i've literally just downloaded a form from there and going to give it a try! I'll need to make a few tweaks to dynamically populate a couple of fields but that's all part of the learning curve. Ultimately, I'd like to have the skills to code my own but that's a way off yet!
-
emailmeform.com issues..
I've signed up for a free email form with image verification from emailmeform.com and although initial trials were fine it falls apart after a few tweaks. I removed the neccessary code from the clumpy tables and put changed one ofthe fields to hidden and populated that from a recordset that filters from a jump menu above the form. Sometimes it works, sometimes it doesn't. I've tried Safari, IE6, IE8 and FF, all with hit and miss results. I thought it might be that I sometimes use www in the URL but that seems to make no difference. It's smething to do with me 'tidying' the code up but wondered if anyone else has tried emailmeform at all? Feel free to have a try... pitlanepass.com/pages/registration.php
-
Making a form dynamic?
Thanks for the info both of you, i've achieved what i'd like to in a roundabout kind of way (using two forms on one page!) but now run into another issue that's niggly. The person registering clicks their chosen organisation but it's not clear thye've done it. I've made a separate post regards this issue but I might take a different route out in the meantime... Thanks!! :-)
-
PHP/jump menu js issue?
I've had to take a step or two back to look at a jump menu issue and not sure where the problem is. I've created a jump menu list that is populated dynamically using DW. That works fine and when the option is selected it puts the dynamic info into the url for filtering later and that seems to work fine also. The issue is i've had a first attempt at php and it worked locally but get a 500 - Internal server error.There is a problem with the resource you are looking for, and it cannot be displayed. error. I'm sure it's down to my php attempt(s) but might be a js error? I've recreated the page without my php and it works fine, the only issue I have is when an option is selected, the jump menu redirects back to the page and puts ?orgname=organisationselected but reverts back to --select-- in the menu. I'd like the top opton to display the organisation selected so the registrant can see he selected the correct one. Here's it almost working: My linkhttp://www.pitlanepass.com/pages/register.php Here's my code that didn't work remotely... <form name="form" id="form"> <select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,1)"> <option value="register.php?orgname=<?php echo $row_rsJumporgregister['orgname']; ?>"> <?php if ($_GET['orgname']=$_GET['orgname']) { echo "<option>"$_GET['orgname']"</option>"; } else { echo "<option>-- select organisation--</option>"; } ?> <?php do { ?> <option value="register.php?orgname=<?php echo $row_rsOrgjumpumpregister['orgname']; ?>"><?php echo $row_rsOrgjumpumpregister['orgname']; ?></option> <?php } while ($row_rsOrgjumpumpregister = mysql_fetch_assoc($rsOrgjumpumpregister)); ?> </select> </form> Is it a simple mistake or am I way off in my methods?
-
Making a form dynamic?
I have a registration form here: www.pitlanepass.com/pages/register.php I'm in the very early stage of learning php so the form is created in dreamweaver and emailmeform.com so save that bullet for later!! I have populated several fields using a mysql database and they display and email in a format i'm happy with. for now. The small issue I have is when the organisation is selected and the next field (class) is displayed it lists all classes from the four organisations. Some are repeated and the list is uneccessarily long. For example, Southern Supermoto has only 3 classes but lists all 25! This method allows a registrant to possibly select a class that doesn't exist. I've had similar issues elsewhere ith rider profiles but used $_GET to pull variables from the url but I don't think thats how to achieve it here. Any pointers would be most welcome!! Here's the code snippet from the form... <label>Organisation</label> <select name="FieldData1"> <?php do { ?> <option value="<?php echo $row_rsRegisterorgselect['orgname']; ?>"><?php echo $row_rsRegisterorgselect['orgname']; ?></option> <?php } while ($row_rsRegisterorgselect = mysql_fetch_assoc($rsRegisterorgselect)); ?> </select> <br /> <label>Class</label> <select name="FieldData2"> <?php do { ?> <option value="<?php echo $row_rsClassregister['catname']; ?>"><?php echo $row_rsClassregister['catname']; ?></option> <?php } while ($row_rsClassregister = mysql_fetch_assoc($rsClassregister)); ?> </select>
-
Domain name offered for sale to me...
I bought derventio.net with an aim to create a site for my dad. I bought him a metal detector for his retirement and he eats, sleeps an breathes the hobby. I'm learning php/mysql etc and plan to have a dynamic site with photos and descriptions etc for all his finds. Problem is, he detests IT technology so would probably never look at it but might help gain more land to dig...
-
Domain name offered for sale to me...
I live in Derby and seeing as the Romans (what have they ever done for us eh??) named the city Derventio nearly 2000 years ago I purchased 'derventio.net' for a future personal project as the .co.uk and .com had already gone, as expected. I received a couple of emails from companies telling me derventio.com would expire soon and I could have first dibs on the name. One offer was 2500euro, the other was alot less but needless to say, still silly money. A couple of days after the .com had expired I had a look to check...it was available!! I have webspace and domain names thru heartinternet so managed to buy it for under a tenner...result!!
-
Filtering a recordset
Blimey, i thought I was up late last night! Here's the associated php for the orgdetail page..(remember i'm a noob trying different methods using DW!) <?php require_once('../Connections/connPitlane.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } mysql_select_db($database_connPitlane, $connPitlane); $query_rsOrgdetail = "SELECT organisation.orgID, organisation.orgname FROM organisation ORDER BY organisation.orgID ASC"; $rsOrgdetail = mysql_query($query_rsOrgdetail, $connPitlane) or die(mysql_error()); $row_rsOrgdetail = mysql_fetch_assoc($rsOrgdetail); $totalRows_rsOrgdetail = mysql_num_rows($rsOrgdetail); $maxRows_rsriderdetailall = 12; $pageNum_rsriderdetailall = 0; if (isset($_GET['pageNum_rsriderdetailall'])) { $pageNum_rsriderdetailall = $_GET['pageNum_rsriderdetailall']; } $startRow_rsriderdetailall = $pageNum_rsriderdetailall * $maxRows_rsriderdetailall; $varRiderdetailall_rsriderdetailall = "Not British Supermoto"; if (isset($_GET['orgname'])) { $varRiderdetailall_rsriderdetailall = $_GET['orgname']; } mysql_select_db($database_connPitlane, $connPitlane); $query_rsriderdetailall = sprintf("SELECT riders.riderID, riders.ridernumber, riders.riderfirst, riders.riderlast, riders.bikemodel, riders.riderorganisation, riders.riderorgID, riders.ridercat, riders.riderimage FROM riders WHERE riders.riderorganisation=%s ORDER BY riders.ridernumber ASC", GetSQLValueString($varRiderdetailall_rsriderdetailall, "text")); $query_limit_rsriderdetailall = sprintf("%s LIMIT %d, %d", $query_rsriderdetailall, $startRow_rsriderdetailall, $maxRows_rsriderdetailall); $rsriderdetailall = mysql_query($query_limit_rsriderdetailall, $connPitlane) or die(mysql_error()); $row_rsriderdetailall = mysql_fetch_assoc($rsriderdetailall); if (isset($_GET['totalRows_rsriderdetailall'])) { $totalRows_rsriderdetailall = $_GET['totalRows_rsriderdetailall']; } else { $all_rsriderdetailall = mysql_query($query_rsriderdetailall); $totalRows_rsriderdetailall = mysql_num_rows($all_rsriderdetailall); } $totalPages_rsriderdetailall = ceil($totalRows_rsriderdetailall/$maxRows_rsriderdetailall)-1; $varOrgtitle_rsOrgtitle = "British Supermoto"; if (isset($_GET['orgname'])) { $varOrgtitle_rsOrgtitle = $_GET['orgname']; } mysql_select_db($database_connPitlane, $connPitlane); $query_rsOrgtitle = sprintf("SELECT riders.riderorganisation FROM riders WHERE riders.riderorganisation=%s", GetSQLValueString($varOrgtitle_rsOrgtitle, "text")); $rsOrgtitle = mysql_query($query_rsOrgtitle, $connPitlane) or die(mysql_error()); $row_rsOrgtitle = mysql_fetch_assoc($rsOrgtitle); $totalRows_rsOrgtitle = mysql_num_rows($rsOrgtitle); $varRiderdetail_rsRiderdetail = "Not British Supermoto"; if (isset($_GET['orgname'])) { $varRiderdetail_rsRiderdetail = $_GET['orgname']; } $varRidercat_rsRiderdetail = "Not S1"; if (isset($_GET['ridercat'])) { $varRidercat_rsRiderdetail = $_GET['ridercat']; } mysql_select_db($database_connPitlane, $connPitlane); $query_rsRiderdetail = sprintf("SELECT riders.riderID, riders.ridernumber, riders.riderfirst, riders.riderlast, riders.bikemodel, riders.riderorganisation, riders.riderorgID, riders.ridercat, riders.riderimage FROM riders WHERE riders.riderorganisation=%s AND riders.ridercat=%s ORDER BY riders.ridernumber ASC", GetSQLValueString($varRiderdetail_rsRiderdetail, "text"),GetSQLValueString($varRidercat_rsRiderdetail, "text")); $rsRiderdetail = mysql_query($query_rsRiderdetail, $connPitlane) or die(mysql_error()); $row_rsRiderdetail = mysql_fetch_assoc($rsRiderdetail); $totalRows_rsRiderdetail = mysql_num_rows($rsRiderdetail); $varOrgnameclass_rsClassSelector = "British Supermoto"; if (isset($_GET['orgname'])) { $varOrgnameclass_rsClassSelector = $_GET['orgname']; } mysql_select_db($database_connPitlane, $connPitlane); $query_rsClassSelector = sprintf("SELECT categories.catID, categories.catorganisation, categories.catname FROM categories WHERE categories.catorganisation=%s", GetSQLValueString($varOrgnameclass_rsClassSelector, "text")); $rsClassSelector = mysql_query($query_rsClassSelector, $connPitlane) or die(mysql_error()); $row_rsClassSelector = mysql_fetch_assoc($rsClassSelector); $totalRows_rsClassSelector = mysql_num_rows($rsClassSelector); ?>
-
Filtering a recordset
Hi, I've got a personal project I'm working on using php, mysql and Dreamweaver CS4. I've had problems with DW duplicating recordsets rather than editing them but that seems to be behaving itself right now! Here's the site www.pitlanepass.com and don't worry too much about aesthetics and content! I have a menu that lists several motorcyle organisations. When an organisation is clicked it opens a new page 'orgdetail.php' that lists all riders within that organisation using '.../orgdetail.php?orgname=norasport'.That works fine and lists all riders as expected. Within that orgdetail.php page I'd like a sub-menu that lists all classes (ridercat) relevant to that organisation. No problem, I use 'orgdetail.php?orgname=norasport&ridercat=open' and that then filters the list to each entry within that class. The problem lies in what the page displays when there is no rider present in that class. I've tried a couple of ways using 2 recordsets, and dummy entries in the database but not made it display like it should. I'm sure I could have two pages and skip between the two (e.g. orgdetailall.php & orgdetail.php) but I think that would be sidestepping the flexibility of php. I'm sure the seasoned php programmers will say "learn php!!" and I hope to in time but any help regards achieving this with DW and perhaps a little code assistance would be much appreciated...thanks!!!
-
PHP Contact form error...
Hi, I'm trying an old tutorial from a magazine and had problems getting it to work. I've downloaded the source tutorial files and pasted them into my page (at the top before anything else). When I click submit it throws up this error: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\testsite\pages\contact.php on line 22 Heres the PHP.. <?php if(isset($_POST['Submit'])) { $name = $_POST['name']; $email = $_POST['email']; $comments = $_POST['comments']; $mailing = $_POST['mailing']; if($name == '' or $email == '' or $comments == '') { $err = true; $msg = 'Please complete your name, email address and comments to submit the form.'; } else { $mailmsg = 'The following email has been sent from the contact form:' . "\n\n"; $mailmsg.= 'Name: ' . $name . "\n"; $mailmsg.= 'Email: ' . $email . "\n"; $mailmsg.= 'Comments: ' . $comments . "\n"; if($mailing == 'true') { $mailmsg.= 'I would like to be added to the mailing list'; } if (eregi("\r",$email) || eregi("\n",$email)){ die ("spam!"); } else { if(mail('myvalid@email.com','Contact Form', $mailmsg, "From: noreply@example.com")) { header("Location: thankyou.html"); } } } } ?> I've tried uploading to my webspace but it won't even open the page, it just tried to open in DW!! I could imagine it being a typo if I'd have typed it out but this is a copy n paste from the original file! Thanks...Andre
-
Filtering results with php?
If I create a php page (rainbow.php) and a recordsetc from a mysql db (rsRainbow) to list for example, all the colours of the rainbow and it displays like this: Rainbow Colours Red Orange Yellow Green ......etc I'd like to have a clickable link, drop down menu or some way of selecting only one colour of the rainbow so it displays like this: Rainbow Colours Orange ...but the page is still 'rainbow.php' so i'm filtering the results within the current page. I've used $GET_ but it requires a default value, that method doesn't deliver the full list of colours when the page originally loads. I'm sure it should be simple but i'm all frazzled out!! TIA...Andre