Author Topic: Removing the enter code when writing a review or contact us  (Read 3007 times)

Offline emanuelben616

  • Jr. Member
  • **
  • Posts: 55
  • Karma: +2/-0
    • View Profile
Hi All,

  I wanted to know where can i go to remove the enter code for when you write a review or when someone wants to email you. How do i remove it?

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4279
  • Karma: +283/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Removing the enter code when writing a review or contact us
« Reply #1 on: July 12, 2015, 08:46:04 PM »
This will require removal in 2 places of display and validation

You can look for word captcha

1. https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/controller/pages/product/product.php
Code: [Select]
$this->data['review_captcha'] = HtmlElementFactory::create(array( 'type'=>'input',
'name' =>'captcha',
'attr' =>''));
2. https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/controller/responses/product/review.php
Code: [Select]
if (!isset($this->session->data['captcha']) || ($this->session->data['captcha'] != $this->request->post['captcha'])) {
$this->error['message'] = $this->language->get('error_captcha');
}

Keep in mind that you might be attacked by robots with large number of submits.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline emanuelben616

  • Jr. Member
  • **
  • Posts: 55
  • Karma: +2/-0
    • View Profile
Re: Removing the enter code when writing a review or contact us
« Reply #2 on: July 13, 2015, 07:47:02 AM »
OK thank you for your help!

 

Powered by SMFPacks Social Login Mod