Dear SiteOrigin Team,
In the North Theme, Coupons do Not work properly, but do work fine at Checkout.
I did identify a code change that will allow it to work … but I’m sure it is not all the code that needs to be change, but does identify the area of the problem.
In the Cart – It does Not Work
At Checkout – It Does Work
Orignal code in “cart.php”
Original cart.php ========================= <?php if ( wc_coupons_enabled() ) { ?> <div class="coupon"> <label for="coupon_code"><?php _e( 'Coupon', 'siteorigin-north' ); ?>:</label> <input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="<?php esc_attr_e( 'Coupon code', 'siteorigin-north' ); ?>" /> === orig ===> <button type="submit" class="button" name="apply_coupon"><?php esc_attr_e( 'Apply Coupon', 'siteorigin-north' ); ?></button> <?php do_action( 'woocommerce_cart_coupon' ); ?> </div> <?php } ?>
Changed code in “cart.php” – only change “button” to “input”
Modified cart.php ========================= <?php if ( wc_coupons_enabled() ) { ?> <div class="coupon"> <label for="coupon_code"><?php _e( 'Coupon', 'siteorigin-north' ); ?>:</label> <input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="<?php esc_attr_e( 'Coupon code', 'siteorigin-north' ); ?>" /> === chng ===> <input type="submit" class="button" name="apply_coupon"><?php esc_attr_e( 'Apply Coupon', 'siteorigin-north' ); ?></button> <?php do_action( 'woocommerce_cart_coupon' ); ?> </div> <?php } ?>
Thank you for your help!
Hi Justin,
Thanks for letting us know about this. I’ve logged this as a potential bug in our issue tracker. We’ll investigate this as soon as possible and try come up with a fix.
Thanks Alex for your reply & investigation!
I was waiting for this thread to get approved to add ……..
Additional problems with North Theme CART Page ….
I compared “North Theme” -to- WooThemes “Storefront Theme” for a functionality test.
Also not working in North Theme CART Page:
> UPDATE CART Button not working – Ex. changing a quantity just gets reset back to 1 vs. updating totals.
> CONTINUE SHOPPING Button not working – I assume it is suppose to bring us to the STORE page, but does not.
I believe both of these have to do with the button coding.
Thank you & I really like the North Theme!!!
Hi Justin,
Thank you for the kind words! :)
The continue shopping page relies on the shop page being set in WooCommerce. To check this please navigate to WP AdminWooCommerceSettings and then select the Productstab and then the Display settings group. Ensure the shop page is set.
I’m unable to replicate the quality issue you’re having with update cart. Just to clarify, do you have any other plugins enabled outside of WooCommerce (and ours)? Does this issue continue to occur when those plugins are disabled?
UPDATE … I just updated North Theme to version 1.2.1 (came out today).
Now CONTINUE SHOPPING (this was set correctly in Products > Display the whole time) & UPDATE CART work properly! I can also see changes in cart.php in that part of the code.
Only thing that is not working now in the Cart is “APPLY COUPON” … the Coupon works in Checkout, but nothing happens with APPLY COUPON button in the CART!
Thank You!
Hi Justin,
Ah, right. That explains it – I was testing on the latest version.
The cart issue is resolved in the development build but it won’t be released officially yet due to WordPress theme processing etc.
Great, Thank you!