WooCommerce second place for price

  • Hi all,

    I want to show the product price on the product page near to the Button add to card. I think it’s possible with a hook. I can place a text but don’t find the right shortcode for the price.

    I work with GP Premium and GP Blocks Pro and Germanized Pro.

    Have anyone an idea how it can works?

    Thanks in advance 🙂

  • Hello,

    The cleanest way to do this is with a GP Hook Element:

    • Hook: woocommerce_before_add_to_cart_button (or woocommerce_after_add_to_cart_button if you’d prefer it below the button)
    • Execute PHP: On
    • Display rules: Product -> All Products

    Content:

    <?php woocommerce_template_single_price(); ?>

    This outputs the standard WooCommerce price including sale prices and variable product ranges, and should respect Germanized’s tax and unit price formatting as well.

  • Hello and Thanks,

    now it shows the price “from – to (100€ – 200€)” but it don’t change if you use the variation of the product.

    regards Benno

  • Hello,

    The dynamic price update when selecting a variation is handled by WooCommerce’s built-in JavaScript, and getting a duplicated price element to respond to that falls outside the scope of our support.

    For this, I’d recommend checking the WooCommerce documentation or reaching out to the WooCommerce support team — they’ll be best placed to help with variable product price behaviour.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.