Community Forums

Editing email template

General support for technical problems with OpenCart v1.x

Editing email template

Postby soapitup » Mon Feb 21, 2011 6:55 am

Am I right in thinking that my customers would recieve an email when they purchase an item from my store? Also is there any way I can edit the email they get to add my own message. I looked in admin - sales - mail template but getting a "Permissions Denied" error that I can't seem to resolve and don't know if that is the template I need to edit anyway.

Any help would be appreaciated.
Thanks.
soapitup
 
Posts: 107
Joined: Thu Jul 22, 2010 11:24 am

Re: Editing email template

Postby openmycart.com » Mon Feb 21, 2011 4:53 pm

if you want to edit the file go to: admin\view\template\sale\contact.tpl (template file) and lang file: admin\language\english\sale\contact.php

if you want to release the denied permission then go to: admin--setting--localization--user group--top aministrator--edit--checked to all--done
Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/ , OPENCART SITE customization and Maintenance supports at here
User avatar
openmycart.com
 
Posts: 416
Joined: Mon Oct 11, 2010 3:47 pm

Re: Editing email template

Postby soapitup » Mon Feb 21, 2011 5:40 pm

I had a luck at those two files but still doesn't look like it's the righht file, its the automatic email that gets sent out by the cart when a customer purchses an item (not a manual email message), just wanted to add a few lines on text to the email template, however the files you suggested look as if they are for when you send out messages manually via admin.

Also the denied permission error stays even when I have checked all the settings for top administrator which is very strange.

Thanks for your suggestions.
soapitup
 
Posts: 107
Joined: Thu Jul 22, 2010 11:24 am

Re: Editing email template

Postby rofus » Tue Feb 22, 2011 8:40 am

Hi all,

I have the same type of error, checked all modules in the Top Administrator, still getting error of permission denied.

Is this a bug?

R
rofus
 
Posts: 56
Joined: Wed Feb 09, 2011 9:28 am

Re: Editing email template

Postby openmycart.com » Sat Feb 26, 2011 12:47 pm

Well, finally I should investigate You, did you edit your file or using another mods files instead OC original files? that's no bug, if bug it will not only you face this case..
anyway what OC version You already use?
Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/ , OPENCART SITE customization and Maintenance supports at here
User avatar
openmycart.com
 
Posts: 416
Joined: Mon Oct 11, 2010 3:47 pm

Re: Editing email template

Postby rofus » Mon Feb 28, 2011 7:42 am

Hi,

using OC 1.4.9.3. modified lots of files (mainly in the view) and none of them about the Admin authorization settings, and I just use two or three modules not mods, and I had that problem since the start. I see that there are other open topics about that problem on the forum, so it seems something affecting some users.

Looking at database I think it would be simple if knowing the syntax of the user_group.permission field in the database, it's clearly where all modules and permissions are listed.

Any suggestion is very welcome :)

R
rofus
 
Posts: 56
Joined: Wed Feb 09, 2011 9:28 am

Re: Editing email template

Postby openmycart.com » Mon Feb 28, 2011 4:43 pm

rofus wrote:Hi,

using OC 1.4.9.3. modified lots of files (mainly in the view) and none of them about the Admin authorization settings, and I just use two or three modules not mods, and I had that problem since the start. I see that there are other open topics about that problem on the forum, so it seems something affecting some users.

well..well...well... I am sure your case happen because of your lots of files modified, How deep you know that's it not effected? and let me know where the link that said it effecting by user?

rofus wrote:Looking at database I think it would be simple if knowing the syntax of the user_group.permission field in the database, it's clearly where all modules and permissions are listed.

Any suggestion is very welcome :)

R
NO. You don't need to touch any database table, since you said "I have checked all the settings for top administrator" permission, now the case not in your database, but in your modified files.
Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/ , OPENCART SITE customization and Maintenance supports at here
User avatar
openmycart.com
 
Posts: 416
Joined: Mon Oct 11, 2010 3:47 pm

Re: Editing email template

Postby rofus » Tue Mar 01, 2011 6:19 am

Hi,

Simply this problem was there since the start (before any mod) but I never took attention to it as I thought it was simply something about permissions.

Secondly I'm an advanced php programmer and I know what I did, and all apart that is working (and I never modified that part).

Third other users have the same problem on the forum and on fresh installations.

I looked at code and db, that field contains the voices driving the list of things to enable in the interface for permissions for that users, and instead of saying to you always the same thing and having to 'justify' my work would me much faster if someone is willing to share what's the 'format' of that db field so I can restore the voice in the list of things to enable in my user group interface.

Any suggestion?

R
rofus
 
Posts: 56
Joined: Wed Feb 09, 2011 9:28 am

Re: Editing email template

Postby openmycart.com » Tue Mar 01, 2011 12:48 pm

OK, If You sure that your case not from modified files, so finally I interested to know this more.. ;)
I also waiting for your url link that you mentioned at previous, I want to see it how can it happen.

why I said the failed permission oftentimes effected by modified files, because i had experience whenever to solve my client with has similar case.

when i checked to database table DBPREFIX_user_group and relation with files
admin\controller\user\user_permission.php
admin\model\user\user_group.php
I found No problem, no different for all user group privilege except user group id for Top admin set to1.
Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/ , OPENCART SITE customization and Maintenance supports at here
User avatar
openmycart.com
 
Posts: 416
Joined: Mon Oct 11, 2010 3:47 pm

Re: Editing email template

Postby rofus » Wed Mar 02, 2011 11:43 am

Hi again,

that table in the 'permission' field contains all the permissions for the various modules/files (it does not matter the group id you're speaking about). Anyone knowing the syntax for that field to add to the mail_template module to the list of 'checkable' modules for permission?

a:2:{s:6:"access";a:101:{i:0;s:16:"catalog/category";i:1;s:16:"catalog/download";i:2;s:19:"catalog/information";

That is an extract of the field..not very clear what the a/i/s parameters mean, but for sure it's missing the 'sale/newsletter_template'. That's why I don't see that one in the list to enable my user group to access/edit it.

If someone (Qphoria? Daniel?) can explain to me the syntax of that field, I can easily fix the problem and it could be useful also for the others having the same problem.

R
rofus
 
Posts: 56
Joined: Wed Feb 09, 2011 9:28 am

Re: Editing email template

Postby 1uk3 » Wed Mar 30, 2011 2:16 am

Is this something that has been figured out as I'm having the same issues with a site that I'm working on at the moment.
OpenCart 1.4.9.4
1uk3
 
Posts: 3
Joined: Wed Mar 30, 2011 2:14 am

Re: Editing email template

Postby rofus » Wed Mar 30, 2011 2:44 am

It seems that no one wants to share this....some of the developers, can you explain us the format of that field in the db? I'd be more than happy then to work on this and post here a solution!
rofus
 
Posts: 56
Joined: Wed Feb 09, 2011 9:28 am

Re: Editing email template

Postby Ljubo » Sun May 01, 2011 4:29 pm

Mail Template - denied permission as well.

OC 1.4.9.4

Please share a solution...
Ljubo
 
Posts: 168
Joined: Mon Jan 31, 2011 9:07 am
Location: Serbia


Return to General Support

Who is online

Users browsing this forum: No registered users and 44 guests

cron
Hosted by Arvixe Web Hosting