Do standard HikaShop options not work in combination with price calculations?

  • Posts: 599
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
1 day 1 hour ago #368615

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

I used the Price Calculation plugin and it works fine, but as soon as I add an option to the product, the calculation stops working.

Is it correct that these don't work together?
Do I need to create custom fields for the options instead of the standard options feature from Hikashop?

See screenshot for example.

Hope to hear from you.


Kind regards,
Lumiga
Attachments:
Last edit: 1 day 1 hour ago by Lumiga.

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

  • Posts: 84315
  • Thank you received: 13706
  • MODERATOR
21 hours 40 minutes ago #368618

Hi,

Both can work together.
The formula result will give the new price of the product.
And in your formula, you don't use the tag {price} to take into account the base price of the product. So this might be something you want to change.

But that's not the main issue you have. If I open the console of my browser and look at the "network" tab, I can see the "calculate" requests sent by the javascript of my browser to your website and the have a Status "500":
i.imgur.com/dkcqcfW.png
This indicates a PHP fatal error during the processing.
And if I click on one request at look at its "preview" tab, I can see a PHP error:
i.imgur.com/7kvZf5j.png

array_keys(): Argument #1 ($array) must be of type array, null given

Unfortunately, this is the small error message which is displayed when the "debug" setting of the Joomla configuration is turned off. It doesn't allow us to really understand where the problem comes from.
Please activate that "debug" setting and check the preview of the request in the network tab of your browser's console. You'll then get the full error message (or leave the setting on so that I can look at it). With the full error message, I'll be able to tell you what to do.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum