我试图在WooCommerce中列出所有属性(填不填)。使用此代码:
//show attributes after summary in productsingle view add_action('woocommerce_single_product_summary', function() { //template for this is in storefront-child
我使用的是woocommerce version 2.3.13,我想改变woocommerce messages的位置,比如“产品成功地添加到购物车”,当我点击“添加到购物车”按钮时,它会出现在产品页面的顶部我已经厌倦了许多解决方案,包括通过删除“”钩子上的“woocommerce_show_messages”来实现的我忘记提到,我使用的是店面主题和使用自定义模板的单一产品。
默认情
假设我的项目中有如下文件结构(取自文档):--core--feature2那么,我应该把如下内容放在哪里:- communicates.component (component which is responsible for content of communicates on my page)- and for example f
如果变量产品具有相同的变量价格,则there is a duplication of the status "In stock",如下所示:add_action( 'woocommerce_before_single_product$post; if ( $product->is_type( 'variable' ) ) {/&