Page 1 of 1

Shortcodes

Posted: 11 May 2026, 16:01
by Nidzo
Phoca Cart 6.1.0 Beta12
I have set up two payment methods and adjusted the descriptions in Description (Info View) to use the {descriptioninfoview} short code to display them in the email sent to the customer.

I also have three short codes in Description (Info View): {totaltopay}, {invoicenumber} and {invoiceduedate} but they do not display the information when included in the {descriptioninfoview} short code.

Basically it is rendering the short code within the short code. Interestingly, the {bankaccountnumber} short code displays correctly in {descriptioninfoview}.

Is this some kind of error and is it possible to display the values ​​of {totaltopay}, {invoicenumber} and {invoiceduedate} in the {descriptioninfoview} short code to customize the email template?

Image
Payment description (Info View)

Image
Email template HTML Body

Re: Shortcodes

Posted: 12 May 2026, 13:57
by Jan
Hi, the info view has no connection to the order (to order ID) as the view can be displayed directly. When order is made, the cart and order is closed and the user is redirected to info view - such has no more information of previously made order - so no ID no information about user, no information about order or receipt id, etc. It only has common variables which can be displayed without connection to specific order.

There is exception, there is even for plugins which can get the info about the order id from session and display such information (this can be used e.g. for payment methods), but this is only valid for plugins, not for displaying variables in info view description (there the order is closed and no personal or order information is available)

Jan

Re: Shortcodes

Posted: 12 May 2026, 14:37
by Nidzo
OK