Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2007
    Posts
    10
    Plugin Contributions
    0

    Default URL Parameter Passing

    I have modified the main page to limit the number of categories displayed in the central column, with a <click here to see the full list> button. I need to pass a parameter in the URL, eg ?display=full_list when the button is clicked.

    The problem is that the parameter is not being picked up by the receiving page


    Can anyone give me a clue as to why this doesn't work and what I can do to make it work ? I have tried defining the variable as GLOBAL, but this didn't work.

    The site is still under develelopment (I am concentrating on functionality rather than looks at the moment! ) , but you can see it at www.soluka.com

    Many thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: URL Parameter Passing

    Post the entry that you are attempting to use and the file name & location in the file where you are attempting to place it
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: URL Parameter Passing

    Its on the main page. I am trying to use the parameter in the
    TPL_INDEX_CATEGORIES
    section to limit the number of manufacturers or categories.
    What I am doing is using this variable to modify the select statement to include all categories or limit them to those with a sort_order of less than 50.

    At the moment, on the site (www.soluka.com) I am displaying the passed parameter to check, but its blank.

    Thanks

  4. #4
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: URL Parameter Passing

    Hi, welcome to Zen-Cart's forum.

    Would it be possible to post this code block with the variable you're using ? It would be easier for support.

  5. #5
    Join Date
    Jun 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: URL Parameter Passing

    Just in case anyone is following this, I worked it out......
    use $_GET('param_name') instead of just relying on param_name to be there

  6. #6
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: URL Parameter Passing

    Ahh ! now I know what you were looking for:

    PHP Code:
    zen_get_all_get_params(array('your_action_query''action')) 
    change the your_action_query word with your specific action target query.

 

 

Similar Threads

  1. v150 Pre Select Attributes With Parameter in URL
    By ShopVille in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 3 Feb 2015, 10:31 PM
  2. v151 Option Value URL parameter?
    By philip937 in forum General Questions
    Replies: 13
    Last Post: 14 Dec 2014, 05:58 AM
  3. How to suppress URL &sort= Parameter?
    By rarpsl in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Jan 2012, 11:11 PM
  4. Passing product Name in the URL?
    By LeroyBrown in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Feb 2008, 02:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg