Category

Woocommerce

10 articles in this category

Show mô tả ngắn biến thể sản phẩm trong Woocommerce

26 Tháng 2, 2023 3 min read

<?php // Display variations dropdowns on shop page for variable products add_filter( 'woocommerce_loop_add_to_cart_link', 'woo_display_variation_dropdown_on_shop_page' ); function woo_display_variation_dropdown_on_shop_page() { global $product; if( $product->is_type( 'variable' )) { $attribute_keys = array_keys(…

Add theme hỗ trợ Woocommerce không bị lỗi khi update

28 Tháng 2, 2020 1 min read

add_action( 'after_setup_theme', 'setup_woocommerce_support' ); function setup_woocommerce_support() { add_theme_support('woocommerce'); } Nguồn: https://wordpress.stackexchange.com/questions/90199/how-to-declare-woocommerce-support-in-your-theme Hoặc đoạn đầy đủ dưới: // add theme suport WooCommerce function akasa_theme_setup() { // WooCommerce in general.…

Bật comment cho Woocommerce

26 Tháng 11, 2019 1 min read

Đô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

Khắc phục lỗi khi import sản phẩm woocommerce

27 Tháng 6, 2019 1 min read

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/