Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    318
    Plugin Contributions
    0

    Default URL Parameters - Adding to Cart

    When adding a product to cart from the product_listing page. It carries over some extra url parameters.

    Code:
    index.php?main_page=shopping_cart&sort=2a&products_id=504
    However, when adding to cart from product_info_display. The parameters seem to get cleared.

    Code:
    index.php?main_page=shopping_cart
    Is it important to have these parameters remain in the url once added to cart?

    How could they be removed?

    Thanks in advance.

    ~D

    zen1.3.8a

  2. #2
    Join Date
    Jan 2004
    Posts
    66,350
    Blog Entries
    7
    Plugin Contributions
    271

    Default Re: URL Parameters - Adding to Cart

    I think it's more important to first understand why you're even asking these questions.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    318
    Plugin Contributions
    0

    Default Re: URL Parameters - Adding to Cart

    With the products_id in the URL. The shopping cart page shows the breadcrumb trail and with out it. It does not. I want it to be consistent

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

    Default Re: URL Parameters - Adding to Cart

    I am guessing that you are using buy now buttons on your Product Listing ...

    The products_id was removed from the URL in v1.3.9h ... you might look to upgrade your site to that ...
    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: v1.5.5]
    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!

  5. #5
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    318
    Plugin Contributions
    0

    Default Re: URL Parameters - Adding to Cart

    Ajeh,

    Thanks for the quick response on this. I am in the process of upgrading to 1.5, although the live site is 1.3.8a.

    I was able to find where it was adding the parameter in the code, interestingly enough the solution was commented out, right above the line that needed to be changed.

    Are there any other considerations I should look for with this change?

    Thanks for your help.

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

    Default Re: URL Parameters - Adding to Cart

    The differences in v1.3.8 and v1.3.9h are so vast, I cannot, without a ton of work, go through everything to figure out what else might need changing, if anything ...

    Once you are upgraded, this should all resolve itself for you ...
    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: v1.5.5]
    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!

  7. #7
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    318
    Plugin Contributions
    0

    Default Re: URL Parameters - Adding to Cart

    Thank you

 

 

Similar Threads

  1. v155 Detailed description of the sanitation of url parameters
    By torvista in forum Contribution-Writing Guidelines
    Replies: 5
    Last Post: 17 May 2021, 11:34 AM
  2. Weird URL:s after adding products to cart.
    By kazie in forum General Questions
    Replies: 1
    Last Post: 18 Jun 2010, 07:28 PM
  3. Adwords and URL parameters and Auto-Tagging...
    By keylesslocks in forum General Questions
    Replies: 0
    Last Post: 26 Aug 2008, 07:11 PM
  4. Adding items to cart via URL
    By chachix in forum General Questions
    Replies: 5
    Last Post: 28 Feb 2008, 08:28 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR