How to add a prefix "de la" in front of the price in Sp properties? - Forum | JoomShaper
Solved Extensions

How to add a prefix "de la" in front of the price in Sp properties?

Asked by mircea 1 year ago Last activity 1 year ago

Hello,
I need to add a prefix before the prices in Sp Properties . In English is "from" , in Romanian language is "de la".

Can you help me?

Thank you very much!

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

In those two files (from component folder "components\com_spproperty")

  • \layouts\properties\price_detail.php
  • \layouts\properties\price_card.php

5 more replies

Toufiq Senior Staff

Hi there,

Thank you for reaching out. Can you share a screenshot that you want to do exactly? I appreciate your cooperation and will ensure to get back to you as soon as possible.

Best regards,

Toufiqur Rahman (Team Lead, Support)

Paul Frankowski Senior Staff
1 year ago · edited

Hi,

Sp Properties - uses languages file (en-GB\en-GB.com_spproperty.ini) you should be able to translate most of phrases.

If that is not a language phrase but extra wish, you can add it using Custom CSS

Do you thought about that?

info_2712_2025.gif

If yes, that Custom CSS is needed

.spproperty-per-sft::before {content: "de La"; padding-right: 5px;}

mircea Asked this

Hi, dear Paul,
yes, mainly this is what I want, but for selling properties.
I added custom CSS as you said, but now I have another problem:
.spproperty-per-sft::before {
content: "de la";
padding-right: 5px;
}
.spproperty-total-price::before {
content: "de la";
padding-right: 5px;
}
.property-price::before
{
content: "de la";
padding-right: 5px;
}

In the list properties, "de la" is showing for all the properties(as normal).
https://prnt.sc/bxrsO1n0W8lv
I think this is not a exactly a solution.
Maybe if you add a condition just for properties with price, it will be fine.
And, maybe you will add a suffix after the price- "Fara TVA" (- VAT in english).
Eg in romanian language: de la 4600 € (Fara TVA).
Can you help me to solve this problem?

Paul Frankowski Senior Staff
1 year ago · edited

In that case you need small php customization. We cannot provide that, so you have to ask local php joomla developer.

About 2nd one "Fara TVA", you can use:

.spproperty-per-sft::after  {...} 
.spproperty-total-price::after  { ...}
.property-price::after {...} 
mircea Asked this

Ok, I will do that small php customization but can you tell me, at list, only the php page that I have to modify?
Thanks

mircea Asked this

Thank you very much!

Log in to reply.