How can i Solve, After installtion Magento frontend showing 404 error page?

Hi guys,

1. You just Magento Administration Configuration Side.
2. There you can find “Use Web Server Rewrites”
3. The “Use Web Server Rewrites” set yes, you get this problem.
4. You change there value is no. This problem is solved.

that’s all. Now Magento front view is very good.

Magento Installation “Database Connection Error” when i use on 1and1.com Server?

Hi,

Just change your password first alpha and numeric only. This is happen me. If this also working you. Better that i feel.
And use database host correctly.

Then go htaccess, there you will change below code type.

############################################
## this line is specific for 1and1 hosting

#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php

change above two below type :

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

And change

#RewriteBase /magento/

to

RewriteBase /magento/

this is working well.

Where Contact Form Source Code in Magento?

Hi,

Below Path is without recaptcha form page source code :
C:workfreelancerstanmagentoyour-themeappdesignfrontendyour-themeyour-themetemplatecontactsform.phtml

Withc Recptcha Form Page Source Code :
C:workfreelancerstanmagentoyour-themeappdesignfrontendyour-themeyour-themetemplatefontisrecaptchacontacts.phtml

Sometimes the path change to “base” theme inside. Example Below Path :

C:workyour-themeappdesignfrontendbasedefaulttemplatefontisrecaptchacontacts.phtml

here what you want change, that is work well.

How to Get Particular Category Title in you WP?

You Just Write Below Code for you Category Title purpose.

<?php
$cat_id = ’11’;
echo get_cat_name( $cat_id );
?>

this is showing the category title in your particular post category title.

How to Get Custome Filed in Query String Via in WP?

You Just write below code, your query loop inside :

<?php echo get_post_meta($post->ID, “field_name”, true); ?>

Before you add Custome field name and set Field Name Value also in post.

that is all.

How to Select Radio Button in javascript Via?

Hi Below code radio button selection sample script.
<script language=”javascript” type=”text/javascript”>
// For Radion Button Selected option

document.getElementById(‘sample’).checked = true;
if(document.getElementById(‘sample’).checked == true){
document.getElementById(‘sample’).style.display = ‘block’;
document.getElementById(‘sample’).disabled = false;
document.getElementById(‘sample’).disabled = false;
document.getElementById(‘sample’).disabled = false;
document.getElementById(‘sample’).disabled = false;
document.getElementById(‘sample’).disabled = false;
}
</script>

the above code is useful for yours more place. Enjoy its for very useful sometime in dynamic javascript section also. This is one of the small Javascript Via Radio Button Selection Sample.

How to Select Option Value in javascript Via?

Hi Below Code useful for yours Enjoy.
<script language=”javascript” type=”text/javascript”>
// For Option Value Selected in javascript Via

var myselect=document.getElementById(“myList”)
for (var i=0; i<myselect.options.length; i++){
myselect.options[i].selected=false;
//alert(“Selected Option’s index: “+i);
/* if (myselect.options[i].selected==true){
alert(“Selected Option’s index: “+i)
break
}*/
}
myselect.options[1].selected=true;
</script>

this is one of my method in javascript via options selection.

காதல்

காதல் உயிரோடு உறவாடும் தென்றல்
கனவுகளின் அற்புதத்தை உணர்த்தும் அதிசயம்

ஆசை நரம்புகளின் இனிய இசை நாதம்
காலங்களின் சுகங்களை உணர்த்தும் கருவி

சிரு துறும்பையும் இரும்பாக மாற்றும் மந்திரம்
காதலர்கள் பிரிந்தாலும் வாழ்விக்கும் அற்புதம்

How to View Single Product URL Product ID via in Magento?

Hi below code for single product url. When you pass the query string in your url. You can use below code for single product url. Or you can put product id also here working fine.
<?php
$_productCollection=$this->getLoadedProductCollection();
$_helper = $this->helper(‘catalog/output’);

//Jai Write Below Code for Product id via getting Product URL Start

//redirect to old Product
if(isset($_GET[‘product_id’])){
$product_id = $_GET[‘product_id’];

$cProduct = Mage::getModel(“catalog/product”);
$cProduct->load($product_id);
//echo $cProduct->getImageUrl().”<br />”;
$currentProductURL = $cProduct->getProductUrl();
//echo $currentProductURL.”<br />”;

echo “<script type=’text/javascript’ language=’javascript’>window. location='”.$currentProductURL.”‘;</script>”;

}
//Jai Write Below Code for Product id via getting Product URL Start
?>

I have small knowledge in magento. So, I more then 3 hours spent for this code getting. If anyone find this post. This is useful for you.

thanks.

© 2020 Spirituality