AbanteCart Community

Shopping Cart Operations => Support => Template Support => Topic started by: emanuelben616 on July 10, 2015, 04:18:38 AM

Title: Removing the enter code when writing a review or contact us
Post by: emanuelben616 on July 10, 2015, 04:18:38 AM
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?
Title: Re: Removing the enter code when writing a review or contact us
Post by: abantecart 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.
Title: Re: Removing the enter code when writing a review or contact us
Post by: emanuelben616 on July 13, 2015, 07:47:02 AM
OK thank you for your help!