Page 1 of 2

[vQmod] Purchase Verification for Reviews

Posted: Wed Nov 30, 2011 11:49 pm
by fido-x
This vQmod will restrict the writing of reviews to logged in customers who have actually bought the product. If the customer is not logged in, or they have not purchased the product, they will be prevented from writing a review.

Re: [vQmod] Purchase Verification for Reviews

Posted: Thu Dec 01, 2011 11:22 am
by marcelwoo
fido-x, awesome little mod ;) . However, have you consider adding prompts for those who do not log in and who haven't purchase the product? Like, if not logged in, display in the original writing review area "Please log in to write a reivew";
if they have not purchased the item, when they submit a review, stop submission and give an attention bar saying "You cannot submit a review for an unpurchased product!".

Thanks.

Re: [vQmod] Purchase Verification for Reviews

Posted: Tue Dec 13, 2011 6:59 am
by spirit
Great mod!
I have only one doubt: if any non logged customer try to put a review, the system will show them an alert message or not? ...."You need to be logged before post"

Thanks!

Re: [vQmod] Purchase Verification for Reviews

Posted: Thu Dec 15, 2011 5:11 am
by Klimskady
This is an excellent vQmod, thanks Fido, I do agree with the comments that some sort of notification would make this even better and be useful for a lot of people.

Re: [vQmod] Purchase Verification for Reviews

Posted: Fri Dec 16, 2011 9:39 pm
by jimaras
Great mod.
Thanks!

Re: [vQmod] Purchase Verification for Reviews

Posted: Thu Jan 05, 2012 10:38 am
by Klimskady
Does the theme used matter in using this vQmod as I am having so many problems getting extensions as well as vQmod's to install properly with the Shoppica Theme.

This is another one that seems to not be working as I just did a review for a product after installing this and it went through to be approved on the admin as normal rather than not allowing it as the product had not been purchased? I am using the latest version of both OC and vQmod so it can't be that causing so many problems..

Re: [vQmod] Purchase Verification for Reviews

Posted: Thu Jan 05, 2012 1:27 pm
by fido-x
Klimskady wrote:Does the theme used matter in using this vQmod
It would appear that it does, although it shouldn't.
... as I am having so many problems getting extensions as well as vQmod's to install properly with the Shoppica Theme.
Template designers should only be providing replacement .tpl files in their templates only if there have been changes in the .tpl file itself.

Re: [vQmod] Purchase Verification for Reviews

Posted: Sun Jan 08, 2012 11:57 am
by Klimskady
I know that the shoppica theme has a lot of custom work involved but what I find difficult is some extensions and vQmods work perfectly fine and others need recoding as it were, even files I have downloaded from you, some will work brilliantly and others fail.... It is so very frustrating as you are one of a small number of people who offer such brilliant additions to help that when you get to find the very thing you need it just doesn't work is quite disheartening..

I do try to change the default to shoppica when the first problems arise but that doesn't tend to do much, and as much as I know a hell of a lot more than I did when I started, I am no coder which makes things all the more difficult.

Re: [vQmod] Purchase Verification for Reviews

Posted: Fri Feb 03, 2012 4:31 pm
by henkster
Getting this mod to work with Shoppica is an easy change to the section starting at line 41 of the xml file:

replace this:

Code: Select all

	<file name="catalog/view/theme/default/template/product/product.tpl">
		<operation>
			<search position="after" index="1"><![CDATA[
			<div id="review"></div>
			]]></search>
			<add><![CDATA[
			<?php if ($purchase_verified) { ?>
			]]></add>
		</operation>
		<operation>
			<search position="after" index="1" offset="1"><![CDATA[
			<div class="right"><a id="button-review" class="button"><span><?php echo $button_continue; ?></span></a></div>
			]]></search>
			<add><![CDATA[
			<?php } ?>
			]]></add>
		</operation>
	</file>
with this:

Code: Select all

	<file name="catalog/view/theme/shoppica/template/product/product.tpl">
		<operation>
			<search position="after" index="1"><![CDATA[
			<div id="review" class="s_listing"></div>
			]]></search>
			<add><![CDATA[
			<?php if ($purchase_verified) { ?>
			]]></add>
		</operation>
		<operation>
			<search position="after" index="1" offset="3"><![CDATA[
			<a onclick="review();" class="s_button_1 s_main_color_bgr"><span class="s_text"><?php echo $button_continue; ?></span></a>
			]]></search>
			<add><![CDATA[
			<?php } ?>
			]]></add>
		</operation>
	</file>

Re: [vQmod] Purchase Verification for Reviews

Posted: Mon Mar 12, 2012 4:38 pm
by MissLiss
Hello,

I can't seem to get this to work?
I am using 1.5.2.1, standard theme with minor edits.
I have uploaded purchase_verification.xml to the vqmod/xml folder
I have looking in the vqgen enable/disable to check that it exists and is enabled and there are no errors.
Is there somehting else I am supposed to do?

Guests can make comments, the note comes up "Thank you for your review. It has been submitted for approval." and it is shown in the admin reviews section waiting for me to approve.

Thanks M

Re: [vQmod] Purchase Verification for Reviews

Posted: Fri Apr 13, 2012 9:18 pm
by sopedro
henkster wrote:Getting this mod to work with Shoppica is an easy change to the section starting at line 41 of the xml file:

replace this:

Code: Select all

	<file name="catalog/view/theme/default/template/product/product.tpl">
		<operation>
			<search position="after" index="1"><![CDATA[
			<div id="review"></div>
			]]></search>
			<add><![CDATA[
			<?php if ($purchase_verified) { ?>
			]]></add>
		</operation>
		<operation>
			<search position="after" index="1" offset="1"><![CDATA[
			<div class="right"><a id="button-review" class="button"><span><?php echo $button_continue; ?></span></a></div>
			]]></search>
			<add><![CDATA[
			<?php } ?>
			]]></add>
		</operation>
	</file>
