Showing posts with label Magento. Show all posts
Showing posts with label Magento. Show all posts

June 26, 2019

Magento - New version release in 2019 for better security



- New Magento version release in 2019 with increase product security and performance,


  • Magento Open Source and Commerce 2.3.2
  • Magento Open Source and Commerce 2.2.9
  • Magento Open Source and Commerce 2.1.18
  • Magento Open Source 1.9.4.2
  • Magento Commerce 1.14.4.2
  • SUPEE-11155 to patch earlier Magento 1.x versions

For more information about new version security changes available here:



Enjoy!

December 13, 2015

Magento - How to add static page link to main menu?

- Hello friends finally I find the solution for add static page link to main menu in magento CMS,

- First find the top.phtml file from this page: app/design/frontend/default/YourThemeName/template/catalog/navigation/top.phtml

- Before do any changes on this file please take copy of orignal top.phtml file,

- Below is default code of top.phtml file:


<?php $_menu = $this->renderCategoriesMenuHtml(0,'level-top') ?>
<?php if($_menu): ?>
<div class="nav-container">
    <ul id="nav">
       <?php echo $_menu ?>
    </ul>
</div>
<?php endif ?>

- You shoud modified as per below example where I add Home link:

<?php $_menu = $this->renderCategoriesMenuHtml(0,'level-top') ?>
<?php if($_menu): ?>
<div class="nav-container">
    <ul id="nav">
     <li><a href="/">Home</a><li>
     <?php echo $_menu ?>
    </ul>
</div>
<?php endif ?>

- Or you should also add and magento block shord code (In block you define static menu link in <ul><li> format):

<?php $_menu = $this->renderCategoriesMenuHtml(0,'level-top') ?>
<?php if($_menu): ?>
<div class="nav-container">
    <ul id="nav">
     <li><a href="/">Home</a><li>
     <?php echo $_menu ?>
     <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('navbar_links')->toHtml() ?>  
   </ul>
</div>
<?php endif ?>

- In above example 'navbar_links' is block identifier name.


Enjoy!

October 15, 2015

Magento - The PDO extension is required for this adapter but the extension is not loaded.



When I upload site live from my local server and getting such kind of error that the PDO extension is required for this adapter but the extension is not loaded.

So I think that the pdo.so php extension must be required in server. And first check in php.ini file If you have access of that file.

;extension=pdo_mysql.so

Please uncomment the above line to activate it

extension=pdo_mysql.so

Save the file and restart the server.


If you have no access of the php.ini file, follow the following steps

Step 1. Please check your Magento installation directory there must me a file named as php.ini.sample.

Step 2. Now rename the file from php.ini.sample to php.ini

Step 3. Put the below code into it

extension = pdo.so
extension = pdo_sqlite.so
extension = sqlite.so
extension = pdo_mysql.so

Step 4. Now refresh your browser cache and the problem has been solved.


Enjoy!

Magento - 1050 Table 'adminnotification_inbox' already exists.




Oho, I already face this type of bug in past,

Here I post solution of this bug: Please check in you database


Drop Table if exists 'adminnotification_inbox'

When you drop this table then magento again create this default new table,

Enjoy!

September 30, 2015

Magento - static block display on col right sidebar.


- If you want to display static block in any page then you can add below code in page.xml file OR you can create your own local.xml file and put this code in that file.

<layout version="0.1.0">
  <default>
    <reference name="right">
      <block type="your/type" template="path/to/your/template.phtml" />
    </reference>
  </default>
</layout>


If you have any questions please comment me, I help you.

Enjoy!

September 11, 2015

How to change page title in Magento?



If you want to change page title from admin side then please follow below steps:


* Login in admin and open CMS > Static pages, then edit page which you want to change "Page Title".

* In frontend and any module, you can use xml file to set new title for your page. The syntax is:

<reference name=“header”>
    <action method=“setTitle” translate=“title”><title>Your Title Here!</title></action>
</reference>

Enjoy!

September 1, 2015

NEWSLETTER SUBSCRIBE CODE MOVE AT FOOTER IN MAGENTO



First you can create a block on the fly and position it precisely in your template files with one line of code:

Add this code: 

<?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?>


Enjoy!

August 25, 2015

Magento Please enter a valid URL. Protocol is required (http://, https:// or ftp://)



Please follow the below step for SOLUTION:

1. Open \app\design\install\default\default\template\install\config.phtml

2. Find the textbox where the base url is entered. It will be around line no 85 with name ‘config[unsecure_base_url]‘

3. Remove ‘validate-url’ from its class and save the file.



4. Now you can continue follow the installation.

Enjoy!

How to display Indian Rs. symbol in Magento?




Please follow the below step:

1. Add below code in root.xml

path of file: lib/Zend/Locale/Data/root.xml

Open root.xml file and find below code in that file

<currency type=”INR”>

replace next line with this below code

<symbol>Rs. </symbol>

Enjoy!

The Future of Technology: Emerging Trends to Watch in 2025

Introduction As we navigate through 2025, the technological landscape continues to evolve at an unprecedented pace. Innovations that once se...