URL Parameter documentation

  • Posts: 2
  • Thank you received: 0
10 years 6 months ago #155160

Where do I find a documentation what parameters can be used in an URL call like for example:

...../administrator/index.php?com_hikashop&ctrl=product&task=edit&cid[]=142

Specifically I am looking for a way to use a deep link to activate/deactivate a product from another software application that can only communicate with a call to a website.

Thanks in advance.
Best regards,
Peter

Last edit: 10 years 6 months ago by PeterM.

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
10 years 6 months ago #155209

Hi,

You'll have a hard time doing that as the link to do that requires a session token to be valid for security reasons (in order to avoid XSS attacks). The link is:

../administrator/index.php?option=com_hikashop&tmpl=component&ctrl=toggle&935fb622b66fc187b4f931714f34a15a=1&task=product_published-1&value=0&table=product
where 935fb622b66fc187b4f931714f34a15a is the session token, the 1 after product_published- is the product id and the 0 is the state your want (0 for disabled, 1 for enabled).
It would be best to implement a small system plugin and run yourself the query to change that from within the plugin based on the parameter of the $_REQUEST in an onAfterRoute trigger.
docs.joomla.org/Portal:Plugin_Development

The following user(s) said Thank You: PeterM

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum