Answer the question in April weeks 3/2015 of Wujiang you he asked how to Add Custom Field and Show it off
Woocomrce Cart page Vu asked: as the title, is a place he's entangled more Custom Field for the product, it show off the product but I want it to show plainly the page of woocommerce won't add to cart , I added your cart.php page woocommerce. For example his products here: (Intermittent ton Brocade Cotton CLOTHING BIN BIN) it has a number of ri is 8. I want to show it off to get that price at cart page divided by 8 is shared out price 1 product. Cart CLOTHING BIN BINBạn would help her this piece with, I use the custom field. Thanks
to answer questions on forums:
thachpham use the function $giatri = get_post_meta ($product _ id, key_cua_ban_trong_custom_field, true); You have something you want to do and then j $giatri it also dc explains: 1. $product _ id retrieved in code in the cart page of woo, must put the code underneath line $product _ id = apply_filters (woocommerce_cart_item_product_id, $cart _ item [product_id], $cart _ $cart, _ item item_key); 2. key_cua_ban_trong_custom_field this is your winning key inside, I don't know
If you have any other suggestions please feel free to comment below, we'll respond. So thank you for your interest in the article. Wish you Learn WordPress!
wordpress-mobile-app-plugin
Nhận xét
Đăng nhận xét