How to Add contact form inside CMS Page in Magento?

You Add Below code in your cms page :

<p>{{block type=”core/template” name=”contactForm” form_action=”/contacts/index/post” template=”contacts/form.phtml”}}</p>

Then when you click the Submit that is going contact page. So, there you can view the contact form again. So, this time we can do this below css, put in your style.css

.contacts-index-index .col-main .page-title, .contacts-index-index .col-main #contactForm{
display:none;
}
.contacts-index-index .col-main #messages_product_view{
margin:70px auto 0 auto;
width:450px;
}

this is one of my method. If any prober way kindly inform me.

How to add “Shortcode” for WP Contact Form 7?

1. Example :

Copy this code and paste it into your post, page or text widget content.
[contact-form-7 404 "Not Found"]

2. Example

Copy Below code in your php file inside where you want put this:
<?php echo do_shortcode( ‘[contact-form-7 404 "Not Found"]‘ ); ?>

How to call all categories in Magento Home page?

{{block type=”catalog/navigation” name=”catalog.categories” alias=”all_categories_homepage” template=”catalog/navigation/all_category_view.phtml”}}

How to call Navigation in Magento CMS Page inside?

Just write inside magento cms page below code :

{{block type=”catalog/navigation” name=”catalog.vertnav” alias=”navigation_homepage” template=”catalog/navigation/vert_nav.phtml”}}

How to call Tag’s inside Magento CMS Page?

Just write below type :

{{block type=”tag/popular” template=”tag/popular.phtml”}}

How to call Magento images and Scripts in inside CMS Page?

This is the path of  “{{skin url=” for magento root directory.
1. Example for Images Load :
{{skin url=’images/welcome.jpg’}}

2. Example for Scripts Load :
{{skin url=’js/onLoad.js’}}

3. Example for Direct Scripts Load :
<script type=”text/javascript”>// <![CDATA[
document.write(‘<center><iframe width=”190″ height=”172″ src=”http://www.youtube.com” frameborder=”0″ allowfullscreen></iframe></center>’);
// ]]></script>

How to write first php code?

This is very easy. Just write below code in your php file.

<?php

echo “Welcome New Php Reader”;

?>

Then refersh your server or localhost. There showing  Welcome New Php Reader.

How to solve Warning: mail() has been disabled for security reasons?

You go and run phpinfo(), in your server.

There check  “disable_functions“. That place the server side disabled the “mail“.
You have permission to write php.ini, You enable the “mail“.
If you have no permission, inform to server guys for this.

Then check. Basically this is the problem. Other things we check later.

Welcome to all peaceful life.

How to Create Php info Page?

Hi, its very easy to create.
1. Just put below code in php file inside

<?php
echo phpinfo();
?>

2. Save file phpinfo.php
3. Upload your server or localhost
4. Run yourdomain/phpinfo.php
5. It’s show your “php info” results.

Allways happy. 🙂

How to view All Categories only in Home from Magento?

<?php $_maincategorylisting=$this->getCurrentCategory()?>
<?php $_categories=$this->getCurrentChildCategories()?>
<!– h2><?php //echo $this->__(‘Browse Products’) ?> </h2 –>
<div>
<ul>
<? foreach ($_categories as $_category):?>
<? if($_category->getIsActive()): ?>
<?php $cur_category=Mage::getModel(‘catalog/category’)->load($_category->getId()); ?>
<?php $layer = Mage::getSingleton(‘catalog/layer’); ?>
<?php $layer->setCurrentCategory($cur_category);
//$this->getCurrentCategory()->getImageUrl()
?>
<? if($_imageUrl=$this->getCurrentCategory()->getThumbnailUrl()):?>
<li> <a href=”<?php echo $this->getCategoryUrl($_category) ?>” title=”<?php echo $this->htmlEscape($_category->getName()) ?>”>
<img src=”<?php echo $_imageUrl ?>” width=”auto” alt=”<?php echo $this->htmlEscape($_category->getName()) ?>” />
</a>
<a href=”<?php echo $this->getCategoryUrl($_category) ?>” title=”<?php echo $this->htmlEscape($_category->getName()) ?>”>
<?php echo $this->htmlEscape($_category->getName()) ?>
</a>
<? if($_description=$this->getCurrentCategory()->getDescription()):?>
<p>
<?php echo $_description ?></p></li>
<?php endif; ?>
<? endif; ?>
<? endif; ?>
<?php endforeach; ?>
<div></div>
</ul>
<div></div>
</div>
<?php $layer->setCurrentCategory($_maincategorylisting); ?>

Just Put your home page or Any Static Page this below Line only :

{{block type=”catalog/navigation” name=”catalog.categories” alias=”all_categories_homepage” template=”catalog/navigation/all_category_view.phtml”}}

Welcome to our other site : www.srinesiga.com

© 2020 Spirituality