How After Submit and When back Button Press Form Field Reset ?

function formclear(){
document.getElementById(‘uName’).value = ”;
document.getElementById(‘vorname’).value = ”;
document.getElementById(‘adresse’).value = ”;
document.getElementById(‘plz’).value = ”;
document.getElementById(‘ort’).value = ”;
document.getElementById(‘uEmail’).value = ”;
document.getElementById(‘uEmail2’).value = ”;
document.getElementById(‘agb_digital’).checked = false;
document.getElementById(‘sixLettersCode’).value = ”;
//document.enForm.reset();
}

And But Below Code in Body Section :

<body onLoad=”formclear()” onUnload=”formclear()”>

Important Magento Tips

Welcome Message  Changes :
Admin > System > Configuration > Design > Header > Default Welcome Text.

How to show Product Image in Magento?

Mangage Product Image –> Edit Product Image (OR) Add Product Image  —> Inventory –> Stock Availability change to In-Stock.

Magneto View All Products List

<?php
if($this->isLimitCurrent(“all”)):?>
<a href=”<?php echo $this->getLimitUrl($this->getDefaultPerPageValue());?>”>
View Less
</a>
<?php
//  if t last page number is greater than 1
elseif ($this->getLastPageNum()>1): ?>

<a href=”<?php echo $this->getLimitUrl(‘all’)?>” title=”<?php echo $this->__(‘View All Products’) ?>”>
<?php echo $this->__(‘View All’) ?>
</a>

<?php endif;?>

Another one Link :

http://www.magentocommerce.com/wiki/groups/248/display_products_on_home_page

All Products Showing Home Page :

{{block type=”catalog/product_list” name=”home.catalog.product.list” alias=”products_homepage” template=”catalog/product/list.phtml”}}

Single Category All Products :

{{block type=”catalog/product_list” name=”home.catalog.product.list” alias=”products_homepage” category_id=”4″ template=”catalog/product/list.phtml”}}

Rss Feed Link in WP

URL for RDF/RSS 1.0 feed
<?php bloginfo('rdf_url'); ?>
URL for RSS 0.92 feed
<?php bloginfo('rss_url'); ?>
URL for RSS 2.0 feed
<?php bloginfo('rss2_url'); ?>
URL for Atom feed
<?php bloginfo('atom_url'); ?>
URL for comments RSS 2.0 feed
<?php bloginfo('comments_rss2_url'); ?>

http://codex.wordpress.org/WordPress_Feeds

Wp calender Stamp

function calendar (){ ?>
<div>
<div><?php the_time(‘M’) ?></div>
<div><?php the_time(‘j’) ?></div>
<div><?php //the_time(‘Y’) ?></div>
</div>
<?php
}
//add_action(‘thesis_hook_before_headline’, ‘calendar’);

/*** calendaricon ***/
.calendaricon{
background:url(images/date-stamp-bg.jpg) no-repeat top left;
position:relative;
width:45px;
height:49px;
float:left;
margin-right:10px;
}
.month{
position:absolute;
font:11px Arial, Helvetica, sans-serif;
color:#FFFFFF;
text-align:center;
width:100%;
top:4px;
}
.day{
position:absolute;
font:bold 19px Georgia, “Times New Roman”, Times, serif;
color:#000000;
text-align:center;
width:100%;
top:20px;
}
/*** calendaricon ***/

WP Menu Path

wp-includes/nav-menu-template.php
wp-includes/post-template.php

<ul>
<?php wp_list_pages('title_li='); ?>
</ul>


<ul>
  <?php wp_list_pages('include=5,9,23&title_li=<h2>' . __('Poetry') . '</h2>' ); ?>
</ul>


<ul>
  <?php wp_list_pages('sort_column=menu_order'); ?>
</ul>


<ul>
  <?php wp_list_pages('sort_column=menu_order&title_li=<h2>' . __('Prose') . '</h2>' ); ?>
</ul>


<ul>
  <?php wp_list_pages('sort_column=menu_order&title_li='); ?>
</ul>


<ul>
  <?php wp_list_pages('sort_column=post_date&show_date=created'); ?>
</ul>


<ul>
  <?php wp_list_pages('exclude=17,38' ); ?>
</ul>


<ul>
  <?php wp_list_pages('include=7,13,26,35&title_li=<h2>' . __('Pages') . '</h2>' ); ?>
  </ul>


<ul>
  <?php
  global $id;
  wp_list_pages("title_li=&child_of=$id&show_date=modified
  &date_format=$date_format"); ?>
</ul>

How to fixed XML Parsor Error Report?

Remarks

If an XML declaration (<? XML …?>) appears in your feed, the first thing in the diet, especially a room.

Unfortunately, with WordPress, it seems too easy for a plugin, theme or your configuration file to a blank line. Compounding this problem, some – but not all – feed readers compensate for this common error, the error may go unnoticed for a while.

Solution

* PHP also uses a similar format: <? php … ?>. Note that the final php?> should be removed from all PHP code files modules, includes, etc. The final separation stabbing is optional in PHP (but not XML), and removing it helps prevent unwanted white space at the end the files can cause problems with your feeds.
* Check your wp-rss2.php and WP atom.php for blank lines outside of <? and?> parentheses sections.
* Check your wp-config.php file for blank lines outside of <? and?> parentheses sections.
* Check your themes functions.php file for blank lines outside of <? and?> parentheses sections.
* One by one, disable plugins and rehabilitation until the cause of the problem. 🙂

Curve Bg Css

.left-panel{
width:605px;
float:left;
margin:25px 0;
}
div.panel-t-l{
background:url(images/curve-bg-t-l.png) no-repeat top left;
}
div.panel-t-l div.panel-t-r{
background:url(images/curve-bg-t-r.png) no-repeat top right;
padding:8px 0 0 0;
}

div.panel-b-l{
background:url(images/curve-bg-b-l.png) no-repeat bottom left;
}
div.panel-b-l div.panel-b-r{
background:url(images/curve-bg-b-r.png) no-repeat bottom right;
padding:0 0 8px 0;
}
.panel-white-bg{
background:#fff;
padding:10px 15px;
min-height:235px;
}

.right-panel{
margin:25px 0;
width:325px;
float:right;
}
div.panel-r-t-l{
background:url(images/panel-r-t-l.png) no-repeat top left;
}
div.panel-r-t-l div.panel-r-t-r{
background:url(images/panel-r-t-r.png) no-repeat top right;
padding:8px 0 0 0;
}

div.panel-b-r-l{
background:url(images/panel-b-r-l.png) no-repeat bottom left;
}
div.panel-b-r-l div.panel-b-r-r{
background:url(images/panel-b-r-r.png) no-repeat bottom right;
padding:0 0 8px 0;
}

Single Image background

/* ################################### */
/*    Menu Start  */
/* ################################### */
.menu-container{
width:580px;
margin:7px auto 15px auto;
}

a.menu-nor{
text-decoration:none;
color:#000000;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
outline:0;
margin-right:30px;
}
a.menu-nor span{
background:url(images/menu-nor.png) no-repeat 100% 0;
text-decoration:none;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
color:#000000;
padding:10px 0 10px 0;
height:18px;

}
a.menu-nor span span{
background-position: 0 -100%;
padding:10px 20px 10px 20px;
height:18px;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
margin-left:-10px;
}
a.menu-nor:hover{
color:#ffffff !important;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
}
a.menu-nor span:hover{
background:url(images/menu-hil.png) no-repeat 100% 0;
padding:10px 0 10px 0;
height:18px;
color:#ffffff !important;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
}
a.menu-nor span span:hover{
background-position: 0 -100%;
padding:10px 20px 10px 20px;
height:18px;
color:#ffffff !important;
font:16px “Myriad Pro”, Verdana, Tahoma, Arial, Helvetica, sans-serif;
margin-left:-10px;
}

© 2020 Spirituality