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 ?

closed as too broad by Amit Bera, liyakat, Keyul Shah, David Manners, 7ochem Apr 22 '15 at 8:30

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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
  • 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.