My magento shopping web site:child toys fridge magnets || nike tn pas cher
Use of different templates, Magento Product List page displays the number of products per page is always changing, I often need to change it. The results showed changes to the product display number does not work, my cache is turned off, I checked under the database core_congfig table settings are saved to the database. I should not be an XML file in the control, can I contact all the templates are set background, this template would not be so points back. The result was really magento template XML file number in the control of the display of product list page. I introduced the background and the number of how to set up the product display in the template XML file under magento, set a higher priority than the background set in the XML, but if you set the work magento background is not going to modify the file.
1.magento background set the product list page number of products,set the number of Grid (form) and List list page product display, and whether to allow all in one. If you have a magento classification has hundreds of products, thousands of products, do not set up to display all the products in one page.
2.control products in xml pages show the number of
File path app \ design \ the frontend \ default \ blank (I use the blank template file, you replaced your template file path) \ the layout \ catalog.xml, will be the file
<block
type="catalog/product_list_toolbar" name="product_list_toolbar"
template="catalog/product/list/toolbar.phtml"> <block
type="page/html_pager" name="product_list_toolbar_pager"/> <! -
The following code shows how to set your own
pager increments -> <action method="setDefaultListPerPage">
<limit> 10 </ limit> </ action> <action
method="setDefaultGridPerPage"> <limit> 8 </ limit> </ action>
<action method="addPagerLimit"> <mode> list </ mode>
<limit> 10 </ limit> </ action> <action
method="addPagerLimit"> <mode> list </ mode>
<limit> 20 </ limit> </
action> <action method="addPagerLimit"> <mode> list </
mode> <limit> 30 </ limit> </ action> <action
method="addPagerLimit" translate="label"> <mode>
list </ mode> <limit> all </ limit> <label> All
</ label> </ action> <action method="addPagerLimit">
<mode> grid </ mode> <limit> 8 </ limit >
</ action> <action method="addPagerLimit"> <mode>
grid </ mode> <limit> 16 </ limit> </ action>
<action method="addPagerLimit"> <mode> grid </ mode>
<limit> 24 </ limit> </
action> <action method="addPagerLimit" translate="label">
<mode> grid </ mode> <limit> all </ limit>
<label> All </ label> </ action> </ block>
Find the above code, the display of the number of options in the xml file to control the products of the product list page. The observed change to try to know. Generally speaking, Magento background set on work, can not try to modify in the file. It was discovered that this set the code of the page shows general are commented out, this template is uncommented, commented out the code, set magento background work.
Note: This example uses magento1.5 version to explain, note that different versions of different.
没有评论:
发表评论