- Posts: 157
- Thank you received: 8
Adding on option for donation to the checkout
12 years 1 month ago #174116
by vanboke
Adding on option for donation to the checkout was created by vanboke
-- HikaShop version -- : 2.3.3
-- Joomla version -- : 2.5.27
Is it possible to add a "click here to donate $5" option to the checkout. I would like to capture some donations for a specific cause at the time of checkout.
If this is not possible, how much would it cost to develop? I have a client that would really like to see this.
Thank you.
-- Joomla version -- : 2.5.27
Is it possible to add a "click here to donate $5" option to the checkout. I would like to capture some donations for a specific cause at the time of checkout.
If this is not possible, how much would it cost to develop? I have a client that would really like to see this.
Thank you.
Please Log in or Create an account to join the conversation.
12 years 1 month ago #174159
by nicolas
Replied by nicolas on topic Adding on option for donation to the checkout
Hi,
It's possible.
First, create a $5 product via the backend. You can put it in an unpublished category if you don't want it to show up on your products listings.
Then, edit the file "cart" of the view "checkout" via the menu Display>Views and you can add such simple HTML code:
where XXX is the id of the $5 product.
It's possible.
First, create a $5 product via the backend. You can put it in an unpublished category if you don't want it to show up on your products listings.
Then, edit the file "cart" of the view "checkout" via the menu Display>Views and you can add such simple HTML code:
Code:
<a href="http://mywebsite.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&product_id=XXX&quantity=1&checkout=1">Click here to donate $5</a>
Please Log in or Create an account to join the conversation.
12 years 1 month ago #174277
by vanboke
Replied by vanboke on topic Adding on option for donation to the checkout
Thank you! That works perfect.
Such a simple solution too.
Such a simple solution too.
Please Log in or Create an account to join the conversation.
Time to create page: 0.040 seconds