Month: January 2025

jQuery Scroll Header Script

User jQuery(document).ready(function ($) { let lastScrollTop = 0; $(window).scroll(function () { const currentScroll = $(this).scrollTop(); if (currentScroll > lastScrollTop) { // alert($(this).scrollTop()); // Scrolling down $('#header-light').css({'background':"#225BC0",'border':'none'}); $('.scroll-logo img').attr('src',"/app/uploads/2024/12/SolarOn-Logo-weiss.svg"); $('.scroll-menu.elementor-widget-nav-menu .elementor-nav-menu–main .elementor-item').addClass("elementor-item-white"); // $('#scroll-header-dark').css('display',"flex"); $(".scroll-button .elementor-button").addClass('elementor-button-secondary-darkbg'); $(".elementor-menu-toggle").addClass('elementor-menu-toggle-scrolldown'); } else { if (currentScroll === 0) { // Scrolling up // $('#header-light').css('display',"flex"); $('#header-light').css('background',"#ffffff"); $('.scroll-logo img').attr('src',"/app/uploads/2024/12/SolarOn-Logo.svg"); $('.scroll-menu.elementor-widget-nav-menu .elementor-nav-menu–main .elementor-item').removeClass("elementor-item-white"); […]

Order Data Import Issues

User Currently we are unable to import all order data , just able to import partially some records at our demo server. We are trying to import all database Correct above sentence Assistant Here’s a corrected version of your sentence: "We are currently unable to import all order data and can only import some records […]

Make WindSurf Global Ubuntu

User Windsurf-linux-x64-1.2.1.tar.gz we have installed the above scripts but we can only run it from Windsurf folder from windsurf file Make it global that can run from anywhere in ubuntu Assistant To make the `windsurf` script executable globally on your Ubuntu system, you need to add its executable file to a directory included in your […]

Install Windsurf on Ubuntu

User install Windsurf-linux-x64-1.2.1.tar.gz file in ubuntu Assistant To install the `Windsurf-linux-x64-1.2.1.tar.gz` file on Ubuntu, follow these steps: ### 1. **Navigate to the directory** Open a terminal and navigate to the directory containing the `.tar.gz` file: cd /path/to/Windsurf-linux-x64-1.2.1.tar.gz ### 2. **Extract the file** Use the `tar` command to extract the `.tar.gz` file: tar -xvzf Windsurf-linux-x64-1.2.1.tar.gz This […]

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: […]