This file contains hidden or 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
Product loadby attribute: | |
Array | |
( | |
[entity_id] => 5345 | |
[entity_type_id] => 4 | |
[attribute_set_id] => 4 | |
[type_id] => simple | |
[sku] => WL2309 | |
[has_options] => 0 |
This file contains hidden or 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 | |
/** | |
* @author Dejan Radic <[email protected]> | |
*/ | |
if (version_compare(phpversion(), '5.2.0', '<')===true) { | |
echo '<div style="font:12px/1.35em arial, helvetica, sans-serif;"><div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;"><h3 style="margin:0; font-size:1.7em; font-weight:normal; text-transform:none; text-align:left; color:#2f2f2f;">Whoops, it looks like you have an invalid PHP version.</h3></div><p>Magento supports PHP 5.2.0 or newer. <a href="http://www.magentocommerce.com/install" target="">Find out</a> how to install</a> Magento using PHP-CGI as a work-around.</p></div>'; | |
exit; | |
} | |
This file contains hidden or 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 | |
class Mdg_Giftregistry_ItemController extends Mage_Core_Controller_Front_Action | |
{ | |
public function addAction() | |
{ | |
return $this; | |
} | |
public function editAction() | |
{ |
This file contains hidden or 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 | |
class Mdg_Giftregistry_Block_Add extends Mage_Core_Block_Template | |
{ | |
} |
This file contains hidden or 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 | |
class Mdg_Giftregistry_Block_Add extends Mage_Core_Block_Template | |
{ | |
public function getCustomerRegistryCollection() | |
{ | |
$customer = Mage::getSingleton('customer/session')->getCustomer(); | |
if ($customer) { | |
$collection = Mage::getModel('mdg_giftregistry/entity')->getCollection() |
This file contains hidden or 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 | |
$collection = $this->getCustomerRegistryCollection(); | |
?> | |
<?php if($collection->count() > 0): ?> | |
<?php $helper = Mage::helper('mdg_giftregistry'); ?> | |
<form action="<?php echo $this->getUrl('giftregistry/item/add/') ?>" method="post" id="form-validate"> | |
<fieldset> | |
<select id="registry_id" name="registry_id"> | |
<?php foreach($collection as $registry): ?> |
This file contains hidden or 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
<?xml version="1.0"?> | |
<layout version="0.1.0"> | |
<catalog_product_view translate="label"> | |
<reference name="content"> | |
<reference name="product.info"> | |
<block type="mdg_giftregistry/add" name="registry.add" as="registry_add" template="mdg/add_to_registry.phtml" /> | |
</reference> | |
</reference> | |
</catalog_product_view> | |
</layout> |
This file contains hidden or 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 | |
/** | |
* Product view template | |
* | |
* @see Mage_Catalog_Block_Product_View | |
* @see Mage_Review_Block_Product_View | |
*/ | |
?> | |
<?php $_helper = $this->helper('catalog/output'); ?> | |
<?php $_product = $this->getProduct(); ?> |
This file contains hidden or 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
<?xml version="1.0"?> | |
<!-- | |
/** | |
* @category Signifyd | |
* @package Signifyd_Connect | |
* @author Alex Manelis | |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | |
*/ | |
--> | |
<config> |
This file contains hidden or 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 | |
$productCollection->addAttributeToFilter('small_image',array('notnull'=>'','neq'=>'no_selection')) | |
->addAttributeToFilter('thumbnail', array('notnull'=>'','neq'=>'no_selection')) | |
->addAttributeToFilter('image', array('notnull'=>'','neq'=>'no_selection')); |