Is it possible to apply a custom style or to show a product-specific custom regular price message? If yes, how to do it.

  • There exists a hook ‘wdm_csp_regular_price_html’ with which you can change the style of the regular price & regular price text or can add a product-specific custom pricing text.
  • You are supposed to return HTML string to be displayed on the product page.
  • Following will be the parameters accessible to you.
    • regularPriceHtml – Default HTML for the price text
    • regularPriceText – Text to be displayed in front of the price
    • regularPrice – Initial regular price
    • productId – Id of the product.
Updated on January 9, 2020

Was this article helpful?

Related Articles