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!
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)
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..
It would appear that it does, although it shouldn't.Klimskady wrote:Does the theme used matter in using this vQmod
Template designers should only be providing replacement .tpl files in their templates only if there have been changes in the .tpl file itself.... as I am having so many problems getting extensions as well as vQmod's to install properly with the Shoppica Theme.
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!
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.
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>
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>
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
to work with shoppica, you have to change the offset value from 3 to 1 .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:with 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>
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>
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>
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
i've installed the latest version.. but still can enter the reviews without logging on..
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!
See my previous post, not really a prompt as you say.. but there you go!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.
In the folder:d4zort wrote:I am slow. Can someone tel me where to put this?
Thanks
Code: Select all
{root}/vqmod/xml
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
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?
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
--------------------------------------------------------------------------------
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
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
Users browsing this forum: No registered users and 38 guests