Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reviews


Guest

Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...