Addon to Confirm Privacy and Conditions in Checkout

Ask the community for help and support.
Post Reply
Thommy_F
Posts: 10
Joined: Tue Nov 29, 2022 12:52 pm

Addon to Confirm Privacy and Conditions in Checkout

Post by Thommy_F »

Hey there,

first I want to thank for the whole work you all do here.

With your help I was able to update all my shop-systems that worked based on OSCommerce 2.3.4.x on a PHP 8.0 sourrounding.

But there is a big question that gives me sleepless nights at the moment.

As far as I know in Europe is required by law that customers have to confirm the privacy and conditions before they can finish the checkout process.

In OSC there where a kind of "german market ready" Addon, that simply shows the Privacy and Conditions in scrollable boxes in checkout confirmation page, followed by a checkbox "I confirm the conditions and...". Only if the hook was set an order could be finished.

Is there a comparable Addon for CE-Phoenix? or is it possible to adjust the "old" Addon without a lot of effort?

Greetings:
Thommy
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: Addon to Confirm Privacy and Conditions in Checkout

Post by heatherbell »

Thommy_F wrote: Sun Dec 04, 2022 12:57 pm As far as I know in Europe is required by law that customers have to confirm the privacy and conditions before they can finish the checkout process.
Looking at Phoenix Cart Demo , it is already built into core Phoenix Cart.
Screenshot 2022-12-04 135802.png
You do not have the required permissions to view the files attached to this post.
Thommy_F
Posts: 10
Joined: Tue Nov 29, 2022 12:52 pm

Re: Addon to Confirm Privacy and Conditions in Checkout

Post by Thommy_F »

Thanks for your answer, but unfortunately in my installation I couldn't find that switch.

Can anyone tell me where to search it in the Source Code so I would be able to find the reason of "not showing it"?

Thanks!

(Installed version: 1.0.8.20 according to the includes/version.php)
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: Addon to Confirm Privacy and Conditions in Checkout

Post by heatherbell »

Thommy_F wrote: Sun Dec 04, 2022 2:23 pm Thanks for your answer, but unfortunately in my installation I couldn't find that switch.
In your admin dashboard - Modules > Customer Data - Install Module - MATC
Thommy_F
Posts: 10
Joined: Tue Nov 29, 2022 12:52 pm

Re: Addon to Confirm Privacy and Conditions in Checkout

Post by Thommy_F »

For everyone who's faced with this problem too:

It was not possible to install the Module in Admin-Panel in my case. But I solved it manually

Walkthrough:

Insert a record to database in table hooks with this values

hooks_site: shop
hooks_group: checkout_confirmation
hooks_action: injectFormDisplay
hooks_code: cd_matc
hooks_method: hook

then check if .../includes/modules/customer_data/cd_matc.php exists.
If it dosn't exist copy this file from downloaded catalog directory.

In my case (I only have german as language installed to my Server) I finaly took

../includes/languages/english/modules/customer_data/cd_matc.php/

translate it, and uploaded it to the same path in german language structure.

now it works!
Moxamint
VIP Member
VIP Member
Posts: 85
Joined: Fri Nov 06, 2020 10:36 am
Has thanked: 22 times
Been thanked: 2 times

Re: Addon to Confirm Privacy and Conditions in Checkout

Post by Moxamint »

Thommy_F wrote: Sun Dec 04, 2022 8:28 pm For everyone who's faced with this problem too:

It was not possible to install the Module in Admin-Panel in my case. But I solved it manually

Walkthrough:

Insert a record to database in table hooks with this values

hooks_site: shop
hooks_group: checkout_confirmation
hooks_action: injectFormDisplay
hooks_code: cd_matc
hooks_method: hook

then check if .../includes/modules/customer_data/cd_matc.php exists.
If it dosn't exist copy this file from downloaded catalog directory.

In my case (I only have german as language installed to my Server) I finaly took

../includes/languages/english/modules/customer_data/cd_matc.php/

translate it, and uploaded it to the same path in german language structure.

now it works!
The entries you added to the hooks table should have been there already when you activate MATC module (cd_matc.php line 130-145):

Code: Select all

    public function install($parameter_key = null) {
      parent::install($parameter_key);

      if (is_null($parameter_key)) {
        $GLOBALS['db']->query(<<<'EOSQL'
INSERT INTO hooks (hooks_site, hooks_group, hooks_action, hooks_code, hooks_class, hooks_method)
 VALUES ('shop', 'checkout_confirmation', 'injectFormDisplay', 'display_matc', 'cd_matc', 'hook')
EOSQL
          );
        $GLOBALS['db']->query(<<<'EOSQL'
INSERT INTO hooks (hooks_site, hooks_group, hooks_action, hooks_code, hooks_class, hooks_method)
 VALUES ('shop', 'checkout_confirmation', 'injectFormVerify', 'verify_matc', 'cd_matc', 'is_checked')
EOSQL
          );
      }
    }
Post Reply