Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

remove parms array


hobbynet

Recommended Posts

Hi,

 

I've downloaded and testing now the fuctionality for this great contribution. Right now I don't call the function within the header_tags.php, in stead I call it within each page I need. After my test I would implement it as you suggest.

 

Now I saw the possibility to enhance the remove-parm-array and I added the manufacturers_id.

 

Right now in each page I'm using the function "CanonicalLink" the parm manufacturers_id will be removed in the generated tag <link rel="canonical". This should be the solution for product_info.php but not for the index.php if I select by the manufacturer-drop down.

 

generated canonical tag in (manufacturer-id selected = 62 (in my case Kokam):

 

index.php = http://www.hobbynet.ch/shop/index.php? in stead of http://www.hobbynet.ch/shop/index.php?manufacturers_id=62

 

product_info.php = <link rel="canonical" href="http://www.hobbynet.ch/shop/product_info.php?products_id=1410" /> this is ok to prevent duplicates e.g. <link rel="canonical" href="http://www.hobbynet.ch/shop/product_info.php?manufacturers_id=62&products_id=1410" /> links to the same page due to the products_id=1410

 

question:

Is it possible to enhance the array with the page name as a key? In that way it is possible to set the removed parm for each page seperatly. The lookup code must then be enhanced to search within the array with the current page.

 

Im looking forward to read some lines about.

 

kind regards

 

peter

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...