Okay
  Public Ticket #2354656
custom checkout on WooCommerce not working with Amelia
Closed

Comments

  • Sporasrls started the conversation

    Hi, if I add custom checkout fields(to be GDPR compliance), they work ok if I add the product trough Woocommerce, but if I use Amelia, and the product is added as a service, the custom field is not checked, and it is possible to fullfill the order even without checking it.

    Can you please give me a suggestion?

  • [deleted] replied

    Hello Sporasrls, 

    Thank you for your purchase. 

    There is an option to add custom fields to services and events in Amelia, you will find it when you go to Amelia -> Customize. You can read more about this feature following this link

    Hope this helps!

    If you have any further questions or concerns feel free to ask. 

  • Sporasrls replied

    Hi Marija,

    Thank you for replying but that's not the problem. I know how to add a custom field inside amelia. The problem is within Amelia and WooCommerce. 
    I added to WC an action (woocommerce_review_order_before_submit) that creates a required checkbox to accept the GDPR(see screenshot).

    With a standard product from woocommerce the checkbox works fine. If I check it, the payment proceeds and if I doesn't check it, it will throw me a warning message that the checkbox must be checked to proceed.

    But if use Amelia, after I select my appointment and sent me to the WC checkout this checkbox allows to proceed with the payment even though it's not checked. 

    It seems that Amelia creates his 'own' checkbox that is different from the standard woocommerce. 

    How can I solve this problem and integrate Amelia to WooCommerce?
    Thanks

  • [deleted] replied

    Hello Sporasrls, 

    You are welcome. Sorry for misunderstanding the issue. 

    Could you please tell me is this some option/setting in WooCommerce and where to find it? If that is some custom solution you created/added for WooCommerce, we can't guarantee that it will work with Amelia as well. 


  • alfio replied

    Hi Marija,

    it's me again (I only changed account). I added the code (see screenshot) to functions.php. In order to be GDPR compliant in Italy I MUST put that checkbox otherwise I can't use amelia because it's not fully integrated with WooCommerce.

    If there's anything to do I'll have to make a refund of the product.

    Thanks

  • [deleted] replied

    Hello alfio, 

    I forwarded this to the development team so they will check it out, if they can find some solution to this. 

    You can also check out the file WooCommerceService.php in Amelia where are the functions for integration with WooCommerce at location wp-content/plugins/ameliabooking/src/Infrastructure/WP/Integrations/WooCommerce to see if you can add/modify anything there for that checkbox to work. 

    I see you bought Amelia in October last year, almost 6 months ago, so there wouldn't be an option for a refund, unfortunately. 

  • alfio replied

    Hi Marija,
    I'll attend you development team to check these fully integration with Woocommerce.

    Meanwhile, I'd like to know how can I add html code in the custom field of Amelia. (see screenshot attached)

    Thanks

  • [deleted] replied

    Hello Alfio, 

    The integration with WooCommerce is full, but the integration applies and is done for plain WooCommerce without any customization. We can't guarantee that it will work with any customization that you do there, unfortunately. But, like I said before, the developers will check out if they can find some solution to this. 

    Unfortunately, the only custom field that supports HTML is the Text Content one, at the moment in Amelia.

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help.

  • alfio replied

    So I can't have a GDPR compliant site if I use Amelia..

    If there's not a workaround for this and you don't give a refund for a service that was used only in a development site I don't think I'll ever trust you purchasing a service.

    Sorry for the waste of time.

  • [deleted] replied

    Hello alfio, 

    Hopefully, the developers will be able to make the integration with WooCommerce to work with the customization you made. I forwarded this to them right away. Sorry that you have that impression of Amelia and our work. 

    Making that checkbox for GDPR in Amelia with using HTML, would require one more custom field created in Amelia. So, you would need to create one custom field of type -Text Content and you will provide the link there so customers can read about GDPR, and then have the custom field you already created where customers  check that they've read it and accept it. Maybe it is a bit of extra work, but it is only one more custom field, so two fields instead of one.

    For GDPR compliance we added an option for customers to delete their information on the Customer panel if you allow them to.

    Our company's policy is 15 days money back guarantee, so we can issue a refund within 15 days of your purchase. Your purchase was 6 months ago, it is half of the time of the yearly subscription, so we can't process a refund, unfortunately, even though you haven't used it, the purchase date is taken into consideration. 

  • alfio replied

    Hi Marija, 

    If I proceed as you suggest adding a type-text content to enable the HTML markup I get this (see screenshot).
    In terms of UX it's unacceptable: How can I put the Radio button below the type-text content? 

    Also, when do you think I'll get a feedback from the developer team?

    Thanks!

  • [deleted] replied

    Hello alfio,

    I see, the look can probably be improved with some custom CSS. 

    If you want, send me the page where you have Amelia on and I will try to help out. 

    I don't have any feedback from the developers about this yet.

  • [deleted] replied

    Hello again, 

    The developers sent me the solution to the issue that you have with WooCommerce custom field. 

    In your functions.php file, you need to add an action for checking if the checkbox is selected for this action:

    woocommerce_before_checkout_process

    like here in this example: 

    add_action('woocommerce_before_checkout_process', 'my_custom_checkout_field_process');

    Please change the action and let me know if it worked.

  • alfio replied

    Hi Marija,

    I changed the action as your developers suggest but it doesn't change anything. If I do the procedure via WooCommerce I get the error, if I do it trough Amelia the checkout proceed even thought the checkbox is not filled. 

    Any suggestion?

  •   [deleted] replied privately
  • alfio replied

    Hi Marija, I didn't receive any update from you.

    Any suggestion from the developers team?

  • [deleted] replied

    Hello alfio, 

    I replied couple of days ago, but privately, since the response has a file from the plugin, and because you are not using the account you used for creating the purchase you can't see my reply. Please look at the attachment. So, could you login and open this ticket with the account you used for creating this ticket in the first place? That way, you will see my response.