Shortcodes

Phoca Cart - complex e-commerce extension
User avatar
Nidzo
Phoca Expert
Phoca Expert
Posts: 512
Joined: 07 Nov 2018, 14:55

Shortcodes

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49395
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Shortcodes

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Nidzo
Phoca Expert
Phoca Expert
Posts: 512
Joined: 07 Nov 2018, 14:55

Re: Shortcodes

Post by Nidzo »

OK
Post Reply