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
Addon to Confirm Privacy and Conditions in Checkout
-
- VIP Member
- Posts: 1512
- Joined: Mon Oct 07, 2019 4:39 am
- Has thanked: 23 times
- Been thanked: 142 times
Re: Addon to Confirm Privacy and Conditions in Checkout
Looking at Phoenix Cart Demo , it is already built into core Phoenix Cart.
You do not have the required permissions to view the files attached to this post.
Re: Addon to Confirm Privacy and Conditions in Checkout
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)
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)
-
- VIP Member
- Posts: 1512
- Joined: Mon Oct 07, 2019 4:39 am
- Has thanked: 23 times
- Been thanked: 142 times
Re: Addon to Confirm Privacy and Conditions in Checkout
In your admin dashboard - Modules > Customer Data - Install Module - MATC
Re: Addon to Confirm Privacy and Conditions in Checkout
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!
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!
-
- VIP Member
- Posts: 55
- Joined: Fri Nov 06, 2020 10:36 am
- Has thanked: 19 times
- Been thanked: 2 times
Re: Addon to Confirm Privacy and Conditions in Checkout
The entries you added to the hooks table should have been there already when you activate MATC module (cd_matc.php line 130-145):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!
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
);
}
}