$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>WooCommerce Variable Product Price not showing on single product page|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

WooCommerce Variable Product Price not showing on single product page

matteradmin8PV0评论

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.

Share Improve this question edited Jun 29, 2016 at 7:00 Pieter Goosen 55.5k23 gold badges117 silver badges211 bronze badges asked Jun 29, 2016 at 6:49 Zarah DewayneZarah Dewayne 1411 gold badge1 silver badge4 bronze badges 5
  • 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
Add a comment  | 

1 Answer 1

Reset to default 26

It'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;});
Post a comment

comment list (0)

  1. No comments so far