is there any captcha for hikashop cart module?

  • Posts: 201
  • Thank you received: 7
5 years 4 weeks ago #312498

hi
i want add simple captcha in hikashop cart module. which file need to modify?
any advise? i can write some php code
i want do this for more security in my future website.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 4 weeks ago #312504

Hi,

If you want to do that, you can edit the file product / cart.php via the menu Display>Views to add your captcha, and develop a plugin of the group "hikashop", implementing the "onBeforeCartSave" trigger to approve / cancel the cart saving based on the captcha solution provided by the customer.

Note however that I don't see the point of doing that.
Usually, you only add a captcha to forms where abusing its use can be detrimental to you. For example, on a contact form, abusing it could lead to your website sending many emails, potentially leading to your server being flagged as a spammer.
Or on the registration form, this could lead to fake user accounts being created and your server sending emails to unauthorized email addresses leading to your server being flagged as a spammer, or it could lead to the user accounts posting spam messages to other websites on a comment system, or a forum system you have on your website.
But on the cart module, submitting the form of the cart module doesn't do anything besides refreshing the cart data in the database. So I would recommend to not bother with this development.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum