WoodMartW
WoodMart
Oct 26

BUY NOW Button Causing Product Page Issues

It was observed that buy Now button was causing various off and on issues related to product page; some product pages were not loading fine while others were. We have fond its fix; here it is, for your review: /wp-content/themes/woodmart/inc/modules/quick-buy/class-main.php FIND: if ( woodmart_get_opt( 'buy_now_enabled' ) ) { Quick_Buy::get_instance()->output_quick_buy_button(); } REPLACE: if ( woodmart_get_opt( 'buy_now_enabled' ) ) { if ( class_exists( '\XTS\Modules\Quick_Buy\Main' ) ) { $quick_buy_class = '\XTS\Modules\Quick_Buy\Main'; // Try any available instance method if ( method_exists( $quick_buy_class, 'get_instance' ) ) { $quick_buy = $quick_buy_class::get_instance(); } elseif ( method_exists( $quick_buy_class, 'get_main_instance' ) ) { $quick_buy = $quick_buy_class::get_main_instance(); } elseif ( method_exists( $quick_buy_class, 'instance' ) ) { $quick_buy = $quick_buy_class::instance(); } else { $quick_buy = null; } // If valid instance and callable if ( $quick_buy && method_exists( $quick_buy, 'output_quick_buy_button' ) ) { $quick_buy->output_quick_buy_button(); } } } This is an adhoc bugfix, i am sure authors will be able to do it in a quicker manner and more optimized one
ClosedClosed

Oct 28, 2025

Hello, Thank you for reaching out to us with your question. We appreciate that you use our theme and are happy to help you in any way we can. To ensure that we are able to provide you with the best support possible, we encourage you to create a new topic on our support forum with your question or issue. Our support team actively monitors the forum and will be able to provide you with a prompt and thorough response. To create a new topic on our support forum, please follow these steps: 1. Visit https://xtemos.com/forums/forum/woodmart-premium-template/ and sign in with your account. 2. Click on the “Create New Topic” button and provide a descriptive title and detailed description of your question or issue. 3. Click “Submit” to post your question. Once you have posted your question on the support forum, our team will review it and provide a response as soon as possible. Thank you for your cooperation, and we look forward to hearing from you on the support forum. Best regards