| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
removing item from breadcrumbs and changing buttons value | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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
__________________
thanks... |
|||||||
#2
|
|||||||||
|
|||||||||
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:
and change it to : Code:
__________________
Vasilis Vrod. X-Cart Development, Maintenance & Customization www.craftforweb.com vasilis@craftforweb.com |
|||||||||
#3
|
|||||||
|
|||||||
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
__________________
thanks... |
|||||||
#4
|
|||||||||
|
|||||||||
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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#5
|
|||||||||
|
|||||||||
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.
__________________
Vasilis Vrod. X-Cart Development, Maintenance & Customization www.craftforweb.com vasilis@craftforweb.com |
|||||||||
#6
|
|||||||
|
|||||||
Re: removing item from breadcrumbs and changing buttons value
thanks, im trying, smarty is pretty nice
__________________
thanks... |
|||||||
|
|||
X-Cart forums © 2001-2020
|