X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   New to x-Cart; Crumbs, Footer, Titles (https://forum.x-cart.com/showthread.php?t=69002)

bdsmith62 04-07-2014 09:29 PM

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

qualiteam 04-07-2014 11:04 PM

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 :)

bdsmith62 04-07-2014 11:35 PM

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

qualiteam 04-07-2014 11:55 PM

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).

RichieRich 04-08-2014 09:09 AM

Re: New to x-Cart; Crumbs, Footer, Titles
 
Another method to remove elements would be via css using {display:none} in the css editor.

qualiteam 04-08-2014 09:27 PM

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.


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.