Month: November 2024

Add WPML Language Switcher

User How to add WPML langauge switcher dropdown to front end Assistant To add a WPML (WordPress Multilingual Plugin) language switcher dropdown to your front end, follow these steps: — ### 1. **Use WPML's Built-In Widget** WPML provides a built-in widget for adding a language switcher. To use it: – Go to **Appearance > Widgets** […]

Add New Plugin Issue

User Config::define('DISALLOW_FILE_MODS', false); Not showing add new plugin option Assistant The issue is likely related to other WordPress configurations or permissions, despite setting `DISALLOW_FILE_MODS` to `false` in your `config/application.php` file. Here's a checklist to troubleshoot and resolve the issue: — ### 1. **Verify WordPress Permissions** Ensure the file and folder permissions are correctly set in […]

Cart count issue debugging

User In this I found that home page and acne category page has the provblemt in showing updated cart count at header Its very strange that when We pass query string on above pages then count works fine I’ve already cleared cache many times but these 2 pages still cached. Currently looking into it what […]

WooCommerce get_cart Error Fix

User [Sat Nov 16 09:30:39.551418 2024] [proxy_fcgi:error] [pid 3286076] [client 2a00:23c8:a1a:7501:15e5:6dd9:9e3:24b6:0] AH01071: Got error 'PHP message: get_cart was called incorrectly. Get basket should not be called before the wp_loaded action. Backtrace: require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Blocks\BlockTypesController->register_blocks, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->__construct, Automattic\WooCommerce\Blocks\BlockTypes\Cart->initialize, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->initialize, Automattic\WooCommerce\Blocks\BlockTypes\Cart->register_block_type_assets, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->register_block_type_assets, Automattic\WooCommerce\Blocks\Assets\Api->register_script, apply_filters('woocommerce_blocks_register_script_dependencies'), WP_Hook->apply_filters, Automattic\WooCommerce\Blocks\Payments\Api->add_payment_method_script_dependencies, Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry->get_all_active_paym…; PHP message: get_cart was called incorrectly. Get […]

WooCommerce Cart Error Fix

User [Sat Nov 16 09:30:39.551418 2024] [proxy_fcgi:error] [pid 3286076] [client 2a00:23c8:a1a:7501:15e5:6dd9:9e3:24b6:0] AH01071: Got error 'PHP message: get_cart was called incorrectly. Get basket should not be called before the wp_loaded action. Backtrace: require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Blocks\BlockTypesController->register_blocks, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->__construct, Automattic\WooCommerce\Blocks\BlockTypes\Cart->initialize, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->initialize, Automattic\WooCommerce\Blocks\BlockTypes\Cart->register_block_type_assets, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->register_block_type_assets, Automattic\WooCommerce\Blocks\Assets\Api->register_script, apply_filters('woocommerce_blocks_register_script_dependencies'), WP_Hook->apply_filters, Automattic\WooCommerce\Blocks\Payments\Api->add_payment_method_script_dependencies, Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry->get_all_active_paym…; PHP message: get_cart was called incorrectly. Get […]

WooCommerce get_cart Issue

User [Sat Nov 16 09:30:39.551418 2024] [proxy_fcgi:error] [pid 3286076] [client 2a00:23c8:a1a:7501:15e5:6dd9:9e3:24b6:0] AH01071: Got error 'PHP message: get_cart was called incorrectly. Get basket should not be called before the wp_loaded action. Backtrace: require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Blocks\BlockTypesController->register_blocks, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->__construct, Automattic\WooCommerce\Blocks\BlockTypes\Cart->initialize, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->initialize, Automattic\WooCommerce\Blocks\BlockTypes\Cart->register_block_type_assets, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->register_block_type_assets, Automattic\WooCommerce\Blocks\Assets\Api->register_script, apply_filters('woocommerce_blocks_register_script_dependencies'), WP_Hook->apply_filters, Automattic\WooCommerce\Blocks\Payments\Api->add_payment_method_script_dependencies, Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry->get_all_active_paym…; PHP message: get_cart was called incorrectly. Get […]

Disable WooCommerce Cart Caching

User Don't cached woocommerce freeman cart for number of items in cart at header icon Assistant To prevent caching of the WooCommerce cart item count in the header, you need to ensure that the cart data is dynamically updated and excluded from caching. Here’s how to achieve this: ### Steps to Exclude Cart Data from […]

Cart Count Cache Issue

User WC()->cart->get_cart_contents_count() This is showing cached count on some pages Assistant When you're using caching plugins like WP Super Cache or W3Speedster, the cart count may be cached, leading to outdated values being displayed on some pages. Here are a few ways to ensure that the cart count is dynamically updated and not served from […]

Active Year Span Effect

User let currentIndex = 0; const slides = $('.timeline-slide'); const totalSlides = slides.length; const progressBarFill = $('.timeline-progress-fill'); const yearSpans = $('.timeline_year_bar span'); const prevButton = $('.prev-slide'); const nextButton = $('.next-slide'); function showSlide(index) { if (index >= 0 && index < totalSlides) { $('.timeline-slider').css('transform', 'translateX(' + (-index * 100) + '%)'); currentIndex = index; updateYearBar(); updateProgressBar(); […]

Cart count update fix

User woocommerce_add_to_cart_fragments Count not correct on some pages header It's needs to pass query string in url to reflect correct value Assistant If the cart count in your WooCommerce store's header isn't updating correctly on some pages and requires a query string to reflect the correct value, the issue might lie in how `woocommerce_add_to_cart_fragments` updates […]