Percent price near sale price

TOm1212312

New Member
Hello, i want to have a percent price next to the sale price on my product page.
I use Flatsome. I need some php-hook-code to solve the issue. (sorry my english is very bad)
 

TOm1212312

New Member
ja genau das suche ich, leider hat dieser Php-hook-code in meinem woocommerce nicht funktioniert. Benutze Snippet, um es hinzu zu fügen
Unbenannt.png
 
Last edited:

TOm1212312

New Member
Folgender Fehler entsteht:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function change_displayed_sale_price_html(), 1 passed in /www/htdocs/w017acbc/fashion-in-type.de/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /www/htdocs/w017acbc/fashion-in-type.de/wp-content/plugins/code-snippets/php/snippet-ops.php(352) : eval()'d code:3 Stack trace: #0 /www/htdocs/w017acbc/fashion-in-type.de/wp-includes/class-wp-hook.php(286): change_displayed_sale_price_html('') #1 /www/htdocs/w017acbc/fashion-in-type.de/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #2 /www/htdocs/w017acbc/fashion-in-type.de/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /www/htdocs/w017acbc/fashion-in-type.de/wp-content/themes/flatsome/inc/shortcodes/custom-product.php(97): do_action('flatsome_custom...') #4 /www/htdocs/w017acbc/fashion-in-type.de/wp-includes/shortcodes.php(319): {closure}(Array, '', 'ux_product_hook') #5 [internal function]: do_shortcode_tag(Array) #6 /www/htdocs/w017acbc/fashion-in-type.de/wp-in in /www/htdocs/w017acbc/fashion-in-type.de/wp-content/plugins/code-snippets/php/snippet-ops.php(352) : eval()'d code on line 3
 
Top