Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

removing item from breadcrumbs and changing buttons value

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-18-2012, 01:10 PM
 
lukeurtnowski lukeurtnowski is offline
 

Advanced Member
  
Join Date: Jan 2012
Posts: 52
 

Default 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...
Reply With Quote
  #2  
Old 03-18-2012, 01:45 PM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 758
 

Default 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 ""} {include file="customer/bread_crumbs.tpl"} {/if}

and change it to :

Code:
{if $main neq "catalog" or $current_category.category neq "" or $main neq "help"} {include file="customer/bread_crumbs.tpl"} {/if}
Reply With Quote
  #3  
Old 03-18-2012, 02:48 PM
 
lukeurtnowski lukeurtnowski is offline
 

Advanced Member
  
Join Date: Jan 2012
Posts: 52
 

Default 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...
Reply With Quote
  #4  
Old 03-18-2012, 05:30 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
Reply With Quote
  #5  
Old 03-19-2012, 02:29 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 758
 

Default 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.
Reply With Quote
  #6  
Old 03-19-2012, 10:28 AM
 
lukeurtnowski lukeurtnowski is offline
 

Advanced Member
  
Join Date: Jan 2012
Posts: 52
 

Default Re: removing item from breadcrumbs and changing buttons value

thanks, im trying, smarty is pretty nice
__________________
thanks...
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:24 AM.

   

 
X-Cart forums © 2001-2020