Skip to content
View in the app

A better way to browse. Learn more.

Clicshopping AI, Free generative artificial intelligence e-commerce Open Source , Open Source Store Onlne

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to add a new element for the grdp

Featured Replies

hello,

I need to create a new element. I use a special tracking module I would know how to make that ?

Hi,

First, Do you have installed or not the gdrp header tag modules ? 

ClicShopping propose a nice approach about the registred customer but for the not registred, you must install a specific module.

You we will found the modules the : https://github.com/ClicShoppingOfficialModulesV3/module_header_tags_gdpr or you can install via the extensions.

maybe it can help you to manage your need.

you can find a module cookie consent.

 

Else look the directory : Clichopping/Modules/Hooks/Account.

You will find some GRPD modules. it's easy to create another :

Copy the files and change the name :

example

 

<?php
/**
 *
 *  @copyright 2008 - https://www.clicshopping.org
 *  @Brand : ClicShopping(Tm) at Inpi all right Reserved
 *  @Licence GPL 2 & MIT
 *  @licence MIT - Portion of osCommerce 2.4 
 *
 *
 */

  namespace ClicShopping\OM\Module\Hooks\Shop\Account;

  use ClicShopping\OM\CLICSHOPPING;

  use ClicShopping\OM\Registry;
  use ClicShopping\OM\HTML;

  class AccountGdprNoIp {

    protected $IpAddress;

    public function getIpAddress() {
      $CLICSHOPPING_Db = Registry::get('Db');
      $CLICSHOPPING_Customer = Registry::get('Customer');

      $Qgdpr = $CLICSHOPPING_Db->prepare('select no_ip_address
                                          from :table_customers_gdpr
                                          where customers_id = :customers_id
                                        ');
      $Qgdpr->bindInt(':customers_id', $CLICSHOPPING_Customer->getID());
      $Qgdpr->execute();

      $ip_address = $Qgdpr->valueInt('no_ip_address');

      return $ip_address;
    }

    public function display() {
        $output = '<div>';
        $output .= '<label class="checkbox-inline">';
        $output .= HTML::checkboxField('no_ip_address', $this->getIpAddress(), $this->getIpAddress());
        $output .= '</label>';
        $output .= CLICSHOPPING::getDef('module_account_customers_gdpr_no_ip_address');
        $output .= '</div>';

        return $output;
    }
  }

To create another module change 

AccountGdprNoIp

by 

AccountGdprMyModule

Note : AccountGdpr is very important, it allow you  to implement the code in your catalog the new module. The files is reading dynamicly

I hope it can be an help to create your own module.

 

Thank @Patrick,

 

That's mean you can develop a specific module/apps and you can insert a grpd hooks in funcion the module/apps ?

 

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.