- Posts: 41
- Thank you received: 2
global cart fee Plugin used on the checkout page
6 years 8 months ago #315984
by Twincarb
global cart fee Plugin used on the checkout page was created by Twincarb
-- url of the page with the problem -- : localhost
-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.15
-- PHP version -- : 7.4
-- Browser(s) name and version -- : All
I am working on being able to allow a customer to tick a checkbox which will then add a fixed amount to the total of the shopping cart. I have the plugin installed, and within the plugin configuaration I have set the following:
Name: Express Order
Price: +
Value: 25
Within the Cart I have added the custom field and it correctly shows on the Checkout Page.
Within Custom Fields I have created a new field with the following details:
Label: Express Order
Table: Order
Column name: express_order
Field Type: Checkbox
I have tried various different options within the value box but when on the front end I am unable to get the "Express Order £ 0.00" to increase to £25.00
Is what I am attempting to do capable with the setup or am I missing something?
Regards,
Dave
-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.15
-- PHP version -- : 7.4
-- Browser(s) name and version -- : All
I am working on being able to allow a customer to tick a checkbox which will then add a fixed amount to the total of the shopping cart. I have the plugin installed, and within the plugin configuaration I have set the following:
Name: Express Order
Price: +
Value: 25
Within the Cart I have added the custom field and it correctly shows on the Checkout Page.
Within Custom Fields I have created a new field with the following details:
Label: Express Order
Table: Order
Column name: express_order
Field Type: Checkbox
I have tried various different options within the value box but when on the front end I am unable to get the "Express Order £ 0.00" to increase to £25.00
Is what I am attempting to do capable with the setup or am I missing something?
Regards,
Dave
Please Log in or Create an account to join the conversation.
6 years 8 months ago #315988
by nicolas
Replied by nicolas on topic global cart fee Plugin used on the checkout page
Hi,
The global cart fee will be added regardless of what you selected in the custom order field.
What you want to use instead is this plugin:
www.hikashop.com/marketplace/product/202...rice-by-obsidev.html
It does exactly what you need:
The global cart fee will be added regardless of what you selected in the custom order field.
What you want to use instead is this plugin:
www.hikashop.com/marketplace/product/202...rice-by-obsidev.html
It does exactly what you need:
Add additional fees in the cart depending an order custom fields
Please Log in or Create an account to join the conversation.
6 years 8 months ago #315989
by Twincarb
Replied by Twincarb on topic global cart fee Plugin used on the checkout page
Many Thanks Nicolas
Please Log in or Create an account to join the conversation.
6 years 8 months ago #316043
by Twincarb
Replied by Twincarb on topic global cart fee Plugin used on the checkout page
I have set everything up and it works perfectly, however I have just been told the requirement has changed, rather than have a fixed price for the service, it needs to be a percentage based on the value of the cart, exc postage and vat 
Is this possible?
If not is it possible to set it up with price points based on the subtotal for example:
anything below £299.99 the charge is £35
£300 - £499.99 the charge is £45
£500 - £599.99 the charge is £75
Thanks in advance
Is this possible?
If not is it possible to set it up with price points based on the subtotal for example:
anything below £299.99 the charge is £35
£300 - £499.99 the charge is £45
£500 - £599.99 the charge is £75
Thanks in advance
Please Log in or Create an account to join the conversation.
6 years 8 months ago #316047
by nicolas
Replied by nicolas on topic global cart fee Plugin used on the checkout page
Hi,
In that case, I don't see a solution without coding.
You would have to modify the code of the custom field price plugin to take into account the amount in the cart, that you'll have to calculate in the code of the plugin after getting the content of the cart, and then add the fee like it is doing.
So not impossible, but there's a coding session required.
In that case, I don't see a solution without coding.
You would have to modify the code of the custom field price plugin to take into account the amount in the cart, that you'll have to calculate in the code of the plugin after getting the content of the cart, and then add the fee like it is doing.
So not impossible, but there's a coding session required.
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds