variable to insert regular product price ?

#128920
  • Resolved Jens
    Rank Math free

    hi guys, i want to setup single product title like this %customterm(product_cat)% %sep% %title% for %wc_price% instead %wc_regular_price%

    %wc_price% shows the regular price – i dont know if %wc_regular_price% is the correct variable for the regular price but the regular price dont show up.

    also i would be interrested what variable displays the time when the product was posted.

    thx

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for getting in touch with us.

    The variable %wc_price% is activated in Rank math product variables when WooCommerce is activated. T get the regular price, you may have to create your own variable and add it to the titles and meta variables using this filter: https://rankmath.com/kb/filters-hooks-api-developer/#add-extra-variables.

    There’s currently a variable that shows the date published: %date%. You can use the same filter I have suggested to have a variable to get the published time.

    Hope this helps you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘variable to insert regular product price ?’ is closed to new replies.