Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2010
    Posts
    16
    Plugin Contributions
    0

    help question Custom 'Buy Now' button on the home page leads to HTTP 406 error

    Having an issue whereby clicking on the 'Buy Now' button on the home page leads to HTTP 406 error. This only applies to products with attributes.

    Also if I click back after the error & then re-try the 'Buy Now' button it does take me into the product page as intended.

    Anyone come across something similar?

  2. #2
    Join Date
    Jan 2004
    Posts
    58,263
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: 'Buy Now' button on the home page leads to HTTP 406 error

    Got a URL where this can be seen in action?
    Plus, please click Reply below and answer all the questions in the Posting Tips section.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Sep 2010
    Posts
    16
    Plugin Contributions
    0

    Default Re: 'Buy Now' button on the home page leads to HTTP 406 error

    Thanks for the response DrByte. The site is www.123av.co.uk.

    Its running the latest version of Zen Cart 1.3.9h. Add-ons include Ceon URI Mapping, Google Merchant Center, Easy Populate & this featured product module

    http://www.zen-cart.com/index.php?ma...roducts_id=870

    Only been aware of the problem recently. All the mods were added at least 2 months ago.

    Any help would be appreciated

  4. #4
    Join Date
    Jul 2004
    Posts
    130
    Plugin Contributions
    0

    Default Re: 'Buy Now' button on the home page leads to HTTP 406 error

    IF I remember right, it's been awhile since I tried that one, but SEO URL modules wouldn't allow it to work for me when I tried. If I turned those off it will probably work. Going by memory of 2 years ago...Good luck.
    Stampsville

  5. #5
    Join Date
    Jan 2004
    Posts
    58,263
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Custom 'Buy Now' button on the home page leads to HTTP 406 error

    Your "buy now" button is entirely custom, and not part of the Zen Cart core code.

    You're generating links somehow which include a ?action=buy_now parameter slapped haphazzardly onto the end. This is bad, and is akin to what hackers try to do when exploiting vulnerabilities or probing for possible holes. Your server's security system is trapping it and throwing the 406 error.

    Your so-called "SEO" URL rewriter is also complicating things for you, since it masks the proper way of passing parameters.

    You can only have one question-mark in a URL. Your slapping-on of the extra question-mark and a parameter is breaking it.

    You have two options:
    a) Use a proper Zen Cart function to generate the links, instead of randomly hacking something on
    b) At the very least switch to using & instead of ? if you don't want to use the proper Zen Cart approach.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  6. #6
    Join Date
    Sep 2010
    Posts
    16
    Plugin Contributions
    0

    Default Re: Custom 'Buy Now' button on the home page leads to HTTP 406 error

    I appreciate your repsonses & will pass on the comments to our website designer so he can fix the issue.

 

 

Similar Threads

  1. checkout_payment error leads to blank page
    By dbeecken in forum General Questions
    Replies: 5
    Last Post: 26 Apr 2011, 07:20 PM
  2. Add button that leads to new page on product page
    By naz1228 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Sep 2010, 01:48 PM
  3. Ceon manual card module - cc error leads to page not found
    By jenniesummitreks in forum Addon Payment Modules
    Replies: 2
    Last Post: 16 Sep 2009, 09:28 PM
  4. Back Button leads to Page Not Found 404 error
    By wtashby in forum General Questions
    Replies: 1
    Last Post: 2 Sep 2009, 02:13 PM
  5. Back button from shipping info leads to error 404 using German version
    By MStarz in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Sep 2009, 11:14 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
  •