VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: fuzzfree on April 15, 2013, 09:56:38 AM

Title: [bug] Review not saved in db - specific case
Post by: fuzzfree on April 15, 2013, 09:56:38 AM
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) {