Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: product_id parameter in URL twice, after adding items to cart?

    Check the function ... you can pass it the things to drop from the paramaters as well as what to add ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: product_id parameter in URL twice, after adding items to cart?

    NOTE: download the v1.3.0.2 and the change log and what's new is in there ...

    You really do want these fixes now rather than later ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jun 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: product_id parameter in URL twice, after adding items to cart?

    Ok thanks Ajeh, yeah I'll take a closer look at the function, that's handy.

    So this means give me all the parameter's back but the action right?
    PHP Code:
    zen_get_all_get_params(array('action')) 
    So then this would mean give me everything back but NOT the product's id?
    PHP Code:
    zen_get_all_get_params(array('products_id')) 
    Ok I just tested it out, I get it cool.

    Now I'm wondering, how would you block more then one parameter form being returned? So say you didn't want the action AND the product id to NOT be returned?

    what would be handy for me is to make a loop that dynamcially creates my form <input> elements by what's returned from the zen get parameters function.
    I'm working on that one now. Unless you have an easier way to dynamically generate the form buttons?

    The only bad thing about the form buttons is that it creates a lot more code for the spiders to have to sift through, and I haven't tested it yet, but I"m not even sure if it will come out as XHTML either? I wonder if all the form code will dilute the SEO results, because the keyword density would be lower? I bet keyword density only deals with the visible text? I wonder about this. Either way I know I don't want the spiders linking to my pages with buy_now in the url on one page and on another page it's productname-p-1243.html causing duplicate content penalites etc.

    Anybody else have any thoughts on this. It's funny I really didn't think about it till I started crawling my own site with my own search spiders, then you see the problems right away. So for a 40,000 product site, it would have 500,000 links for a spider to have to follow as oppose to 45,000 if you do everything you can to avoid that.

    The spider's will be adding items to your shopping cart hahaha I think too, which could make for huge number of noise links on your site? Unless there is some code to prevent this that I missed? I know robots are blocked from creating sessions, but what about following hyperlinks to add items to cart? that would be bad if not.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: product_id parameter in URL twice, after adding items to cart?

    /me peeks over at the neat little toy in the Admin ... Tools ... Developer's Tool Kit ...

    Gee ... wonder what would happen if I past in the bottom input box:

    zen_get_all_get_params(array
    And then searched the whole Catalog ...

    wow!! ... lookie at all the neat code come up and usage ideas ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Weird URL:s after adding products to cart.
    By kazie in forum General Questions
    Replies: 1
    Last Post: 18 Jun 2010, 07:28 PM
  2. Cart Empty After Adding Items? Things Disappearing!
    By lhardie in forum General Questions
    Replies: 6
    Last Post: 19 Aug 2009, 05:29 PM
  3. Index Listing Items Appear Twice after upgrading
    By ptoly in forum Upgrading from 1.3.x to 1.3.9
    Replies: 11
    Last Post: 14 Jun 2009, 02:01 AM
  4. Shopping Cart not showing up after adding items
    By russa2 in forum General Questions
    Replies: 3
    Last Post: 30 Jan 2009, 03:25 PM
  5. Adding items to cart via URL
    By chachix in forum General Questions
    Replies: 5
    Last Post: 28 Feb 2008, 08:28 PM

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