| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Locating Parent Files in Firebug? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I have some very simple code edits I've been trying to make but for the life of me, I can't find where the code is. I looked in main.css, styles.css, css this, tpl that, js files, so on and so forth.
Is there an app or mod or any way in Firebug to locate the parent file? The coding isn't so much a problem as just finding out where the #$%! it is. lol - it's killin me. http://tinyurl.com/24tzzj2
__________________
Rance Ball 4.4.4 http://www.shirtsforthepeople.com/ http://www.handsonwebhosting.com/ |
|||||||
#2
|
|||||||||
|
|||||||||
![]() menu_dialog.tpl. What goes there is setup with this line
{include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu menu_type="menu"} in categories.tpl
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks for the reply Steve.
so, categories.tpl shows... Code:
I see the last line you referred to. How do I get to the guts? I'm not too bad at html, but the whole smarty thing and locations are puzzling. I can edit it just fine in Firebug, but obviously that does little good in the grand scheme of things. Seems humorous that I can find and edit exactly what I'm looking for in a free add on, but can't find jack squat in 500 dollar software. lol ![]()
__________________
Rance Ball 4.4.4 http://www.shirtsforthepeople.com/ http://www.handsonwebhosting.com/ |
|||||||
#4
|
|||||||||
|
|||||||||
![]() categories.tpl calls menu_dialog.tpl with that last line and passes to it the language variable $lng.lbl_categories (which holds word "Categories") as title, then menu_dialog.tpl displayes "title"
P.S. you can edit "Categories" word by editing the language variable "lbl_categories" from admin/languages
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#5
|
|||||||
|
|||||||
![]() fabulous.
![]() admin/languages from where dude? If it's in the x-cart admin language then all it is, is select languages *german* *english* bla bla bla, so on and so forth. If it's FTP admin/languages.php then it contains nothing regarding to "categories" or anything else in the #left-bar, #right-bar or anywhere else in the file. It has to be somewhere right? <h3>Categories<h3> I mean, this line has to be in, some file, somewhere, right? <filename>?
__________________
Rance Ball 4.4.4 http://www.shirtsforthepeople.com/ http://www.handsonwebhosting.com/ |
|||||||
#6
|
|||||||
|
|||||||
![]() <h3></h3> is coded
lbl_categories is in admin -> languages. You need to select your language and do a search in lbl or labels |
|||||||
|
#7
|
|||||||||
|
|||||||||
![]() I would have thought that the <h3></h3> would have been in the menu_dialog.tpl, this template is used for all of the boxes, with different language variables for the title. It depends what youwant to change, the structure or the text.
If it'sthe structure look in menu_dialog.tpl, if it's the word look in your languages,
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
|
#8
|
|||||||||
|
|||||||||
![]() Quote:
The line is in menu_dialog.tpl file but it doesn't say <h3>Categories</h3> it says <h3>{$title}</h3> $title is passed from the file calling menu_dialog.tpl (in this case categories.tpl). That way menu_dialog.tpl can be used with may files passing different $title. Like amy2203 said if you need to change the h3 tag edit menu_dialog.tpl, ifyou want to change Categories to something else edit the language variable. Use admin/languages in admin, choose your language, page will refresh with search field so you can search and then edit
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#9
|
|||||||||
|
|||||||||
![]() Quote:
Yes - the tool is Webmastermode - it makes clear what is controlled by language variables and also shows what templates were used to build the various sections of html code. It also tells you what smarty variables are available to you on a particular page, and what those smarty variables are set to. It will be just as important to you as Firebug when making changes to your X-cart site.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
|
#10
|
|||||||
|
|||||||
![]() Ahhh... Gotcha!
Combining those posts painted a much better picture. Trying not to loose my mind before I get over the learning curve on this thing. Thanks fellas, appreciate it.
__________________
Rance Ball 4.4.4 http://www.shirtsforthepeople.com/ http://www.handsonwebhosting.com/ |
|||||||
|
|||
X-Cart forums © 2001-2020
|