News:

Support the VirtueMart project and become a member

Main Menu

[bug] Review not saved in db - specific case

Started by fuzzfree, April 15, 2013, 09:56:38 AM

Previous topic - Next topic

fuzzfree

In the following scenario:

If reviews are set to shoppers who bought the product.
Customer has bought the product but not logged in.
Because of cookies, in purchased product view page the review form is shown.
Customer posts the review, the message says that the review has been saved... but it is not in db/backend....

The following settings are in Config/shopfront:
- Show review: show to eveybody
- Enable Review System for : Shoppers who bought the product
- Show Rating : To Everybody
- Enable Rating System for : registered

The correct way should be in view if user is logged in like this

$user = JFactory::getUser();
if ($this->allowReview AND $user->id) {
FuzzFree :: Managed PHP Applications, Cloud Hosting, Digital Marketing