global cart fee Plugin used on the checkout page

  • Posts: 41
  • Thank you received: 2
5 years 3 weeks ago #315984

-- 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

Please Log in or Create an account to join the conversation.

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
5 years 3 weeks ago #315988

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:

Add additional fees in the cart depending an order custom fields

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 2
5 years 3 weeks ago #315989

Many Thanks Nicolas :)

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 2
5 years 2 weeks ago #316043

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

Please Log in or Create an account to join the conversation.

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
5 years 2 weeks ago #316047

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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum