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

New to x-Cart; Crumbs, Footer, Titles

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-07-2014, 09:29 PM
 
bdsmith62 bdsmith62 is offline
 

Newbie
  
Join Date: Apr 2014
Posts: 2
 

Default New to x-Cart; Crumbs, Footer, Titles

Hello,

I'm new to xCart. I've been searching for about 2 hours now and can't seem to figure out how I can remove the breadcrumbs, Footer and page category titles (after clicking on category, in the page that displays sub categories) from all pages.

I'm building my record label a new site in dreamweaver (after using Joomla for years) and I'm using x-cart for our store. to keep everything smoothly integrated on site I'm using iframes to display x-cart. Everythings fine except the 3 things mentioned above need removed.

Thanks guys.
P.S. yes I did search, all were using older versions. I also am not sure where the template files are located in my FTP. I had assumed skin but don't see digital (the one I'm using) or others. So I'm lost as someone said to remove breadcrumbs.tpl in some home file in the template's folder but I can't find out how to navigate to the DIGITAL template folder.


Update:
Removed breadcrumbs by navigating to skins/default/en and deleting location.tpl
__________________
5.0.12
Reply With Quote
  #2  
Old 04-07-2014, 11:04 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: New to x-Cart; Crumbs, Footer, Titles

Quote:
Originally Posted by bdsmith62
Removed breadcrumbs by navigating to skins/default/en and deleting location.tpl

You should never edit core files because upgrading to the next version will discard your changes. Instead you should create a custom module that does the job.

Here is the docs on customizing X-Cart 5:
http://kb.x-cart.com/display/XDD/Developer+docs

Basically, you should create a module, then locate the widget classes that render the sections and "decorate" the method that makes the section visible.

For breadcrums the widget class is \XLite\View\Location and you should make its isVisible() method always return FALSE.

For the title you should decorate the isTitleVisible() method in \XLite\Controller\Customer\ACustomer class.

As for the footer - it depends on what you call so
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 04-07-2014, 11:35 PM
 
bdsmith62 bdsmith62 is offline
 

Newbie
  
Join Date: Apr 2014
Posts: 2
 

Default Re: New to x-Cart; Crumbs, Footer, Titles

Thanks Qualiteam. Sounds a little confusing but I'll give it a shot and see what I come up with. Luckily I saved the Location.tpl so I'll just place it back in.

The footer I speak of if the copyright info. www.blackandyellowrecords.com/artist_market
__________________
5.0.12
Reply With Quote
  #4  
Old 04-07-2014, 11:55 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: New to x-Cart; Crumbs, Footer, Titles

Would you like to wipe the footer completely? If so, you should create a skin module and add "[path-to-your-skin]/customer/en/layout/main.footer.tpl" file with the following contents:
Code:
{* * @ListChild (list="layout.main", weight="500") *}

This empty file should replace the existing one (and make the footer empty).

You can use a single module to do both the jobs (adding the skin and hiding other widgets).
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
totaltec (04-08-2014)
  #5  
Old 04-08-2014, 09:09 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: New to x-Cart; Crumbs, Footer, Titles

Another method to remove elements would be via css using {display:none} in the css editor.
__________________
Richard


Ultimate 5.4 testing
Reply With Quote

The following user thanks RichieRich for this useful post:
qualiteam (04-08-2014)
  #6  
Old 04-08-2014, 09:27 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: New to x-Cart; Crumbs, Footer, Titles

Quote:
Originally Posted by RichieRich
Another method to remove elements would be via css using {display:none} in the css editor.

Yep. But this doesn't remove the section from the html code, so you may use this as a temporary tweak, but creating a custom module removing the html code of the section itself will be a better solution.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 09:51 AM.

   

 
X-Cart forums © 2001-2020