0

Where you are in a category you have the list of your products. I display actually a carousel a the position of a product. But my problem i don't know how display only this carousel on the first and not on all the pages ?

  • please put relevnt code otherwise question goes to close – Amit Bera Apr 22 '15 at 1:43
0

One way this could work is by getting the URL path of the pages you want the carousel to appear and running the code on these pages. You can do this well by following the answer in this thread. http://stackoverflow.com/questions/25192212/get-current-url-in-magento-and-show-something

Try the code in second answer of this thread

http://stackoverflow.com/questions/17963557/how-to-display-category-description-only-on-the-first-page-in-magento
|improve this answer|||||
  • I already have tried with that method : <?php if ($this->getChild('favorite_carousel')->getToolbarBlock()->isFirstPage()) : ?> But i don't know why it's not working... I tried with your method but it's not effective too – felegento Apr 21 '15 at 13:30
  • Not sure where the problem is but i will post a link to another thread where you can retrieve the 'p' variable of page and run code against that – user3450236 Apr 21 '15 at 13:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.