Entries by admin

lessphp fatal error: load error! help in wordpress

If you’re encountering the LessPHP Fatal Error: Load Error! in WordPress, it typically means there is an issue with the LessPHP compiler failing to load a required file. This error is common in themes or plugins that use Less (a CSS preprocessor) to generate stylesheets dynamically. To resolve the issue, try the following steps: 1. […]

Magento – Show Inventory Levels on Product Pages

Today I will show you how we can add Quantity on hand information on the product detail page.Normal Magento shows ‘Availability-In Stock’ by default. We need to change that Qty on hand like the below image For this you need to do the below steps : Go to app/design/frontend/base/default/template/catalog/product/view/type/default.phtml. Get a copy of that file […]

How to change the Magento Admin URL

Here is a quick guide on how to change admin url path in Magento. To protect your Magento backend against hackers and brute-force attacks, we recommend that you change the default URL to the Magento Admin Panel is must. It is a quick and easy way to add an extra layer of security to your […]

Limit wordpress title to 25 characters

Limit wordpress title to 25 characters To limit a WordPress post title to 25 characters, you can use the wp_trim_words or mb_strimwidth function in PHP. A simple and effective way is: <?php $title = get_the_title(); $short_title = mb_strimwidth($title, 0, 25, ‘…’); echo esc_html($short_title); ?> This ensures that if the title exceeds 25 characters, it is […]

Magento internal server error after backup

If you get 500 internal issue in magento after taking backup then it is the issue of magento folders and files permissions. Download attached file and upload it on the magento root folder and then run that. After then your problem will be resolved. Download

A nice entry

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, […]

Magento – Delete System Attribute

If you want to delete an attribute. But there is no delete option while you edit the attribute. This means that the attribute is system attribute. System attributes cannot be deleted. Only user defined attributes can be deleted. To delete the attribute, you have to make it user defined. Follow the below instructions : – […]

Magento – Show Inventory Levels on Product Pages

One of our client needed to display their actual quantity on hand inventory, rather that the normal ‘Availability-In Stock’. on product detail page. For this you need to look on this file. app/design/frontend/YOURTEMPLATE/default/template/catalog/product/view/type/default.phtml If you do not have the above in the directory then you should copy that from the base folder and put in […]

Fatal Error Declaration Of Zend Pdf FileParserDataSource File __construct in magento

Fatal Error Declaration Of Zend Pdf FileParserDataSource File construct in magento If you will get this issue on magento while printing invoice pdf Fatal Error: ‘Declaration of Zend_Pdf_FileParserDatasource_File::__contruct() must be compatible with Zend_Pdf_FileParderDatasource::__construct() in /…/lib/Zend/Pdf/FileParserDataSource/File.php Then here is the simple solution. Replace abstract public function __construct(); to abstract public function __construct($filePath); in /lib/Zend/Pdf/FileParserDataSource.php