Okay
  Public Ticket #2434213
WooCommerce integration only for non-free services
Closed

Comments

  •  4
    Carsten started the conversation

    Hi and thanks for a great plugin! :)

    For my client we, at the moment, only need two services: A renting service and a reservation service.

    The renting service is a payed service with WooCommerce integration. But the reservation service is free but it stills links through to the WooCommerce shopping cart. Obviously, we don't want this for free services. :)

    How can we switch the WooCommerce integration on and off per service?

    Thanks!

  • [deleted] replied

    Hello Carsten, 

    Thank you for your purchase. 

    Glad to see you like Ameliasmile.png Thank you.

    There is a possibility to have the on-site payment option for services that have price 0, you just need to edit one option in your database. So, in this case the payment won't go to WooCommerce, it will use the Amelia on-site payment option. 

    When you access your database, you need to find and open the wp-options table (it can have different prefix depending on your database) , and find the option amelia_settings in it. Then please edit this option and when you find property 'wc:' there you need to set true for the 'onSiteIfFree' parameter instead of false, like here: 

     "wc": {
            "onSiteIfFree": true,
    }

    Let me know if this helped!

  •  4
    Carsten replied

    Hi Marija,

    And thanks for your quick reply! 

    The change in the database you suggested worked! The system now works as we expected. 

    It would be nice though, in a future version, to have this as an option for each service. Just a suggestion. :-) 

    Regards,
    Carsten

  • [deleted] replied

    You are welcome, Carsten. 

    Glad to see that. 

    We added this option to the database in the last version of Amelia, we added it there since there are a lot of settings in the back-end of Amelia. But thank you for the suggestion, I will add this as a feature request so it can be considered for modification in the future. 

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

  •  4
    Carsten replied

    Hi Marija,

    True, there are already many settings. And for me changing something in the database is not a problem, especially now that I know what to look for. :-)

    Thanks,
    Carsten

  • [deleted] replied

    Yes, because of the many settings there are in the back-end, we added some to the database. Glad to see that it worked for yousmile.png 

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