Post by fido-x » Wed Nov 30, 2011 11:49 pm

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.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by marcelwoo » Thu Dec 01, 2011 11:22 am

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.

"We help each other to grow". That's the opencart community!

All free mods
Home Based Ebay business Opportunity(not ads)


User avatar
Active Member

Posts

Joined
Tue Mar 29, 2011 1:45 am

Post by spirit » Tue Dec 13, 2011 6:59 am

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!

Active Member

Posts

Joined
Sat Oct 02, 2010 7:40 am

Post by Klimskady » Thu Dec 15, 2011 5:11 am

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.

Active Member

Posts

Joined
Tue Jun 07, 2011 7:57 am

Post by jimaras » Fri Dec 16, 2011 9:39 pm

Great mod.
Thanks!

http://e-kreopoleio.com/


Active Member

Posts

Joined
Thu Sep 15, 2011 1:45 am

Post by Klimskady » Thu Jan 05, 2012 10:38 am

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..

Active Member

Posts

Joined
Tue Jun 07, 2011 7:57 am

Post by fido-x » Thu Jan 05, 2012 1:27 pm

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.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Klimskady » Sun Jan 08, 2012 11:57 am

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.

Active Member

Posts

Joined
Tue Jun 07, 2011 7:57 am

Post by henkster » Fri Feb 03, 2012 4:31 pm

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>

Newbie

Posts

Joined
Wed Jul 13, 2011 5:34 am

Post by MissLiss » Mon Mar 12, 2012 4:38 pm

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

New member

Posts

Joined
Thu Mar 08, 2012 5:33 pm

Post by sopedro » Fri Apr 13, 2012 9:18 pm

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

Newbie

Posts

Joined
Sat Jan 21, 2012 5:38 pm

Post by sopedro » Fri Apr 13, 2012 11:15 pm

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

Attachments

Fido-X modified xml


Newbie

Posts

Joined
Sat Jan 21, 2012 5:38 pm

Post by az@a2z-computing.com » Mon Jun 18, 2012 3:05 am

hello everyone...

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


Posts

Joined
Mon Jun 18, 2012 2:57 am

Post by sunriser » Fri Jun 22, 2012 6:07 pm

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!

Attachments


http://www.buddhalife.nl


New member

Posts

Joined
Sun Dec 18, 2011 8:03 pm


Post by sunriser » Fri Jun 22, 2012 6:26 pm

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

http://www.buddhalife.nl


New member

Posts

Joined
Sun Dec 18, 2011 8:03 pm


Post by d4zort » Wed Jul 11, 2012 2:54 pm

I am slow. Can someone tel me where to put this?

Thanks

New member

Posts

Joined
Fri Jan 13, 2012 4:28 am

Post by OSWorX » Wed Jul 11, 2012 3:07 pm

d4zort wrote:I am slow. Can someone tel me where to put this?

Thanks
In the folder:

Code: Select all

{root}/vqmod/xml

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by DannyMacD » Thu Oct 11, 2012 7:42 pm

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?

Active Member

Posts

Joined
Fri Jun 26, 2009 6:39 am

Post by aaron1988 » Fri Nov 09, 2012 7:22 pm

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:

Attachments

Added English Version


Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by Calcite » Sat Dec 01, 2012 4:17 am

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

Active Member

Posts

Joined
Fri Dec 30, 2011 3:21 am
Who is online

Users browsing this forum: Google [Bot] and 6 guests