Page 1 of 1
Addon to Confirm Privacy and Conditions in Checkout
Posted: Sun Dec 04, 2022 12:57 pm
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
Re: Addon to Confirm Privacy and Conditions in Checkout
Posted: Sun Dec 04, 2022 1:59 pm
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
Re: Addon to Confirm Privacy and Conditions in Checkout
Posted: Sun Dec 04, 2022 2:23 pm
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)
Re: Addon to Confirm Privacy and Conditions in Checkout
Posted: Sun Dec 04, 2022 2:35 pm
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
Re: Addon to Confirm Privacy and Conditions in Checkout
Posted: Sun Dec 04, 2022 8:28 pm
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!
Re: Addon to Confirm Privacy and Conditions in Checkout
Posted: Thu Jan 19, 2023 4:13 pm
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
);
}
}