Arcadiauk Posted March 1, 2005 Share Posted March 1, 2005 Just been browsing the internet and came across this website... http://www.disposablecamerashop.co.uk You will see at the bottom the box which has the words "If you don't buy tell us why:" above it. I was just wondering if there is a simple contribution out there that allows us oscommere people to get the same feedback without the person browsing having to enter an email address or to be logged in. I have looked at the current contributions for feedback forms but I can see anything that is as simple as this. Has this been done in oscommerce yet? Any pointers greatfully received. Derek Link to comment Share on other sites More sharing options...
Guest Posted March 6, 2005 Share Posted March 6, 2005 I'm 99.9% certain that this isn't an osCommerce shop. This contribution may give you a starting point Link to comment Share on other sites More sharing options...
Guest Posted March 6, 2005 Share Posted March 6, 2005 You are right Tim, that site uses Microsoft's Active Server Pages technology. Where osCommerce uses opensource PHP. Derek, it would be great if you can post you idea in the Features and Suggestions forum. Link to comment Share on other sites More sharing options...
GraphicsGuy Posted March 7, 2005 Share Posted March 7, 2005 I am not a php coder, but that looks like it would be very easy to implement as a form that posts to a table in the database. Then just have a report in admin that reads that table. Should be very easy to implement. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
Guest Posted March 7, 2005 Share Posted March 7, 2005 I am not a php coder, but that looks like it would be very easy to implement as a form that posts to a table in the database. Then just have a report in admin that reads that table. Should be very easy to implement. <{POST_SNAPBACK}> Agreed! I also think that the feature should be implemented into osCommerce's core features and not just a contribution. It is every bit as useful as "Tell A Friend" and "Product Notifications" etc. Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2005 Share Posted March 9, 2005 Why not just play arrond whith "tell a friend" so that it emails the store owner. And relable the box as Feedback. Would this be kind of what you are after. I have to say I dont like to play with the database too much if i can avoid it. Link to comment Share on other sites More sharing options...
GraphicsGuy Posted March 9, 2005 Share Posted March 9, 2005 Why not just play arrond whith "tell a friend" so that it emails the store owner. And relable the box as Feedback. Would this be kind of what you are after. I have to say I dont like to play with the database too much if i can avoid it. <{POST_SNAPBACK}> The only problem is that in this scenario we are dealing with a customer that is not planning to purchase. They very likely will be reluctant to give their email address (everybody is afraid of getting added to mailing lists). You could hardwire tell-a-friend to be from the store owner to the store owner. The beauty of using the database though is that you can pull a report from it, rather than getting an email for each one. Both the form and the report would be very simple PHP. Even with my limited experience with PHP coding, I might take a look at doing it this weekend. If it works and is solid/secure, (and no one else does it first) I will post it as a contribution. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2005 Share Posted March 9, 2005 Yeah I just mention that way cos the contribution would be already mostly made. Also i get put off a few contributions because they involve changes to the database. The customers email I agree with you about, but there should be an optional field for their email so that you can follow stuff up with them if they want you to. Off topic slightly but I had an idea for a contribution, which i dont see existing already. I would like to be able to log all the searches made through the search box on my site. Could provide some useful info about what products that I dont stock but would be popular with customers, or also common misspellings which I could then target as as keywords. I dont do PHP but did a little Pearl at UNI recently, so i might give it a go. I was just thinking of appending the date and search term to a text file which I dont think would be too hard. Mike Link to comment Share on other sites More sharing options...
boxtel Posted March 9, 2005 Share Posted March 9, 2005 Just been browsing the internet and came across this website... http://www.disposablecamerashop.co.uk You will see at the bottom the box which has the words "If you don't buy tell us why:" above it. I was just wondering if there is a simple contribution out there that allows us oscommere people to get the same feedback without the person browsing having to enter an email address or to be logged in. I have looked at the current contributions for feedback forms but I can see anything that is as simple as this. Has this been done in oscommerce yet? Any pointers greatfully received. Derek <{POST_SNAPBACK}> I am using this: box tell_us_why.php : <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('tell_us_why', tep_href_link(basename($PHP_SELF), '', 'NONSSL', false), 'POST'), 'align' => 'center', 'params' => 'style="background-color: #D8E8F5;"', 'text' => TEXT_NO_BUY_REASON . tep_draw_input_field('why', '', 'size="20"') . '<br>' . tep_image_submit('emailbutton.png', TEXT_TELL_US_WHY) . tep_hide_session_id()); new contentBox($info_box_contents); ?> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> in application_top.php : if (isset($HTTP_POST_VARS['why'])) { if ($HTTP_POST_VARS['why'] != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, 'CLC No Purchase Reason: ' . $HTTP_POST_VARS['why'], $HTTP_POST_VARS['why'], STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } } you have to put some defines in the language files. Treasurer MFC Link to comment Share on other sites More sharing options...
Arcadiauk Posted March 9, 2005 Author Share Posted March 9, 2005 I did realise that the website http://www.disposablecamerashop.co.uk wasn't an oscommerce store but I thought the idea was good. I did manage to get this sort of working without asking for the persons email address by creating the following files.... File 1 - justlooking.html <form method="post" action="sendmail.php"> <font SIZE="2"> If you don't buy tell us why:</font>:<br /> <input type="text" name="message" size="15" value="eg Just Looking"> <input type="Submit" value="Send" name="value" /> </form> File 2 - sendmail.php <?php $message = $_REQUEST['message'] ; mail( "[email protected]", "Feedback Form Results", $message, "From: Non buyer" ); header( "Location: http://www.YOURWEBSITE.com" ); ?> You might have to add the "sendmail.php" file to the filenames.php file too, i can't remember. If you create the 2 files and put your website & email address in the "SENDMAIL.PHP" file and place them in the root of your catalog you can see how this works. You can run the html file by typing www.yourwebsite.com/justlooking.html I have tried to insert the HTML file into a box under categories but I had to give up due to other projects getting in the way. If anyone can get this working and post the results back in here that would be great. Derek Link to comment Share on other sites More sharing options...
Arcadiauk Posted March 9, 2005 Author Share Posted March 9, 2005 I am using this: box tell_us_why.php : <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('tell_us_why', tep_href_link(basename($PHP_SELF), '', 'NONSSL', false), 'POST'), 'align' => 'center', 'params' => 'style="background-color: #D8E8F5;"', 'text' => TEXT_NO_BUY_REASON . tep_draw_input_field('why', '', 'size="20"') . '<br>' . tep_image_submit('emailbutton.png', TEXT_TELL_US_WHY) . tep_hide_session_id()); new contentBox($info_box_contents); ?> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> in application_top.php : if (isset($HTTP_POST_VARS['why'])) { if ($HTTP_POST_VARS['why'] != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, 'CLC No Purchase Reason: ' . $HTTP_POST_VARS['why'], $HTTP_POST_VARS['why'], STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } } you have to put some defines in the language files. <{POST_SNAPBACK}> Just seen that you have implimented this into your site, I will see if I can get this working within our store too. Thankyou for posting Derek Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.