Hidden custom field not included in price calculation

  • Posts: 614
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
3 days 15 hours ago #368893

-- HikaShop version -- : 6.1.0
-- Joomla version -- : 5.3.3
-- PHP version -- : 8.3

Hi Supportteam,

I noticed that when I use a hidden custom field for the setup fee, the value is not included in the price calculation formula. If I enter the amount manually, the formula works correctly. So the formula itself is fine.

Is it correct that hidden custom fields cannot be used in price calculations? Ideally, I would like the client to update the setup fee in the custom field (just like the other values), without having to edit the formula itself.

See screenshot



Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:
Last edit: 3 days 15 hours ago by Lumiga.

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

  • Posts: 84497
  • Thank you received: 13739
  • MODERATOR
1 day 20 hours ago #368901

Hi,

No, that's not correct. Custom item fields of the type "hidden" can also be used in the formulas.
However, the same rules apply to them than other custom item fields. For the field to be used on the frontend, it's frontend display setting needs to be activated.
This also means that the user can potentially change its value on the frontend. So basing yourself on it for the calculation is not recommended.

What you should rather use is a custom field of the table "product" and of the type "text".
You can still configure a default value in it. And when you create a product, that default value will be set in the custom field.
And if you want to change the value for a product, you can edit the product.
And if you need the value to change for all the products, it's possible with a mass action.

The following user(s) said Thank You: Lumiga

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

Time to create page: 0.062 seconds
Powered by Kunena Forum