Guest Posted January 26, 2009 Share Posted January 26, 2009 I'd like to have an automatic function where the customer only may review ordered products. Also, I'd like to replace last name in reviews with 'from (city)'. Any ideas would be welcomed, thanks! Ver. 2.2rc2a Quote Link to comment Share on other sites More sharing options...
wex Posted February 5, 2009 Share Posted February 5, 2009 Hmm difficult one ;) Guess you would do a database output which get the customers previously ordered products There you would have to join the tables customers, orders, order_products to get an output of alle the ordered products. and then in the products_info.php you would do a if ($products_model == $customer_ordered_products) { show review } else { echo 'Only people who bought the product can review it.'; } There you got the outline :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.