Category Archives: HTML

How To Make Contact Form Compliant With GDPR

I have a contact form which will be storing name, email address and phone number. How to make contact form compliant with GDPR

To make the contact form compliant with GDPR

  1. Add a checkbox with explicit consent text e.g I consent to having this website store my submitted information
    Here is the example
  2. Make sure the checkbox of explicit consent is positive opt-in and avoid use any methods to make checkbox was checked by default
  3. Including the following information from your privacy policy page
    • A way allow the personal data subject raise a complaint
    • How long the personal data will be stored?
    • How will the personal data be used?
    • What personal data is being collected?
    • What is the legal basis for processing the personal data
    • What rights does the personal data subject have?
    • Who is collecting the personal data?

Could Not Catch The POST Value Of A Form

I have created scripts on my localhost when I tried to print out the post data, it returns nothing, However its working fine with GET

It’s more like caused by server configuration, I am not sure how did you install and configure your server, but can have a look following URL. Hope this can you help.

https://intellij-support.jetbrains.com/hc/en-us/community/posts/207255485-No-POST-values-caught

How to Fix WordPress Missing required field entry-title,Update,hCard Error

Recently I saw lots of structured error from my webmaster, when I tested my WordPress pages via Google Structured Data testing tools, I got the Following errors:
Error: Missing required field “entry-title”.
Error: Missing required field “updated”.
Error: Missing required hCard “author”. How to solve those issues

Just add / update the following codes then all issues will be gone.

<h1 class="title single-title entry-title"><?php the_title(); ?></h1>
<span class="post_date date updated"><?php the_time('j F,Y'); ?></span>
<span class="vcard author">
<span class="fn"><?php the_author(); ?></span>
</span>

How Can I Disable Magento Compare Products Functionality

How can I disable or remove the Magento products comparison feature

To disable or remove the Magento products comparison feature, you may need to modify file

app/code/core/Mage/Catalog/Helper/Product/Compare.php

and change the following code:

public function getAddUrl($product){return $this->_getUrl(’catalog/product_compare/add’, $this->_getUrlParams($product));}

To

public function getAddUrl($product){//return $this->_getUrl(’catalog/product_compare/add’, $this->_getUrlParams($product)); return false;}

Edit ./app/design/frontend/base/default/layout/catalog.xml (if you are using a different Magento theme, enter its name instead of default) and change the following code:

<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>

To

<!-- <block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/> -->

Once its done, Need to flush the Magento cache from Magento backend area > System > Cache Management.