I am trying to add a tiny bit of code right above the promo code input field on the cart page, and as luck would have it there is a hook for that particular block:
{hook name="checkout:discount_coupons"}
Now if I understand how hooks work ( and I must be making a mistake here somewhere ) the code that I would like executed before this hook should be created in the following directory:
themes/basic/templates/addons/my_changes/hooks/checkout/
The file that should be placed in the above location in my case should be:
discount_coupons.pre.tpl
This file would include whatever items I would like to appear before the hook.
I have created everything above, uploaded it, verified that is on the server, cleared my browsers cache, cleared the carts cache ( ?cc ) and yet nothing seems to get my simple html addition to display.
It was my understanding that if you are using a hook you would take the first part of the hook name, in this case "checkout" and that would be the directory you would create in the "hooks" folder. Then the file name would be based off of the 2nd part of the hook with either pre, post or override appended to the name...
I should also mention that I am using CS-Cart v4 and I have caching disabled.
Am I missing something or am I off on the wrong track here?