In Mage_Checkout_OnepageController
, temporarely comment out $session->clear();
View flat_source_table_select_varchar.php
<?php | |
class Your_Module_Model_Catalog_Attribute_Source_Product_[Attribute] extends Mage_Eav_Model_Entity_Attribute_Source_Table | |
{ | |
public function getAllOptions() | |
{ | |
if (!$this->_options) { | |
$this->_options = array( | |
'option_1' => array('value' => 'value_1', 'label' => Mage::helper('adminhtml')->__('-- Not Selected --')), | |
'option_2' => array('value' => 'value_2', 'label' => 'Label 2'), |
View clean_catalogsearch.sql
SET FOREIGN_KEY_CHECKS=0; | |
TRUNCATE `catalogsearch_fulltext`; | |
TRUNCATE `catalogsearch_query`; | |
TRUNCATE `catalogsearch_result`; | |
-- | |
-- Enterprise Edition | |
-- |
View checkout_total_discount_no_code.phtml
<?php | |
$title = ($this->getTotal()->getCode() == 'discount') ? preg_replace('@\(.*?\)@', '', $this->getTotal()->getTitle()) : $this->getTotal()->getTitle(); | |
?> |
View Amasty_Shopby_Helper_Attributes.php
<?php | |
/** | |
* @return array | |
*/ | |
public function getAllFilterableOptionsAsHash() | |
{ | |
if (is_null($this->_optionsHash)) { | |
$hash = array(); | |
$attributes = $this->getFilterableAttributes(); | |
View translation_var_order.csv
%1$s %2$s private sales | Ventes privées %2$s %1$s |
---|
View product_entity_type_id.php
<?php | |
Mage::getModel('eav/entity_type')->loadByCode(Mage_Catalog_Model_Product::ENTITY)->getEntityTypeId(); |
View first_product_category.php
<?php | |
// $product must be an instance of Mage_Catalog_Model_Product | |
$productCategoryIds = $product->getCategoryIds(); | |
$productCategory = Mage::getModel('catalog/category')->getCollection() | |
->addAttributeToFilter('is_active', true) | |
->addAttributeToFilter('entity_id', array('in' => $productCategoryIds)) | |
->setPageSize(1) | |
->getFirstItem(); |
View canonical_url.php
<?php | |
$canonicalUrl = Mage::getBaseUrl(); // your logic... | |
$this->getLayout() | |
->getBlock('head') | |
->addLinkRel('canonical', $canonicalUrl); |
View test_order_success_page.md
View translate_specific_string_module.md
In csv file
"Mage_Module::Original Text String","Customized Text String"
Source http://magebase.com/magento-tutorials/quick-tip-translating-strings-from-specific-modules/
OlderNewer