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 Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-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
http://connect20.magentocommerce.com/community/webskills_shippingrestriction | |
Copy Above URL in Below URL and Have Fun :... | |
http://freegento.com/ddl-magento-extension.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 | |
require_once 'app/Mage.php'; | |
Mage::setIsDeveloperMode(true); | |
ini_set('display_errors', 1); | |
Mage::app(); | |
$mageFilename = 'app/Mage.php'; | |
if (!file_exists($mageFilename)) { | |
echo "not exist"; |
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"> | |
function toggleRow(id){ | |
if(id === "link1"){ | |
document.getElementById('link1').style.display = 'block'; | |
document.getElementById('link2').style.display = 'none'; | |
document.getElementById('link3').style.display = 'none'; | |
} | |
else if(id === "link2"){ | |
document.getElementById('link1').style.display = 'none'; |
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
$catid=Mage::registry('category_id'); | |
$pageno = Mage::registry('page_no'); | |
$catagory_model = Mage::getModel('catalog/category')->load($catid); | |
$_productCollection = Mage::getResourceModel('catalog/product_collection'); | |
$_productCollection->addCategoryFilter($catagory_model); | |
$_productCollection->addAttributeToSelect('*'); | |
$_productCollection->addAttributeToSelect('name'); | |
$_productCollection->setPage($pageno, 3); | |
$_productCollection->load(); |
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 Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-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 | |
ob_start(); | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Edit Product</title> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" src="jquery.form.js"></script> | |
<style> |
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 | |
ob_start(); | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Add Product</title> | |
<!-- scripts --> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
</head> |
OlderNewer