As the question states, I would like to create a new payment method for bank transfer but I would like to promote it by making special discount for bank transfer payment method. So here are two questions in regard;
1- How to define this discount special to the payment method I will create?
2- How to display this discount price on product page so that for example it would read “99 $ (95 $ by bank transfer)”.
2- Is is possible to assign tags that will read “%5 discount for wire transfer” via API, by single product? (I am actually managing product prices not on CS-Cart admin panel but on another panel I wrote for managing a few platforms together. So I can use this trick like each time I update price and stocks of the product over API; I would also send the tag information for that product and eventually all the products will always be tagged.)
@johnbol1 , thank you. It was a solution came to my mind but haven’t tried; now I see from your example that it is very possible.
@ecomlabs , All I want to show the bank information. Doc says it could be done by adding a language variable; but isn’t also using a block possible? I have banking information as a block already.
I could take the risk. By any chance you could tell me which file I can tamper with? I can maybe later work on a hook or something to make it into a add-on.
I have been going through add-on documentation but I don’t really understand how the hooks work. I created an add-on with some settings but I don’t understand how and where I need to use products:prices_block hook. Documentation is not really clear how the directory structure should be.
Could you please let me know what directory structure I need to set in /tamplates/addons/myaddon/hooks to use products:prices_block hook to display another price under the main product price? And how do I access the values of the settings I created in addon.xml in this hook tpl file?
First I actually edited the template file you told and the result was good enough for me. But then I wanted to make it an addon because I want this second price option be showed in everywhere the product price is shown. Will that hook do the job or do I need to use other hooks for example displaying this second price in product list page?