Okay
  Public Ticket #2565534
Woocommerce integration questions
Closed

Comments

  • Pankaj SAINI started the conversation

    Hi !

    As my main payment system, I'm using Woocommerce. I have a couple of questions in this regard :

    1. Is there any way to direct the client directly to the checkout page instead of to the cart page ?

    2. Is there any way to remove the "coupon" field in Amelia reservation form (as with Woocommerce's coupon system, that makes it confusing for the client - and the woocommerce coupon system helps me with other products). 

    3. Is there any way for the client to reserve multiple events in one go? For the moment, if the client reserves another event (class in my case), the first class is removed from his cart. (PS: I'm using a single woocommerce product for all classes)

    Regards,

    Pankaj Saini

  • [deleted] replied

    Hello Pankaj,

    Apologies for replying a bit later, we don't work on weekends.

    1. We added this recently as an option, but it needs to be changed in your database.

    When you access your database you need to find and open the wp-options table (it can have another prefix rather than wp_ 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 checkout for the 'page' property instead of cart, like here: 

     "wc": {
            "onSiteIfFree": false,
            "page": "checkout"
    }
    

    2. There isn't an option to remove Coupons, but this part can be hidden on the front-end with adding some custom CSS. If needed, send me the URL where you have Amelia shorcode on and I will help out with the CSS.

    3. There isn't a possibility for that in Amelia with its current built-in features, unfortunately. Only one event can be booked and payed for at a time in Amelia, it isn't possible to book/pay multiple events at once. 

  • Pankaj SAINI replied

    Thank you Marija!

    I still haven't managed to find the "wc" table (the database is huge!!!, but I'll keep looking).

    This is the URL where Amelia schedule is shown : https://yogalaboratorium.com/cours-de-yoga/

    Thanks a ton for your help

    Regards,

    Pankaj

  • [deleted] replied

    You are welcome, Pankaj.

    There isn't a wc table in the database - you need to find and open the wp-options table (it can have another prefix rather than wp_ depending on your database) and then find in it the option amelia_settings and you need to edit this option. Inside this option (in the JSON) you will find wc and this:

     "wc": {
            "onSiteIfFree": false,
            "page": "checkout"
    }

    For hiding the Discount and the Coupon part please try adding this format HTML to the page where you have Amelia: 

    <style>
    #am-confirm-booking > div:nth-child(1) > form > div:nth-child(3) > div > div > div:nth-child(3) {display:none !important;}
    .am-add-coupon.am-flex-row-middle-align.el-row {display:none !important;}
    </style>

    and let me know if it helped.

  • Pankaj SAINI replied

    Thank you Marija

    I finally found it !

    Have a great day !

  • [deleted] replied

    You are welcome, Pankaj.

    Glad to see that, thank you for letting me know.

    Thank you, have a great one as well!

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