Magento 2 - Override base view file - magento2

I'm currently developing a Magento 2.0 theme. I'm trying to change the behaviour of the Tax class on the frontend. The file I need to change is located in app/Code/Magento/Tax/view/base/templates/pricing/adjustment.phtml.
How can I override this view from my Magento theme?
Thanks

Copy adjustment.phtml file from base template and put it in app/design/frontend/[VendorName]/[theme]/Magento_Tax/pricing/adjustment.phtml
For more information you can get help from : http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/themes/theme-inherit.html

The solution was simple, just create the file in app/design/frontend/[VendorName]/[theme]/Magento_Tax/templates/pricing/adjustment.phtml.
Explanation (and credits): https://magento.stackexchange.com/questions/84550/magento-2-override-base-view-file

app/design/frontend/[VendorName]/[theme]/Magento_Tax/templates/pricing/adjustment.phtml.
Then after don't forget to run this bellow command.
php bin/magento setup:upgrade

Related

How to change primary-color of webpack for laravel?

A customer, sigh, asked to change buttons to standard 'boostrap blue' color.
Could you point me to a guide on which file change and how to recompile theme?
Or tell me if there is a way to override compiled theme without do bad things?
You can follow this section in the Backpack 4.2 docs to do that. The same also works for Backpack 4.1.
In short, in your config/backpack/base.php, under styles you should stop using the standard bundle file and use the blue bundle instead:
'styles' => [
- 'packages/backpack/base/css/bundle.css',
+ 'packages/backpack/base/css/blue-bundle.css',
Make sure you're running Backpack 4.1.57+ for that blue-bundle.css file to exist. If it still doesn't, re-publish the assets using php artisan vendor:publish --provider="Backpack\CRUD\BackpackServiceProvider" --tag=public --force

TYPO3 Hook not found

I am currently trying to write a Hook to add extra fields to a Flexform. Therefore I followed this tutorial: https://docs.typo3.org/typo3cms/extensions/news/DeveloperManual/ExtendNews/ExtendFlexforms/Index.html?fref=gc&dti=250938618364487#extend-flexforms-with-custom-fields
But when I go to a page in the backend that contains an options from a Flexform I get the following Error:
Class 'ID\SearchBarAdditional\Hooks\FlexFormHook' not found.
I register the Hook in the ext_localconf like this:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class]['flexParsing'][] = \ID\SearchBarAdditional\Hooks\FlexFormHook::class;
and my Hook-file is here: typo3conf/ext/search_bar_additional/Classes/Hooks
and is initialized that way:
namespace ID\SearchBarAdditional\Hooks;
class FlexFormHook { /* ... */
So in my opinion everything is in the right place and should work, but I do still get the error that TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance("ID\SearchBarAdditional\Hooks\FlexFormHook") fails.
Do you guys have any ideas, what could be wrong? Do I have to register the Hook in \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( or something similar (as the posted code is really the only thing I've done)?
This is a typical class loading error. Check that you added your PHP namespaces to composer autoloading and/or ext_emconf.php and make sure your filenames are correctly named according to PSR-4. If in doubt you can inspect the class loading map files generated by composer in vendor/composer (if you use composer for class loading, which you definitely should do).
I found the mistake: My Hook does indeed not get loaded. I tried to 'include' it in the ext_localconf.php and it is working now.
But as this is of course an extremely ugly solution I posted a second question, how to load a hook here: Typo3 8.X - autoload Hook
Thank you for your help!!!

Class 'kartik\base\InputWidget' not found

In my Yii2 apps I add extension select2, since composer not successfully downloaded all the needed librarys. So I do it manually but I have still have error. Any help is BIG THANKS.
Here is my error.
I think since you did it manually you
forgot to add this file: input widget file
or did not specify proper path to it.
Check these and come back if any issues prevail.And always try to use composer as it's better to solve composer errors than finding what is missing after doing the entire set up.Isn't it? ;)

extension on typo3 page

I have created a page in typo3. Created and install extension through Extension kickstarter. Add this newly created extension on my page. But the extension is not showing up. Do anyone has any idea? Is template file needs to be defined?
Make sure you have included the Typoscript of the extension as well.
Usually it's done via 'Include static', the installed extension should be within the available items.
I added this line on the setup template of the page and it resolves my problem
page.40 < plugin.tx_test3_pi1

disabled javascript in content type form: no javascript

I have a problem in my drupal installation..in the content type page i can't drag and drop lines and i see two columns :weight and parent :image1
The problem had application on the content add form like that: image2
If there any configuration to add or to remove or any help to provide i will be very grateful
Thanks
Sorry..
It seemed to be a server configuration problem.. i uploaded a 'virgin' drupal installation to my remote server ( the producton erver) and i installed without any supplement module, just the core modules with the 777 permission for all the files..but the same problem persist ..I'm suspecting the php version that i' m using (5.2.17 instead of 5.3.10)