Products are not listed in frontend category page
Backend > System > Index Management > reindex
- Product Flat Data (optional)
- Category Products
Related cards:
validation.js
/*
* Really easy field validation with Prototype
* http://tetlaw.id.au/view/javascript/really-easy-field-validation
* Andrew Tetlaw
* Version 1.5.4.1 (2007-01-05)
*
* Copyright (c) 2007 Andrew Tetlaw
* Permission is hereby granted, free of c...
Add dynamic block contents in category page
In backend > Catalog > Manage Categories, we can configure a category page and put it on the main menu. The page contents are rendered in
app\design\frontend\base\default\template\catalog\category\view.phtml
If we want to render an HTML tab...
Add new input type in product custom options
custom module productcoption
config.xml
<config>
<modules>
<Somemod_ProductCoption>
<version>0.0.1</version>
</Somemod_ProductCoption>
</modules>
<global>
<resources>
<productcopti...
JOINS in Zend_Db_Select
OM uses Zend Version 1.12.16.
Adding Another Table to the Query with JOIN
Many useful queries involve using a JOIN to combine rows from multiple tables. You can a...
nginx config
See production grade nginx and docker config here.
Some notes on this:
- the PCI work was trial and error, we did set up, the external audit did penetration/probe testing, we adjusted settings...
Set custom URL to 'Add to Cart' in Backend Product Page
admin > product page > Design > Custom Layout Update:
<reference name="content">
<block type="es/catalog_product_view_layoutUpdate_application" name="layoutupdate_application"/>
</reference>
<reference name="product.info">
<action ...
How to use cache in OpenMage / Magento 1.x to speed things up
Mechanism: cache in model
First, save the cache
// app\code\core\Mage\Core\Model\App.php Mage_Core_Model_App
/**
* Saving cache data
*
* @param mixed $data
* @param string $id
* @param array $tags
* @param null|false|int ...
Search in Pagination
When there are input elements for search criteria in frontend grid with pagination block 'page/html_pager'
, the search params will be lost when the user click on page n
. This is because the URL links in the pager do not contain the search par...
Add Custom API
Define the API in the custom module app\code\local\{vendor}\{module}\etc\api.xml
:
<config>
<api>
<resources>
<member translate="title" module="benefit">
<model>benefit/api_member</model>
...
addFieldToFilter
OR
$collection->addFieldToFilter('field_name',
[
['eq' => 'value1'],
['eq' => 'value2']
]
);
// same as
$collection->addFieldToFilter('field_name', ['value1', 'value2']);
Filter for X or Y
$colle...