| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Clean URL and Category id | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Clean URL and Category id
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
|
|||||||||
|
|||||||||
Re: Clean URL and Category id
Why are you using $_GET? Use XC way - \XLite\Core\Request::getInstance()->category_id
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: Clean URL and Category id
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 But calling this method directly, things do work.
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
|
|||
X-Cart forums © 2001-2020
|