This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use the onchange() function and pass parameters like this in default.phtml | |
Just place below code: | |
<?php if ($_options = $this->getOptionList()): | |
$_customOptions = $_item->getProduct()->getOptions(); | |
if(!empty($_customOptions)){ | |
foreach ($_options as $_option) { | |
$row['label'][]=$_option['label']; | |
$myrow[$_option['label']][]=$_option['value']; | |
} | |
$optStr=''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$j(".plus_sign").click(function() { | |
var catcount = 9; | |
var cartitems = 0; | |
$j('.firstload').css("display","none"); | |
var id = $j(this).attr('rel'); | |
var text_val = $j('#qty_'+id).val(); | |
//var checkidval = $j('#qty_'+id).val(); | |
var divcounter = $j('#qty_counter'+id).text(); | |
var currentVal = $j('.myinput').val(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$cats = Mage::getModel('catalog/category')->load(3)->getChildren(); | |
$catIds = explode(',',$cats); | |
$categories = array(); | |
foreach($catIds as $catId) { | |
$category = Mage::getModel('catalog/category')->load($catId); | |
$categories[$category->getName()] = $category->getId(); | |
} | |
ksort($categories, SORT_STRING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GO TO : app/design/frontend/default/YOURTEMPLATE/template/checkout/onepage/shipping_method/available.phtml | |
Place Below Code: | |
<?php | |
if ( array_key_exists('freeshipping', $_shippingRateGroups )) { | |
unset($_shippingRateGroups["flatrate"]); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//error_reporting(E_ALL | E_STRICT); | |
$mageFilename = 'app/Mage.php'; | |
require_once $mageFilename; | |
umask(0); | |
Mage::app(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(".attr_filter_input").keyup(function(){ | |
this_input = jQuery(this); | |
this_input.parents("ol").find("li").each(function(){ | |
this_li = jQuery(this); | |
if(this_li.index() != 0) { | |
this_input_value = this_input.val().toLowerCase(); | |
this_li_label_text = this_li.find("label").text().toLowerCase(); | |
if(this_li_label_text.indexOf(this_input_value) < 0) | |
this_li.hide(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script > | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
jQuery('#postcode').blur(function(){ //.postcode class of zipcode text field | |
var s = jQuery(this).val(); | |
jQuery.ajax({ | |
type: 'POST', | |
url: "http://localhost/autopopulate/insertzip.php", //file which read zip code excel file | |
dataType: "json", //is used for return multiple values | |
data: { 's' : s }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $_items = $this->getItems() ?> | |
<?php | |
$_convertedFinalPrice=""; | |
if (($_items = $this->getItems()) && $_items->getSize()): ?> | |
<div class="category-products"> | |
<?php echo $this->getToolbarHtml() ?> | |
<?php echo $this->getPagerHtml(); ?> | |
<?php $_collectionSize = $_items->count(); | |
//echo $_collectionSize; ?> | |
<?php $_columnCount = 3; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php include('config.php'); ?> | |
<style> | |
#search_category_id{ padding:3px; width:200px;} | |
#sub_category_id{ padding:3px; width:200px;} | |
</style> | |
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script> | |
<center><a href="view_categories.php">Show Categories</a> | |
<a href="addproduct.php">Add Products</a></center> | |
<form method="post" onsubmit="return(validate());" action="<?php $_PHP_SELF ?>" style="margin-top:20px;" name="myForm"> | |
<table width="400" border="0" cellspacing="1" cellpadding="2" align="center"> |
NewerOlder