Szükséges plugin-ek
Woocommerce (wordpress.org)
Mit szeretnénk?
tabró mutatja az attribútumokat
- Feltételes űrlapmezők logikai összekapcsolással
This is just like Example 2, but with added CSS selectors for easy styling. Another difference is that this is output in an HTML unordered list.
1 2 3 4 5 6 |
//show attributes after summary in product single view add_action('woocommerce_single_product_summary', function() { //template for this is in storefront-child/woocommerce/single-product/product-attributes.php global $product; echo $product->list_attributes(); }, 25); |