Home › Forums › Basel support forum › Moving Coupon Code Form and Login Form
Moving Coupon Code Form and Login Form
- This topic has 5 replies, 3 voices, and was last updated 5 years, 8 months ago by Artem Temos.
-
AuthorPosts
-
March 26, 2019 at 4:19 pm #115057
miguel1876ParticipantHi 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.
March 26, 2019 at 5:21 pm #115085
Elise NoromitMemberHello,
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
March 26, 2019 at 5:37 pm #115089
miguel1876ParticipantWow 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.March 26, 2019 at 8:09 pm #115114
Elise NoromitMemberHello,
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
March 27, 2019 at 4:27 pm #115328
miguel1876ParticipantI see
March 27, 2019 at 8:56 pm #115377
Artem TemosKeymasterSorry, 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.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register