I have to admit I haven’t read all of the information on templates and customizations within CS-Cart; so there maybe a better way to do this.
Here is how to add your terms and conditions to your checkout page (directly above the “By checking this checkbox, you accept the Terms and Conditions.” check box.)
The result will be your terms and conditions displayed in a "read only" text box. The only thing the end user can do is scroll through them or copy them. Delete, typing, etc is disabled.
One nice way of modifying templates would be to add a hook in the template, then put the hook file in the my_changes/hooks/ folder.
I’m not sure if this is a common method, but then if the cart is updated, all that would be required would be to re-add you hook rather than all the code. Would Also be easier to see where the changes go when comparing new file versions.
[quote name=‘phazei’]One nice way of modifying templates would be to add a hook in the template, then put the hook file in the my_changes/hooks/ folder.
I’m not sure if this is a common method, but then if the cart is updated, all that would be required would be to re-add you hook rather than all the code. Would Also be easier to see where the changes go when comparing new file versions.[/QUOTE]
You are absolutely correct. Just one additional note… Add a comment indicting that you made the change and why if necessary.
[quote name=‘Phirehawk’]I have to admit I haven’t read all of the information on templates and customizations within CS-Cart; so there maybe a better way to do this.
Here is how to add your terms and conditions to your checkout page (directly above the “By checking this checkbox, you accept the Terms and Conditions.” check box.)
The result will be your terms and conditions displayed in a "read only" text box. The only thing the end user can do is scroll through them or copy them. Delete, typing, etc is disabled.[/QUOTE]
Thank you for that code, it work without any problem.:) :-D
[quote name=‘phazei’]One nice way of modifying templates would be to add a hook in the template, then put the hook file in the my_changes/hooks/ folder.
I’m not sure if this is a common method, but then if the cart is updated, all that would be required would be to re-add you hook rather than all the code. Would Also be easier to see where the changes go when comparing new file versions.[/QUOTE]
[quote name=‘Phirehawk’]I have to admit I haven’t read all of the information on templates and customizations within CS-Cart; so there maybe a better way to do this.
Here is how to add your terms and conditions to your checkout page (directly above the “By checking this checkbox, you accept the Terms and Conditions.” check box.)
The result will be your terms and conditions displayed in a "read only" text box. The only thing the end user can do is scroll through them or copy them. Delete, typing, etc is disabled.[/QUOTE]