Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Phrases in Cartthrob email templates

Status Resolved
Add-on / Version Publisher 3.2.3
Severity
EE Version 5.4

Studioweb

Mar 08, 2021

I can’t get Phrase variables working for Cartthrob email templates.

I’ve triend {phrase:var_name} and {exp:publisher:var_name} without succes. The email show {phrase:email_invoice} for example.

Tips would be great!

#1

BoldMinded (Brian)

I don’t have a version of Cartthrob setup, so in order for me to replicate this it could take awhile. It’ll be easier if you could share FTP and CP access again. My first guess is that they’re processing the templates themselves, which means that Publisher never gets called and doesn’t get the opportunity to create the phrases. Since this also does involve another 3rd party add-on, it could take a few days for me to look into this.

#2

BoldMinded (Brian)

Same site as this ticket? https://boldminded.com/support/ticket/2260 If so I can get the FTP creds from that ticket.

#3

Studioweb

Yes, the same site! Thx!

#4

BoldMinded (Brian)

Can you provide some instructions on how to trigger the email sending? Is there an easy way to send a bunch of emails so I can test this?

#5

Studioweb

Comment has been marked private.

#6

BoldMinded (Brian)

Comment has been marked private.

#7

Studioweb

I’ve added credentials in this ticket. Indeed a typo 😉

#8

BoldMinded (Brian)

Comment has been marked private.

#9

Studioweb

No improvement unfortunately

#10

BoldMinded (Brian)

Can you send me a zip file of Cartthrob so I can look at its source? If the change I sent didn’t work I’m assuming CT is doing some custom template parsing, and Publisher never has an opportunity to create it’s phrases. If that is the case, then this isn’t an issue I can fix… it would have to be fixed by CT.

#11

Studioweb

I sent you a wetransfer

#12

BoldMinded (Brian)

Comment has been marked private.

#13

Studioweb

It’s working now, Thanks!

#14

BoldMinded (Brian)

https://www.dropbox.com/s/vpuhy3qzhfxpmrk/SuccessKid.jpg?dl=0

#15

Studioweb

Hi Brian,

Could you tell me how to make the Publisher function available within another addon controller (in this case also cartthrob)? I need to use the translate_phrase() function in php. Thanks a lot

#16

BoldMinded (Brian)

You’ll need to require the mod.publisher.php file and call the function that way, but I don’t know if it’ll work without throwing other errors. I can’t really help with this sort of thing because it falls outside the scope of normal add-on support.

Login to reply