admin管理员组文章数量:1130349
I made custom attribute for variation other than size or colour, but when i apply as variation to this attribute its not showing on single page.
I made custom attribute for variation other than size or colour, but when i apply as variation to this attribute its not showing on single page.
- What was the name of your custom attribute? – Kamaal ABOOTHALIB Commented Jun 29, 2016 at 6:51
- Look at line 9 of your custom attribute, the error is there – Pieter Goosen Commented Jun 29, 2016 at 6:51
- Attribute name: Custom Box – Zarah Dewayne Commented Jun 29, 2016 at 6:52
- Ok did you fill all required fields properly for each variation? Such as price. – Kamaal ABOOTHALIB Commented Jun 29, 2016 at 6:54
- Yes prices are same but i fill each variation correctly.(I think) – Zarah Dewayne Commented Jun 29, 2016 at 6:56
1 Answer
Reset to default 26It's seems you have all variations same price. That's why it's not showing, it's a WooCommerce default behavior. You can change this WooCommerce default variable price filter with this hook.
add_filter('woocommerce_show_variation_price', function() { return TRUE;});
I made custom attribute for variation other than size or colour, but when i apply as variation to this attribute its not showing on single page.
I made custom attribute for variation other than size or colour, but when i apply as variation to this attribute its not showing on single page.
- What was the name of your custom attribute? – Kamaal ABOOTHALIB Commented Jun 29, 2016 at 6:51
- Look at line 9 of your custom attribute, the error is there – Pieter Goosen Commented Jun 29, 2016 at 6:51
- Attribute name: Custom Box – Zarah Dewayne Commented Jun 29, 2016 at 6:52
- Ok did you fill all required fields properly for each variation? Such as price. – Kamaal ABOOTHALIB Commented Jun 29, 2016 at 6:54
- Yes prices are same but i fill each variation correctly.(I think) – Zarah Dewayne Commented Jun 29, 2016 at 6:56
1 Answer
Reset to default 26It's seems you have all variations same price. That's why it's not showing, it's a WooCommerce default behavior. You can change this WooCommerce default variable price filter with this hook.
add_filter('woocommerce_show_variation_price', function() { return TRUE;});
本文标签: WooCommerce Variable Product Price not showing on single product page
版权声明:本文标题:WooCommerce Variable Product Price not showing on single product page 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749069553a2311362.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论