Help needed with implementation of "Custom Field price"

  • Posts: 117
  • Thank you received: 6
4 years 1 week ago #325973

-- HikaShop version -- : 4.4
-- Joomla version -- : 3.9.22
-- PHP version -- : 7.4
-- Browser(s) name and version -- : all

I need some help with the following

We want to give customers an option to donate 5% of their order total to a charity organization by choice.

To "build" this we have bought "Custom Field price By Obsidev".

I understand that this plug-in, together with a custom "order" field will do the trick.

So...

I made a Custom Order field of the type "select"
This holds the names of 4 charity organizations

and then I got stuck

Can someone help me further, step by step?
How does the "Custom Field price" work?

Last edit: 4 years 1 week ago by Formidog.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 6 days ago #325984

Hi,

You need to create a second custom order field of the type "text" so that the customer can enter the amount.
And you need to configure that plugin to use the value in that custom text field via the "new" button of the System>Plugins menu in the backend of HikaShop as explained in the configuration section here:
www.hikashop.com/marketplace/product/202...rice-by-obsidev.html

The following user(s) said Thank You: Formidog

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

  • Posts: 117
  • Thank you received: 6
4 years 3 days ago #326223

Thank you Nicolas

step by step:

About the second custom field:
We don't want the customer to enter an amount.
The purpose is that the amount is 5% of the order value

How to get this?

I have found this:
demo.hikashop.com/index.php/en/hikashop/...t-page/donation-page
where a user can enter an amount to be distracted from his account.
That is not the way I want this to work.
My objective is that we donate a percentage of the total order amount to a charity of the customer's choice.
So I want the custom field to calculate a 5% percentage of the total order amount and make this visible for the customer.

How to get a calculating custom field?



Greetz

Dick

Last edit: 4 years 2 days ago by Formidog. Reason: found this: http://demo.hikashop.com/index.php/en/hikashop/product-page/donation-page

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 1 day ago #326268

Hi,

In that case, you can't do it with this plugin.
The goal of this plugin is to allow the customer to enter (or select) an amount which will be added to his order.
If the amount need to be a percentage of the total amount, this plugin can't do it.

However, in that case, you could do it with either the shipping method selection or the payment method selection.
For example, if you have only one payment method, you can duplicate it, and in the copy, you can enter a "percentage" of 5.
Then, you can use some translation override so that the payment method selection because the charity donation selection, and the payment fee because the donation amount:
www.hikashop.com/download/languages.html#modify

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

Time to create page: 0.063 seconds
Powered by Kunena Forum