| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Clean URL and Category id | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello, I am trying to write a module which adds an output to a catalogue page of certain categories (should this be in the forum "Modifying designs and features"?).
The problem is that if I enable clean URL $_GET['category_id'] doesn't give the Category id. Would there be any solution for this? Thank you very much in advance.
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Why are you using $_GET? Use XC way - \XLite\Core\Request::getInstance()->category_id
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||
|
|||||||
![]() Oh, that works fine, thank you. As a matter of fact, I had "tried" it and somehow I kept making syntax errors wrapping it, so I had given away the idea
![]()
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
|
|||
X-Cart forums © 2001-2020
|