Blog

WooCommerce Order Status Customization

User add_action( 'woocommerce_order_status_dispensing', 'woocommerce_completed_order_invoice_date_issued' ); function woocommerce_completed_order_invoice_date_issued( $order_id ) { global $wpdb,$woocommerce; $order = new WC_Order( $order_id ); $order_status = is_callable( array( $order, 'get_status' ) ) ? $order->get_status() : $order->order_status; if ( $order_status == 'dispensing' ) { update_post_meta( $order_id,'_dispensed_date',date("Y-m-d")); } } add_action( 'admin_action_mark_dispensing', 'bulk_process_dispensing_status' ); function bulk_process_dispensing_status() { if( !isset( $_REQUEST['post'] ) && !is_array( $_REQUEST['post'] […]

PHP Error Reporting Setup

User ini_set('error_reporting', E_ALL ); Assistant The `ini_set('error_reporting', E_ALL);` function in PHP is used to set the error reporting level to report all types of errors, including warnings, notices, and fatal errors. This can be particularly useful during development to ensure you are aware of all issues that may arise in your code. Here’s how you […]

Cloudflare Timeout Troubleshooting WordPress

User cloudflare timeout occured when changing order status via wpadmin wordpress Assistant A Cloudflare timeout when changing order statuses in the WordPress admin area can occur for several reasons. Here are some steps you can take to troubleshoot and resolve the issue: 1. **Check Cloudflare Settings**: – **Caching**: Ensure that you are not caching dynamic […]

Swiper Autoplay Issue Fix

User var swiper = new Swiper(".swiperslides", { slidesPerView: 3, spaceBetween: 30, loop: true, speed: 8000, autoplay: { delay:0,// Set a short delay for better autoplay handling disableOnInteraction: true, pauseOnMouseEnter:true, }, on: { beforeInit: function (swiper) { swiper.wrapperEl.style.transitionTimingFunction = "linear"; }, slideChangeTransitionEnd: function () { swiper.autoplay.start(); // Ensure autoplay continues }, }, breakpoints: { 0: { […]

Swiper Autoplay Control

User var swiper = new Swiper(".swiperslides", { slidesPerView: 3, spaceBetween: 30, loop: true, speed: 8000, autoplay: { delay:0,// Set a short delay for better autoplay handling disableOnInteraction: true, pauseOnMouseEnter:true, }, on: { beforeInit: function (swiper) { swiper.wrapperEl.style.transitionTimingFunction = "linear"; }, slideChangeTransitionEnd: function () { swiper.autoplay.start(); // Ensure autoplay continues }, }, breakpoints: { 0: { […]

Swiper Autoplay Pause on Hover

User var swiper = new Swiper(".swiperslides", { slidesPerView: 3, spaceBetween: 30, loop: true, speed: 8000, autoplay: { delay:0,// Set a short delay for better autoplay handling disableOnInteraction: true, }, on: { beforeInit: function (swiper) { swiper.wrapperEl.style.transitionTimingFunction = "linear"; }, slideChangeTransitionEnd: function () { swiper.autoplay.start(); // Ensure autoplay continues }, }, breakpoints: { 0: { slidesPerView: […]

Swiper Continuous Looping Issue

User var swiper = new Swiper(".swiperslides", { slidesPerView: 3, spaceBetween: 30, loop: true, // Enable infinite looping speed: 8000, // Speed of the continuous scroll allowTouchMove: false, // Disable manual swiping loopAdditionalSlides: 5, // Prevent gaps during looping autoplay: { delay: 0, // No delay between movements }, on: { beforeInit: function (swiper) { swiper.wrapperEl.style.transitionTimingFunction […]

Continuous Swiper Autoplay Setup

User var swiper = new Swiper(".swiperslides", { slidesPerView:3, spaceBetween: 30, loop: true, // Enable infinite looping autoplay: { delay: 1, pauseOnMouseEnter: true, }, pagination: false, speed: 8000, breakpoints: { 0: { slidesPerView: 1.2, spaceBetween: 10, }, 1024: { slidesPerView: 3, spaceBetween: 30, } } }); make above continous moving without any pause Assistant To make […]

Continuous Scrolling Swiper Setup

User var swiper = new Swiper(".swiperslides", { slidesPerView:3, spaceBetween: 30, loop: true, // Enable infinite looping autoplay: { delay: 0, pauseOnMouseEnter: true, disableOnInteraction:false, }, pagination: false, speed: 8000, breakpoints: { 0: { slidesPerView: 1.2, spaceBetween: 10, }, 1024: { slidesPerView: 3, spaceBetween: 30, } } }); make above continous scrolling Assistant To make your Swiper […]

Continuous Scrolling Setup

User var swiper = new Swiper(".swiperslides", { slidesPerView: 3, spaceBetween: 30, loop: true, // Enable infinite looping speed: 8000, // Speed of the continuous scroll allowTouchMove: false, // Disable manual swiping loopAdditionalSlides: 35, // Prevent gaps during looping autoplay: { delay: 0, // No delay between movements disableOnInteraction: false, // Keep scrolling even after interaction […]