with this:

Code: Select all

	<file name="catalog/view/theme/shoppica/template/product/product.tpl">
		<operation>
			<search position="after" index="1"><![CDATA[
			<div id="review" class="s_listing"></div>
			]]></search>
			<add><![CDATA[
			<?php if ($purchase_verified) { ?>
			]]></add>
		</operation>
		<operation>
			<search position="after" index="1" offset="3"><![CDATA[
			<a onclick="review();" class="s_button_1 s_main_color_bgr"><span class="s_text"><?php echo $button_continue; ?></span></a>
			]]></search>
			<add><![CDATA[
			<?php } ?>
			]]></add>
		</operation>
	</file>
to work with shoppica, you have to change the offset value from 3 to 1 .
copy/paste the correct version as follow:

Code: Select all

	<file name="catalog/view/theme/shoppica/template/product/product.tpl">
		<operation>
			<search position="after" index="1"><![CDATA[
			<div id="review" class="s_listing"></div>
			]]></search>
			<add><![CDATA[
			<?php if ($purchase_verified) { ?>
			]]></add>
		</operation>
		<operation>
			<search position="after" index="1" offset="1"><![CDATA[
			<a onclick="review();" class="s_button_1 s_main_color_bgr"><span class="s_text"><?php echo $button_continue; ?></span></a>
			]]></search>
			<add><![CDATA[
			<?php } ?>
			]]></add>
		</operation>
	</file>
This is a great MOD, thanks fido-x

Re: [vQmod] Purchase Verification for Reviews

Posted: Fri Apr 13, 2012 11:15 pm
by sopedro
Hi,

I changed de xml file of Fido-X.

Now the customer is informed that he must purchase the product before post a review.

Support English and Portuguese Languages.
Support default and shoppica templates.

hope this help...

Pedro

Re: [vQmod] Purchase Verification for Reviews

Posted: Mon Jun 18, 2012 3:05 am
by az@a2z-computing.com
hello everyone...

i've installed the latest version.. but still can enter the reviews without logging on..

Re: [vQmod] Purchase Verification for Reviews

Posted: Fri Jun 22, 2012 6:07 pm
by sunriser
Fido-X & Sonpedro,

Many thanks for the mod & adjustments, it works like a charm!
However, for my own needs I adjusted Sonpedro's version.

The vqmod now shows 2 different messages.
When the customer is not logged on: You must logged on before you can post a review!
When the customer is logged on, but didn't purchase the item: You must purchase this item before you can post a review!

(I did remove the shoppica and portugese language)

Tested successfully with OC 1.5.1.3!

Re: [vQmod] Purchase Verification for Reviews

Posted: Fri Jun 22, 2012 6:26 pm
by sunriser
marcelwoo wrote:fido-x, awesome little mod ;) . However, have you consider adding prompts for those who do not log in and who haven't purchase the product? Like, if not logged in, display in the original writing review area "Please log in to write a reivew";
if they have not purchased the item, when they submit a review, stop submission and give an attention bar saying "You cannot submit a review for an unpurchased product!".

Thanks.
See my previous post, not really a prompt as you say.. but there you go! :D

Re: [vQmod] Purchase Verification for Reviews

Posted: Wed Jul 11, 2012 2:54 pm
by d4zort
I am slow. Can someone tel me where to put this?

Thanks

Re: [vQmod] Purchase Verification for Reviews

Posted: Wed Jul 11, 2012 3:07 pm
by OSWorX
d4zort wrote:I am slow. Can someone tel me where to put this?

Thanks
In the folder:

Code: Select all

{root}/vqmod/xml

Re: [vQmod] Purchase Verification for Reviews

Posted: Thu Oct 11, 2012 7:42 pm
by DannyMacD
sunriser wrote:Fido-X & Sonpedro,

Many thanks for the mod & adjustments, it works like a charm!
However, for my own needs I adjusted Sonpedro's version.

The vqmod now shows 2 different messages.
When the customer is not logged on: You must logged on before you can post a review!
When the customer is logged on, but didn't purchase the item: You must purchase this item before you can post a review!

(I did remove the shoppica and portugese language)

Tested successfully with OC 1.5.1.3!

does ths work with 1.5.4?

Re: [vQmod] Purchase Verification for Reviews

Posted: Fri Nov 09, 2012 7:22 pm
by aaron1988
Hey i tested with 1.5.4.1 mate and seems to work

I had to edit the file so didnt say: Dutch as language :) change to english then worked mate so here it is:

Re: [vQmod] Purchase Verification for Reviews

Posted: Sat Dec 01, 2012 4:17 am
by Calcite
I'd love to get his working on my 1.5.4.1 OC but it throws an error


--------------------------------------------------------------------------------
REQUEST URI : /gadgets/RC/helicopters/silverlit_blue
MOD DETAILS:
modFile : /home/mysite/public_html/vqmod/xml/purchase_verification.xml
id : Purchase Verification for OpenCart 1.5.x
version : 1.0.0
vqmver : 2.1.5
author : Fido-X - modified by sopedro - remodified by sunriser
SEARCH NOT FOUND (ABORTING MOD): <div class="right"><a id="button-review" class="button"><span><?php echo $button_continue; ?></span></a></div>


UPDATE - I'm so excited that I have actually solved this :crazy:

I just removed <span> as it is not in my product.php at that point.

Works fine. I changed the non logged in message to read
"You must purchase this item and log in before you can post a review"

I think it just makes it clearer to the user

Thanks a lot for this as I have been searching for ages for this, and I think it's pretty essential to cut down on junk reviews and time spent weeding them out