by admin | Aug 31, 2023 | Wordpress
If the hosting server has invalid or expired SSL and SSL is set to flexible/full in cloudflare, it is going to cause a redirect loop. The fix is to add below code in wp-config.php file. $_SERVER[‘HTTPS’] = ‘on’;
by admin | Jun 20, 2023 | Wordpress
add_action(‘woocommerce_checkout_update_order_review’, ‘gabrics_update_shipping_plans’, 10, 1); function gabrics_update_shipping_plans( $post_data ) { $packages = WC()->cart->get_shipping_packages(); foreach ($packages as $package_key =>...
by admin | Dec 12, 2021 | Wordpress
If you have multiple attributes in a woocommerce variable product then you probably have noticed that by default it will not show variation product image unless you select all the attributes. This is some time not what you want specially if the first attribute is...
by admin | Dec 12, 2021 | Wordpress
If you ever want to show products which a customer ordered right on “Orders” page within WordPress/Woocommerce dashboard then you are at right place. Here is a little snippet which you can add in functions.php file of your theme or your custom plugin. This...
by admin | Aug 27, 2020 | Wordpress
By default woocommerce shortcodes doesn’t have the option to hide out of stock products. You can hide out of stocks products globally from Woocommerce settings but there is no option to hide/show it using product shortcodes for a single page etc. Below is a...
by admin | Feb 20, 2020 | Wordpress
Use below code in functions.php or in your custom plugin add_filter( 'woocommerce_get_image_size_thumbnail', 'ci_theme_override_woocommerce_image_size_thumbnail' ); function ci_theme_override_woocommerce_image_size_thumbnail( $size ) { // Catalog images: specific size...
Recent Comments