Announcement

Collapse
No announcement yet.

Variable url structure

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Variable url structure

    What would be the correct url structure for listing products by a specific variable

    Example
    If i want to send a link to someone listing all the books by Stephen King I might us something like...

    https://www.example.co.uk/cgi-bin/?AUTHOR=StephenKing

    Or if I want to show only 200 litre fish tanks

    https://www.example.co.uk/cgi-bin/?VOLUME=200


    James

    #2
    Hi you would think this would be easy, and it kind of is when you know but it is a bit of a fiddle.

    For example this link shows all "brushcutters" with the brand of "Stiga":

    https://www.mowermagic.co.uk/cgi-bin...RCH&SO=8_6_3_0


    It could be shortened to
    https://www.mowermagic.co.uk/cgi-bin...RCH&SO=8_6_3_0


    The key bits are
    &S_1_66372_0=Brushcutter

    &S_1_66175_0=stiga

    So you need to find out what your "variables" are called in the backend - they will have different names to mine.
    The only way I could find this out was to get to the page where there is advanced search.

    So on your site do a basic search and you should end up with a screen where you can refine the search
    See this - there is a column on the side where you refine the search: https://www.mowermagic.co.uk/cgi-bin...r&ACTION=Go%21

    Change a couple of the search variables and hit search - the URL that appears will have your variable names within it, like the first link I put on here.
    You can then see the names it uses for the variables.

    Hope that helps
    Jez

    Comment


      #3
      Thanks Jez, I'll give it a go!

      Comment


        #4
        Note the forum shortens the URL - click on it for the actual URL

        Comment

        Working...
        X