| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Urgent help needed. | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I have been searching and trying to find a way to change the labels in the customer help: contact us form.
I have tried modifying the language - no luck. I have edited the contactus.tpl - no luck. In searching I see people have been having this same issue for a few years now. Is there no way of actually doing this? Any help would be greatly appreciated. Thanks, (This is in version 4.1.9 Gold)
__________________
x-cart gold Version 4.1.8 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() which labels specifically?
__________________
xcart 5.1.2 |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() moving to template editing.
__________________
xcart 5.1.2 |
|||||||||
#4
|
|||||||
|
|||||||
![]() Quote:
http://i222.photobucket.com/albums/dd44/wright_family_album/misc/departments.jpg These labels. Needing to replace with these (below):
Any help is appreciated. Thanks, Tim Gold v4.1.9
__________________
x-cart gold Version 4.1.8 |
|||||||
#5
|
|||||||
|
|||||||
![]() Hi Tim,
To add additional "Departments", you will need to edit the file: skin1/help/contactus.tpl Additional details... NOTE: To get the additional departments to show, you may need to comment out the 2 IF statements around Line 240 and Line 244: {* {if $default_fields.department.avail eq 'Y'} *} {* {if $default_fields.department.required eq 'Y'} *} and the 2 closing IF statements around Line 246 and Line 260: {* {/if} *} {* {/if} *} Then, just insert your additional departments into a new option around Line 250, for example to add Advertising to the drop-down: <option value="Advertising">{$lng.lbl_advertising}</option> You will probably want to create your own labels. Robert
__________________
X-cart 4.1.10 |
|||||||
#6
|
|||||||
|
|||||||
![]() Quote:
First off, thanks for your help Robert. Ok, I added the comment out markings, and the previous changes were visible. I added the additional names and they all disappeared. ![]() Here is the code I currently have (red bold is what I added to comment out): {* {if $default_fields.department.avail eq 'Y'} *} <tr valign="middle"> <td class="FormButton">{$lng.lbl_department}</td> <td> {* {if $default_fields.department.required eq 'Y'} *}<font class="Star">*</font>{* {/if} *}</td> <td nowrap="nowrap"> <select id="department" name="department"> <option value="All" {if $smarty.get.type eq ""}selected="selected"{/if}>{$lng.lbl_all}</option> <option value="Customer Service">{$lng.lbl_cs}</option> <option value="Retail Store Sales" {if $smarty.get.type eq "whole"}selected="selected"{/if}>{$lng.lbl_retail}</option> <option value="Online Store Sales" {if $smarty.get.type eq "whole"}selected="selected"{/if}>{$lng.lbl_onlinestore}</option> <option value="Non-Profit Sales">{$lng.lbl_npsales}</option> <option value="Marketing & Advertising">{$lng.lbl_markad}</option> <option value="Product Sourcing">{$lng.lbl_sourcing}</option> </select> </td> </tr> {* {/if} *} ---------------- So now I need to go under languages, and create labels (lbl_cs, lbl_retail, etc.) right? Is there a place to direct each of those to particular emails? (as with traditional html/php forms)
__________________
x-cart gold Version 4.1.8 |
|||||||
#7
|
|||||||
|
|||||||
![]() Hi Tim,
Yes, you will need to create new language labels for your new departments or alternately hard-code them in. Your updated code looks similar to what we are using, but we do not have the if $smarty conditions (so you may need to remove them if they cause a problem)... Here's a sample of our code: Code:
You may also need to Clear your Templates Cache and/or Force Cache Generation from your Admin --> Summary --> Tools screen. --- The emails will be sent to whatever you put as your Help/Support department e-mail address in your Admin --> Company Options. We have not had the need to send to different emails, but you could possibly do this one of two ways: 1. Have the "Department" added to the Subject line of the email and then use an email rule or filter to sort and/or forward the email. 2. Try to make a mod that would do what you are asking... look at the thread "Multiple email notifications" for some ideas: http://forum.x-cart.com/showthread.php?t=19973 Robert
__________________
X-cart 4.1.10 |
|||||||
#8
|
|||||||
|
|||||||
![]() Robert,
You are truly helpful, thank you. I added the labels and eventually got the names to display. http://i222.photobucket.com/albums/dd44/wright_family_album/misc/departments2.jpg I did have to comment out a different section first and add a subsequent {if} statement for the last three labels: {* {if $default_fields.department.avail eq 'Y'} *} <tr valign="middle"> <td class="FormButton">{$lng.lbl_department}</td> <td> {* {if $default_fields.department.required eq 'Y'} *}<font class="Star">*</font>{* {/if} *}</td> <td nowrap="nowrap"> <select id="department" name="department"> {* <option value="All" {if $smarty.get.type eq ""}selected="selected"{/if}>{$lng.lbl_all}</option> *} <option value="Customer Service">{$lng.lbl_cs}</option> <option value="Retail Store Sales" {if $smarty.get.type eq "whole"}selected="selected"{/if}>{$lng.lbl_retail}</option> <option value="Online Store Sales" {if $smarty.get.type eq "whole"}selected="selected"{/if}>{$lng.lbl_onlinestore}</option> <option value="Non-Profit Sales" {if $smarty.get.type eq "whole"}selected="selected"{/if}>{$lng.lbl_npsales}</option> <option value="Marketing & Advertising" {if $smarty.get.type eq "whole"}selected="selected"{/if}>{$lng.lbl_markad}</option> <option value="Product Sourcing" {if $smarty.get.type eq "whole"}selected="selected"{/if}>{$lng.lbl_sourcing}</option> </select> </td> </tr> {* {/if} *} ______ My client is wanting the three different email notifications (different departments). Where would I add the "department" to the subject line? I know their IT should be able to filter it based on that. Thanks again. Tim
__________________
x-cart gold Version 4.1.8 |
|||||||
#9
|
|||||||
|
|||||||
![]() Quote:
Glad I could be of help. Since you are asking for it, I decided to add on the Department to the email subject line to our company emails as well. I just tested the code below, and it works... Original Fle: skin1/mail/help_contactus_subj.tpl {config_load file="$skin_config"}{ $config.Company.company_name }: {$lng.eml_contact_us_subj} You can see above that it pulls your Company Name and then the value of the email label eml_contact_us_subj into the Subject Line of the email. So, we just need to add on the Department variable, {$contact.department}, as follows: Code:
You can move the department variable somewhere else in the subject line if you prefer. Cheers! Robert
__________________
X-cart 4.1.10 |
|||||||
#10
|
|||||||
|
|||||||
![]() You truly have been very helpful!
My hats off to you. ![]() Thank you again.
__________________
x-cart gold Version 4.1.8 |
|||||||
|
|||
X-Cart forums © 2001-2020
|