Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 15d 07h 20m 49s
Claim 50% off
Solved SP Page Builder

show discount using dynamic content just like in pricelist element , help

Asked by NiroC 1 year ago Last activity 1 year ago

hi

i have created a dynamic collection for my items and in it, i have one custom field for PRICE and one custom field for DISCOUNTED PRICE.

and in my DYNAMIC DETAIL PAGE, i want to show the customer discount just like we show it in pricelist.(below photo, cut normal price and show discounted price)
https://prnt.sc/Pv90eYaotUdG

to do something like this using dynamic content possible or?

if possible, kindly please tell me the steps.

thanks

Accepted answer

Marked as the solution
Ziaul Kabir Staff

Hello NiroC,

Thank you for reaching out to us.

Currently, there isn’t a built-in option to do this directly. However, you can achieve it using custom fields as you did. Here’s how:

  1. Add values to your custom fields — one for the original price and another for the discounted price — when creating items.
  2. On your details page, add a div block and insert dynamic text twice: once for the original price and once for the discounted price.
  3. Apply custom CSS to the original price, such as a line-through, so that the discounted price appears as the current price.

This way, both the original and discounted prices will display correctly.

Thanks,

1 more reply

NiroC Asked this

ok thanks

Log in to reply.