Home Forums Basel support forum Moving Coupon Code Form and Login Form

Moving Coupon Code Form and Login Form

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #115057

    miguel1876
    Participant

    Hi there.

    I am trying to create a “distraction free” checkout page (somewhat similar to Shopify). I have been able to accomplish most of what I want, however I need help moving the Account Login Form and the Coupon Code Form.

    The Account Login Form should go directly above the Billing Address column and the Coupon Code Form should go in the order review column.

    I was able to move the Coupon form by adding this code to functions.php

    //Remove Checkout Coupon. It is re-added via review-order.php
    remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );
    

    Then adding this code to the review-order.php file:

    <tr class="coupon_checkout">
     
     <td colspan="2" class="coupon-td">
     
     <?php
     if ( ! defined( 'ABSPATH' ) ) {
     exit; // Exit if accessed directly
     }
    
     if ( ! wc_coupons_enabled() ) {
     return;
     }
    
     ?>
     <form class="checkout_coupon" method="post" style="display:block !important">
    
     <p class="form-row form-row-first">
     <input type="text" name="coupon_code" class="input-text" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" id="coupon_code" value="" />
     </p>
    
     <p class="form-row form-row-last">
     <input type="submit" class="button" name="apply_coupon" value="<?php esc_attr_e( 'Apply Coupon', 'woocommerce' ); ?>" />
     </p>
     </form>
     </td>
     </tr>
    

    The coupon form is moved, however it does’t work.. meaning that the page refreshes instead of using Ajax, and it doesn’t accept any coupons.

    Can you kindly help with this?

    (Page URL is provided bellow.)

    Thank you so much.

    #115085

    Hello,

    Check out page is the Woocommerce template and we do not support Woocomerce you will have to hire a developer who would customize the checkout as per your needs.

    Best Regards

    #115089

    miguel1876
    Participant

    Wow really?? I am well aware that the checkout page is default woocommerce, but you include a custom checkout file in the Theme.
    Also, you have helped with small customizations in the past… but I guess things have changed and you don’t support your customers anymore. I have purchased 7 Basel licenses for my clients, mostly because of the good support. I won’t be buying it anymore.

    #115114

    Hello,

    We do appreciate you as our regular customer. Yes, we often provide CSS code if the issue requires a minor change. Moreover, we can even suggest PHP or JS code if we have a quick solution. At the same time, the modification you need requires complicated customization. Our developers will look into your code however I cannot guarantee 100% we shall provide the solution. Hope for understanding and long-termed cooperation.

    Best Regards

    #115328

    miguel1876
    Participant

    I see

    #115377

    Artem Temos
    Keymaster

    Sorry, but we don’t have an idea of how to make the coupon work there. It may need additional customization in WooCommerce scripts as well.

Viewing 6 posts - 1 through 6 (of 6 total)