This is a discussion on Adding e-mail function to review approval contribution within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I just added the "review approval" to my shop. It's for oscommerce but just had to change one extra string ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I just added the "review approval" to my shop. It's for oscommerce but just had to change one extra string to get it to work in osCMax. There's an extra addon to get an e-mail whenever a new review had been added. This is the howto on how to do this: Code:
Find the following line in product_reviews_write.php(at or near line 51):
tep_db_query("insert into " . TABLE_REVIEWS_DESCRIPTION . " (reviews_id, languages_id, reviews_text) values ('" . (int)$insert_id . "', '" . (int)$languages_id . "', '" . tep_db_input($review) . "')");
Insert this code:
//notify store owner of new review to approve => added by Brian Christensen on 03-16-06
$subject = 'Product Review';
$message = 'There is a new product review awaiting approval';
$from_name = 'Product Reviews';
$from_email = 'reviews@YOURDOMAIN.com'; //change YOURDOMAIN.com to your store's domain
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $subject, $message, $from_name, $from_email);
//end notify store owner
right before this line:
tep_redirect(tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('action'))));
PHP Code: |
|
#2
| ||||
| ||||
| Try looking at the correct file at the instructions suggest: Find the following line in product_reviews_write.php(at or near line 51): cause as you stated: But my product_reviews_write.tpl.php looks like this..... I found it no problem.
__________________ JPF - osCMax Fourm Moderator - To contact, post on the forum or click here Try out our osCMax at: Live Catalog Demo Limited access Admin: Live Admin Demo Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped! |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Review Approval System | michael_s | New osCommerce Contributions | 0 | 09-14-2008 11:12 PM |
| adding a contribution to bts, is it too complicated? | pefc2525 | osCMax v2 Customization/Mods | 2 | 03-25-2006 09:55 PM |
| Problems removing Review function | InfernoX | osCMax v2 Customization/Mods | 5 | 10-27-2005 01:56 PM |
| Adding another contribution | stetrk | osCMax v1.7 Discussion | 2 | 01-04-2005 07:23 PM |
| Contribution for adding multiple products | jacven | osCommerce 2.2 Modification Help | 3 | 10-22-2003 07:23 AM |