![]() |
removing item from breadcrumbs and changing buttons value
How do I
1) Get rid of links st the Help zone in the breadcrumbs (Its not needed) 2) change the buttons valaue from "Submit" to "send email" in the contact form http://fixmysite.us/island_bangles/xcart/help.php?section=contactus |
Re: removing item from breadcrumbs and changing buttons value
Regarding your first question, you need to modify a template file:
Before doing any modifications, backup your initial file. In skin/Island_Bangles/customer/content.tpl template file you add an additional condition clause in the line referring to the 'customer/bread_crumbs.tpl' file, ie: Look for the code similar to: Code:
{if $main neq "catalog" or $current_category.category neq ""} and change it to : Code:
{if $main neq "catalog" or $current_category.category neq "" or $main neq "help"} |
Re: removing item from breadcrumbs and changing buttons value
k, put that condition in there and it worked (sort of)
Both the contact page http://fixmysite.us/island_bangles/xcart/help.php?section=contactus and the forgot password page have it though http://fixmysite.us/island_bangles/xcart/help.php?section=Password_Recovery |
Re: removing item from breadcrumbs and changing buttons value
Just think it out logically, if $main not equal "catalog" or $main not equal "help". That statement will evaluate to true if main doesn't equal help or catalog. If it equals catalog then it doesn't equal help so it is true.
{if $main neq "help"} {if $main neq "catalog" or $current_category.category neq ""} {include file="customer/bread_crumbs.tpl"} {/if} {/if} should do the trick. (I think) :-) About changing the submit button title, use webmaster mode to determine the template that the button is being called in. With the default skin the file is: /common_files/customer/help/contactus.tpl Around line #259 find: {include file="customer/buttons/submit.tpl" type="input" additional_button_class="main-button" assign="submit_button"} Change to: {include file="customer/buttons/submit.tpl" type="input" additional_button_class="main-button" assign="submit_button" button_title="Send Email"} The key piece is the button_title="Send Email" and you could also use button_title=$lng.lbl_button_send_email which would actually be more correct, but you would need to create that language variable. Just go to the admin Content > Languages and select the English language. Then add a new variable "lbl_button_send_email" and value "Send Email". Luke, at this rate you'll be an X-cart master in no time! Good luck. |
Re: removing item from breadcrumbs and changing buttons value
Yes Mike, you are right. I missed the logic with the OR clauses, since if $main equals to 'help', then it is not equal to 'catalog', so one of the OR conditions is true, therefore the sentence evaluates to true and the breadcrumbs is included. So, the $main variable must not be equal to 'help' in every case.
|
Re: removing item from breadcrumbs and changing buttons value
thanks, im trying, smarty is pretty nice
|
All times are GMT -8. The time now is 09:30 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.