Hi guys,
i’m a PHP developer and i’m trying to add a custom condition to my cs cart system.
I want to add in the promotion conditions a new custom condition.
It’s possible to do what i want?
Where can i find the correct file that i have to edit?
Mattia
Hello Mattia,
It's possible. You will need to make some modifications to the schemas/promotions/schema.php file in your CS-Cart installation.
I hope this will help.
[quote name='mattia1107' timestamp='1406207439' post='188144']
Hi guys,
i'm a PHP developer and i'm trying to add a custom condition to my cs cart system.
I want to add in the promotion conditions a new custom condition.
It's possible to do what i want?
Where can i find the correct file that i have to edit?
[/quote]
We recommend you to use My changes add-on instead of adding changes to the core files. Use the Reward points add-on as an example:
addons/reward_points/schemas/promotions/schema.post.php
Hope that helps.