Finding theme files of Magento - zend-framework

I want to do some changes in magento theme actually product detail page, but I am unable to find that what theme it is. There are 4 directories where files can be.
In app/design there are 2 directories, default and base and then further more
And same is hierarchy in skin folder
So is there some place where I can see that which files are being used or is there some variables or functions in magento that I can use to check that from where it is getting file. I don't know much about magento and zend framework. I tried to echo some content in product_controller but it seems that I am not printing output in write file. So what can be the way for me to know that where is the file of product detail page view where I can add a form and some link, is there any sort of custom HTML in magento that I can add in product detail page? I actually want to have a form in it that will take it to anohter page that I will create in magento and that page will use some data from form. Or if there is some extension for it?
Please tell if you know any thing about it , that is really appreciated.
thanks

You can find out where your themes set from
System > Configuration > Design
System > Design
turn on template hints from System > Configuration > Developer
or you can add print_r(get_included_files()); to the end of index.php to see what files are actually used in current php page

You can find out which is set from following place
System > Configuration > Design
System > Design
here you can see the name of theme who layout,templates and skin is used
then u can explore the folder having the same name as files from that folder are in use.

Related

Remove personal template from Visio (plan2)?

Does anyone know how to remove previously added personal template form Visio (plan2)? It seems this is not as straightforward as I would expect...
Many thanks.
Please check in File location window field Templates. You can call this window with these steps
Select tab File at ribbon
Select Options in bottom of list
Select Advanced
Select File locations in bottom of list
Please check: Is your unwanted document located in folder which you can find in Templates field in File locations window ?
I did some additional research to find out that while adding .vtpx template, visio converts it to .vstx and stores it (in my case) in Custom Office Templates folder.
All I had to do is remove the corresponding .vstx from that folder and the template disappeared form Personal Templates tab.
Not sure if Custom Office Templates is the default location in all cases, so better search for your [templatename].vstx on your drive.
Credit for idea goes to #Surrogate who hinted that you could define folder for templates. Thanks!

TYPO3 9+: Multiple user_uploads related to page tree

is it possible to use different user_uploads by page tree in TYPO3 9+?
Informations:
Multiple companies are using the same TYPO3 instance for their websites.
Example #1:
An editor is placing images in a content element on a page of a page tree with drag'n'drop. Normally the files would be uploaded to the user_upload folder. If you have a huge amount of backend editors the user_upload folder will be a mass in a short time and nobody feels responsible for the files. I know that you can see if a file is used by its references in the info section but it would be much easier if a company would have its own user_upload directory (maybe subfolder of it).
Did anyone faced the same problem an has a solution for this?
Thanks in advance!
I think you should configure your user groups and their users in such a way that they use the correct storage. you can read about it here:
https://docs.typo3.org/m/typo3/reference-tsconfig/master/en-us/UserTsconfig/Options.html#defaultuploadfolder
https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/AccessControl/MoreAboutFileMounts/Index.html

Howto to configure TCA settings and save them globaly

I'm configuring a new website with TYPO3 v. 9.5.
I would like to configure TCA settings to make it possible to force editors to fill fields in content elements like media or news.
In former times I was able to put this settings into a file typo3conf/extTables.php.
In my investigations I found, that I have to put configurations into a directory Configuration/TCA/Overrides of an extension.
I tested it with the extension tx_news like this:
I put this code in a file called test.php as a test and example.
This code forces the editor to always enter an archive date.
This works for me, but after an extension update, this code might be lost and I cannot configure the fields of core extensions for example to force an editor to always enter a title of a content element.
My question is, how can I store this configurations update save within the configuration environment?
Thank you in advance,
Ralf
Depending on your modifications you need to consider some aspects:
always use a filename according to the table your modifications belong.
so for the news records it should be: Configuration/TCA/Overrides/tx_news_domain_model_news.php
make sure your modifications are loaded after the first initial configuration: make a dependency to the original extension.

Magento how do I override/alter template/payment/form/purchaseorder.phtml file

I need to add some text to this file [template/payment/form/purchaseorder.phtml], for a particular store within clients' magento site. When I make a change to the purchaseorder.phtml file, it changes the text on all the stores. So I need to somehow customize this for one store in particular.
I have read comments on several sites, some mention changing the local.xml, change the config.xml, make changes in admin panel, but this such a small change, I don't want to disrupt anything by going overboard.
I need to extend the functionality on the backend so this change can be made for a particular store or stores. the sites has five stores built into the one install and for now I need to make the above change to just one store.
I think I need to somehow add a PO field Heading and an "Additional Text" option to the Purchase order section in image two. is this correct, if so how do I do this?
Could someone point me in the right direction to making this type of change please.
Note: I can't do the create directory structure, copy files, change needed files option
This is magento 1.7
Copy purchaseorder.phtml file from base/default directory then paste it in your current template. Now you can alter content of it purchaseorder.phtml in your current directory, it wont affect the base file.Like below,
Copy from
app/design/frontend/base/default/template/payment/form/purchaseorder.phtml
Paste to
app/design/frontend/base/current_theme/template/payment/form/purchaseorder.phtml
When you override a section, the folder structure should resemble the default template folder structure like current_theme/template/form/ payment/purchaseorder.phtml .
sorry for bad english.

Can't find mosConfig_absolute_path in configuration.php

I am trying to move my Joomla1 website from localhost to my bluehost.com domain. For testing I have created a subdirectory on my domain for testing and moved all my Joomla! files to this. I have created this subdirectory under the public_html folder.
I am using different menus on the front page (custom page) and remaining pages. My problem is that the menu items on the front page are looking for pages in a subdirectory named joomla instead of looking for pages in my subdirectory (testing)
Based on suggestions from some websites I thought changing mosConfig_absolute_path will help but my configuration.php file in the testing subdirectory doesn't have a property called mosConfig_absolute_path. I do not face this problem on any of the menu items on the other pages.
Can someone please help me with this problem and how I should overcome it. Thanks.
The variable you're talking about is $mosConfig_absolute_path rather than $msConfig_absolute_path. You will also need to reset $mosConfig_live_site.
Also, migrating to Joomla! 1.5 would avoid this issue entirely; it automatically detects your base path and URL.