- Posts: 53
- Thank you received: 0
Adding another pricing (fee) at checkout
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.4.37
On the checkout form, the user should have an option to select/add another fee (which would add to total). What is the best way to accomplish this?
Please Log in or Create an account to join the conversation.
The best way will be to create a custom order field. Then create a plugin based on the function "onAfterCartShippingLoad()".
And in this function, get the value of the custom field and add it to the cart, in the cart additionals.
Here is developer documentation:
www.hikashop.com/support/support/documen...r-documentation.html
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
What kind of fee it is ?
Fixed or the customer must be able to enter a value ?
The plugin proposed in this topic allow to add fees, so you can add a fixed fee to the cart.
www.hikashop.com/forum/5-support-en-fran...cipation.html#193551
If you want to let the customer have the choice to add or not the fee, it will require some editions.
But I think it is a good base to start to do what you need.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
This will indeed require custom code as it is a specific feature which is not handled by default in HikaShop and by the existing plugins.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
We recommend to post a request in the commercial jobs section for this kind of requests as we don't do this kind of customizations.
Please Log in or Create an account to join the conversation.
oharris wrote: It is an additional fee for USD 150. So it is fixed. As in the demo site ( 2015conference.icac.org.jm/v2/index.php/register ), when the user clicks on a registration charge (Non-member for $610) , the amount is added to the cart, but during the process of filling in the form, the user should be able to select option of adding that other fee (for an additional workshop) and the fee of 150 added to the cart upon checkout or when they click "Next".
Wouldn't be easier to create 2 products: $610 and $610+$150, add checkbox for workshop to price table and switch url of register button with javascript or css?
Please Log in or Create an account to join the conversation.