How to have conditional fields in item view

More
9 years 6 months ago #54170 by mcampos
i have one kind of item that have 2 prices:
- Base price
- Promotion Price

what i need to do is as follow:
if item only have base price - it shows base price
if item has both - it shows the base price crossed out and the promotion price

anyone can help me ??

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #54177 by micker
You need to créateur an light PHP fonction In your template
Ex if yourpromotionfield isnt empty
Echo yourfieldbase with css ans yourpromotionfield
Else
Echo yourfieldbase

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.298 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline