Jump to content

Remove email template


kealan

Recommended Posts

Hello Cubecart forums,

Once again I am at your mercy in an effort to maintain my mental sanity.

Since enabling the reviews option on our site we have been getting constant spam filled into the review form, the image captcha is enabled so someone is actually taking taking the time to spam the site.

I had a look through the forums for an option to allow registered users only to review, no joy. So I have resigned myself to the fact that if someone wants to spam the reviews they can, while it has no effect on my site as only the authorised reviews go live, I have my shop's mailbox synced to my phone/tablet/P.C. which are now ringing and crying for attention every 10 mins.

I would settle for some help in just removing the email trigger for review received, I have looked in the store/language/en/ and have found the email.inc.php file which I assume is the email controller. I am unsure what to do at this point.

Thanks in advance to anyone who takes the time to read and respond to this post

Kealan

Link to comment
Share on other sites

You'll want to open classes/cubecart.class.php

Find this line:

                   	 $mail->sendEmail($GLOBALS['config']->get('config', 'email_address'), $content);




Change to:




//                   	 $mail->sendEmail($GLOBALS['config']->get('config', 'email_address'), $content);




Should do the trick.



Also, if you find the reviews section on the content.product.php template file, you can wrap it in some tags to make it so that it only shows for logged in users.



Just find




<div id="review_write" style="display: none;">




Change to:





{if $IS_USER}

<div id="review_write" style="display: none;">





Then find:




     	 </form>

  </div>

</div>


 

Change to:





     	 </form>

  </div>

  {/if}

</div>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...