Guest User

Untitled

a guest
Jan 23rd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <config>
  3. <modules>
  4. <TM_Newarrivals>
  5. <active>true</active>
  6. <codePool>local</codePool>
  7. </TM_Newarrivals>
  8. </modules>
  9. </config>
  10.  
  11. <?xml version="1.0"?>
  12. <config>
  13. <modules>
  14. <TM_Newarrivals>
  15. <version>0.0.1</version>
  16. </TM_Newarrivals>
  17. </modules>
  18. <global>
  19. <blocks>
  20. <tm_newarrivals>
  21. <class>TM_Newarrivals_Block</class>
  22. </tm_newarrivals>
  23. </blocks>
  24. </global>
  25. </config>
  26.  
  27. <?php
  28. class TM_Newarrivals_Block_Lists extends Mage_Catalog_Block_Product_List
  29. {
  30. protected function _getProductCollection()
  31. {
  32. // CODE TO LOAD TWO DIFFERENT CATEGORIES
  33. die("HERE");
  34. }
  35. }
  36.  
  37. <newarrivals_layout>
  38. <reference name="content">
  39. <block type="tm_newarrivals/lists" name="newarrivals_lists" as="newarrivals_lists" template="tm/newarrivals/lists.phtml">
  40. <action method="setCategoryIds">
  41. <category_ids>5,6</category_id>
  42. </action>
  43. </block>
  44. </reference>
  45. </newarrivals_layout>
  46.  
  47. <catalog_category_layered>
  48. <reference name="root">
  49. <action method="setTemplate">
  50. <template>page/2columns-left-filter-top.phtml</template>
  51. </action>
  52. </reference>
  53. <reference name="head">
  54. <action method="addItem">
  55. <type>skin_css</type>
  56. <script>css/responsive-catalog.css</script>
  57. </action>
  58. </reference>
  59. <reference name="mana.catalog.leftnav">
  60. <action method="setData">
  61. <instruction>hide_material</instruction>
  62. <value>1</value>
  63. </action>
  64. </reference>
  65. </catalog_category_layered>
  66.  
  67. {{block type="catalog/product_list" category_id="2" template="tm/newarrivals/lists.phtml"}}
Add Comment
Please, Sign In to add comment