Jump to content

How to retrieve product id & category id when Friendly URL is active?


Recommended Posts

I have a custom module that is adding 2 more parameters to the query string, when Friendly URL is turned on. The RewriteRule does not translate the 2 parameters required by my module.

 

Without Friendly URL, the query strings provide all the id numbers that I can use to tell which product & category I'm currently on. For example, index.php?pid=1223&cid=23

 

When Friendly URL is turned on, the Friendly URL plugin translates the pid & cid into names, so it will be easier to read on the search engine, but not programmer friendly.

 

Session Variables may be an option but I'm not sure and am looking for suggestions... Does someone know how to retrieve those ids when Friendly URL is on?

 

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...