Gallery version = 2.2.5 core 1.2.0.7
PHP version = 5.2.1 cgi-fcgi
Webserver = Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7e mod_auth_pgsql/2.0.3
I have edited the text in the confirm.tpl and as instructed placed it in a newly created 'local' directory in the same directory as the original confirm.tpl.(mysite.com/modules/checkoutemail/templates/email/local
However the text still shows the original Your payment options are:
IMPORTANT: REPLACE THIS TEXT WITH YOUR PAYMENT DETAILS text.
I even tried replacing the original file just in case. Both files on the server are the updated versions but the email coming through remains the un edited text.
Any help greatly appreciated.
Database = mysqlt 5.0.32-Debian_7~bpo.1-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux supremecenter48.com 2.6.24.2-AM #1 SMP Mon Feb 11 16:32:30 GMT 2008 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; MDDC; .NET CLR 1.1.4322)
Rows in GalleryAccessMap table = 30
Rows in GalleryAccessSubscriberMap table = 118
Rows in GalleryUser table = 2
Rows in GalleryItem table = 116
Rows in GalleryAlbumItem table = 5
Rows in GalleryCacheMap table = 0
Posts: 16502
clear your cache:
FAQ: How can I clear cached data?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 14
Thanks for that. I had already run a clear template cache as I thought that may have been the problem but no luck. Still the same.
Posts: 16502
Can you either post a link to your site or PM me so I can take a look?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 14
I have sent a pm - thanks so much! Please let me know if that contains everything you need.
Posts: 16502
O.K. I had to put in two dummy orders, one for a $0 digital order and one for a $15 print, to see where that message was showing up exactly. You can delete those.
Neither of those files have been changed:
/modules/checkoutemail/templates/email/local/confirm.tpl
/modules/checkoutemail/templates/email/confirm.tpl
I checked with the FTP info you gave me and you have permission to change the files and it appears they have been changed, but that line about, IMPORTANT: REPLACE THIS TEXT WITH YOUR PAYMENT DETAILS is still there, in both files.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16502
AH!!! Took a second look because I did see payment details in the confirm.tpl file, but not in the email I received.
I get it. There are two parts to those files. One for rendering TEXT and one for rendering HTML. Your emails are being send via HTML. You need to edit this part too:
{/if} {if $rendering == 'html'} <br> <br> {g->text text="The total payable for this order is "}{$block.checkout.csymbol}{$block.checkout.total|string_format:$block.checkout.cformat}. <br> <br> {g->text text="Your payment options are:"} <br> <br> IMPORTANT: REPLACE THIS TEXT WITH YOUR PAYMENT DETAILS <br> <br> {g->text text="As soon as your payment is received your order will be processed - please let us know how you'd like to proceed by replying to this email."} <br> <br> {g->text text="Looking forward to hearing from you soon!"} <br> <br> <br> {/if}____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4338
Just to forestall an obvious question sometime in the future ("How do I choose whether to send emails in HTML or plain-text?") I should point out that all emails are sent in both formats - the template is included twice with two different values of $rendering - and it's up to the recipient's MUA as to which is displayed. So there's a good reason for making sure that both renderings have the same semantic content as you can't be sure which one is going to be read.
EDIT: Oh, and kudos and thanks to Nivekiam for his hard work looking into this.
Posts: 14
Of course! Thanks for spotting that - I really appreciate your Detective work!
Posts: 16502
Ah, good info to know Alec. I thought there might be a setting in Site Admin for text or HTML messages as I've seen that with another plugin but can't remember which. But it's good to know you just send both formats. I think that's a better plan, sure it makes the message bigger (slightly) but it should be up to the mail client to decide on how to display the message, not on who is sending it. Thanks.
One of these years (well when this stuff is available in G3) I'll probably actually get around to using these sort of modules. Just downloaded them and dug around to see where to find stuff.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 14
All quite logical now that I have read everything! Strange thing is I have updated the script so that they both read the same, cleared the template cache and renders perfectly in plain text but html still shows original text. I am so close to having this wonderful script working superbly - this is the last hurdle!
Posts: 14
Footnote:
Just cleared the database cache and whether it was coincidence, it now works perfectly. Thanks for your tremendous support and advice.