WoodMartW
WoodMart
15h ago

Show product price above cart button

I am using this to show variation price of products above add to cart..... // Show product price above cart button add_filter(‘woocommerce_show_variation_price’, ‘__return_true’); note : theme settings must be Price Hide "to" price - OFF Remove duplicate price for variable product - ON try this in older version before 8.6 it give very good look of price on variation product page below title also and above add to cart button also But after version 8.6.1 this code is stop working please add this as a feature showing dynamic price not only below when Price setting in theme is set to off Remove duplicate price for variable product - OFF as that's not what I want only showing dynamic price at bottom only not on above below product title my store demands both and I have some how using this code to achieve it but its not working after recent update earlier I am using this from 2 years easily add this as a feature must needed ASAP why i need this as because my store has big content to display in product short description that's why i need dynamic price display on top and bottom not just freeze on top and dynamic on bottom .
PendingPending

12 hours ago

Hello. Thanks for the report. Let me explain what changed and why. The block that shows the price above the add-to-cart button isn't always just a price. WooCommerce lets plugins put their own text in there, and many do. WooCommerce Subscriptions adds the billing period, the sign-up fee and the trial details. The Germanized plugin adds the price per unit, which is legally required for stores in the EU. Deposit and price-calculator plugins do something similar. Until 8.6.0, our "Remove duplicate price for variable product" option hid that whole block. So on a store using any of those plugins, the option didn't just remove the duplicated price. It also removed information the store was required to show, and customers never saw it. In other cases that text was moved up next to the product title, where it didn't belong and broke the layout. This is something we kept hearing from customers, and 8.6.0 is our fix for it. Since 8.6.0 the option removes only the duplicated price and leaves anything a plugin adds exactly where the plugin put it. That is the behaviour we are keeping, because changing it back would bring those problems back for everyone else. One thing worth clarifying. Hiding the price above the add-to-cart button is exactly what that option is for, and it worked that way before 8.6 as well. On a store without plugins that change the price markup, 8.6 didn't change what you see there. Your request for a built-in option to show the dynamic price in both positions is noted and it stays on the board, so other users can vote for it. We can't say at this point whether or when it will be implemented. We will take a look at it when we plan the next releases. Kind Regards