Tùy biến slider ảnh thu nhỏ chi tiết sản phẩm
https://stackoverflow.com/questions/46353307/navigation-arrows-in-woocommerce-3-x-product-gallery-slider/46448407#46448407
https://stackoverflow.com/questions/46353307/navigation-arrows-in-woocommerce-3-x-product-gallery-slider/46448407#46448407
Đôi khi import sản phẩm từ web cũ xang web mới sẽ bị tình trạng không hiển thị đánh giá, comment. Cách khắc phục như hình
if ( ! function_exists( ‘woocommerce_template_loop_product_title’ ) ) { /** * Show the product title in the product loop. By default this is an H2. */ function woocommerce_template_loop_product_title() {…
Xóa nút Add to cart trong WooCommerce
Thêm hàm sau vào function add_filter( ‘show_admin_bar’, ‘__return_false’ );
function default_comments_on( $data ) { if( $data[‘post_type’] == ‘your_custom_post_name’ ) { $data[‘comment_status’] = 1; } return $data; } add_filter( ‘wp_insert_post_data’, ‘default_comments_on’ );
# BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.3] <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTPS} !=on [NC] RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] </IfModule> # END rlrssslReallySimpleSSL
– Do nhiều lý do khi import bài viết, sản phẩm phần ảnh không import được xang. Sau đây mình hướng dẫn import bằng plugin: https://wordpress.org/plugins/media-from-ftp/ 1. Up…
Thêm đoạn sau vào file functions.php define(‘ALLOW_UNFILTERED_UPLOADS’, true); Chú ý khi import xong nhớ xóa dòng này đi để website bảo mật hơn Tham khảo: https://www.hostinger.vn/huong-dan/sua-loi-wordpress-sorry-file-type-not-permitted-security-reasons/ http://phuoc.orishop.net/wordpress/plugin/woocommerce/sua-loi-khong-the-import-san-pham-bang-file-csv-tren-woocommerce/
/* ** Cắt ảnh chi tiết sản phẩm */ add_filter( 'woocommerce_get_image_size_single', function( $size ) { return array( 'width' => 500, 'height' => 500, 'crop' => 1, ); }…