• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: A little more explanation on the IF syntax (PDF)

A little more explanation on the IF syntax (PDF) 9 years 6 months ago #32987

  • info7610
  • info7610's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Hello,

I want to use the IF statement using the PDF plugin to send an user email with a quote of our services.

- I installed the PDF plugin and creating PDF works good
- I put the mentioned (www.rsjoomla.com/support/documentation/r...mpro-pdf-plugin.html) script in the User Email Pre-processing PHP Script area

I thougt that was it. So I added the following code to the HTML for my PDF, but it only displays it in the PDF, so it isn't processed.... :( What am I doing wrong?

{if {aantalpersonen:11}}
ELF!!
{/if}

<br>

{if {aantalpersonen:12}}
TWAALF!!{/if}
<br>

{if {aantalpersonen:13}}
DERTIEN!!
{/if}

<br>
The administrator has disabled public write access.

A little more explanation on the IF syntax (PDF) 9 years 6 months ago #32988

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Please read the article instructions again. General syntax is:

{if {fieldname:value}} {fieldname:caption}:{fieldname:value} {/if}

Note that this will only work for empty values.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

A little more explanation on the IF syntax (PDF) 9 years 6 months ago #32991

  • info7610
  • info7610's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
I see. I hoped the IF-statement was capable of doing more. So it's just to show something if the value ain't empty.... Still nice, but not what I need I guess.

Are there other (quite simple) ways to achieve the following. I want to give my customers a tool to get an automatic quote of the services I offer. So price, description, total price, et cetera. All in a nice PDF sent to them by email. Let's say I have four products and they all have a general description (a few lines of text). If they select product A, description A needs to be in the PDF. But if they select A, C en D description A, C en D must be in the PDF.

Is this not possible or is it easy and don't I just see it? ;-)
The administrator has disabled public write access.

A little more explanation on the IF syntax (PDF) 9 years 6 months ago #32995

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Well, it is possible, but not as easy. You will need to use PHP scripting (PHP PDF Pre-Processing Scripts area).

Some tips provided here:

https://www.rsjoomla.com/support/documentation/rsform-pro/plugins-and-modules/rsform-pro-pdf-plugin.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!