Donation amount not passed to the cart

  • Posts: 251
  • Thank you received: 2
9 years 11 months ago #214757

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

Hi

I followed every single step to configure the donation amount field, but adding the product to the cart the price still be 0,00.
The product is in the donation category and the custom field is configured as you suggest.

I searched in old posts but i've not founded any solution.
What could be the problem?

Thank you.

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #214771

Hi,

The problem comes from to things:
- You've activated the option "Use AJAX when possible for add to cart buttons" so that the system adds the product to the cart in ajax mode when possible.
- You've customized the product page layout so that the custom item fields are displayed after the add to cart button.

Normally, when the system sees that there are custom item fields to be displayed on the page, it deactivates the AJAX mode so that the add to cart button submits the whole form, including the custom field values.
In your case, that is not done and thus the product is added with AJAX, without the custom fields values.
Thus, the donation plugin doesn't see the value you entered in the amount field.

So either revert that modification, or deativate that option and it will work.

The following user(s) said Thank You: Nello

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

  • Posts: 251
  • Thank you received: 2
9 years 11 months ago #214920

I solved thanks to your indications.
The problem was not the he option "Use AJAX when possible for add to cart buttons", but the position of "characteristics" and "custom_item_field" in my customized product page layout.

Thank you!

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

Time to create page: 0.056 seconds
Powered by Kunena Forum