Advertisement
Guest User

Untitled

a guest
May 7th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <frontend>
  2. <routers>
  3. <customlinkedproducts>
  4. <use>standard</use>
  5. <args>
  6. <module>Icpp_CustomLinkedProducts</module>
  7. <frontName>accessories</frontName>
  8. </args>
  9. </customlinkedproducts>
  10. </routers>
  11.  
  12. <layout>
  13. <updates>
  14. <customlinkedproducts>
  15. <file>guestorder.xml</file>
  16. </customlinkedproducts>
  17. </updates>
  18. </layout>
  19.  
  20. </frontend>
  21.  
  22.  
  23. i added following code to guestorder.xml file
  24.  
  25. <layout version="0.1.0">
  26. <accessories_index_index>
  27. <reference name="root">
  28. <action method="setTemplate"><template>page/1column.phtml</template></action>
  29. </reference>
  30. <reference name="content">
  31. <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"> </block>
  32. </reference>
  33. </accessories_index_index>
  34. </layout>
  35.  
  36. i added following code to IndexController.php file
  37.  
  38. <?php
  39. class Icpp_CustomLinkedProducts_IndexController extends Mage_Core_Controller_Front_Action
  40. {
  41. public function indexAction ()
  42. {
  43.  
  44. echo "yufgty";
  45. $this->loadLayout();
  46. //$this->getLayout()->getBlock("head")->setTitle($this->__('Accessories %s'));
  47. $this->renderLayout();
  48. }
  49.  
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement