Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,606
    Plugin Contributions
    1

    Default Shopping Cart - Add to Cart not working, using SEO mod and TM template

    Have a Client with TM Template (yes, I know) who had 1.3.7 version working fine. Did an upgrade to 1.3.8a and now have this problem.

    Choosing a Category you get the Product Listing page.

    If you choose "Buy Now" (this uses a URL) it gets added to the Shopping Cart.

    If you choose "Details" then "Add to Cart" (this uses Form code), msg. says "Your Shopping Cart is empty".

    The above happens with both; logged in and not logged in.

    Appears there is something different between using a URL and Form code, for adding to the cart.


    Have confirmed files that should have been updated have been and everything else works as it should.

    Would anyone know where to look for the answer to this problem?


    Edit:
    One other thing, this account is with another Hoster and there are some cURL problems.

    ---
    CURL requires SSL support. Please notify webmaster or hosting company. 1 => libcurl was built with SSL disabled, https: not supported!

    CURL problems detected: 28 => connect() timed out!
    ---

    As payments were going through just fine before, not sure if the cURL problem is related to the above problem but mention it for clarification. I've also used the Debug Module/file [enable_error_logging.php] but no errors reported, no log file created.
    Last edited by Website Rob; 18 Mar 2008 at 11:00 PM.
    The learning is in the doing.

    Potent Products

  2. #2
    Join Date
    Jan 2004
    Posts
    65,335
    Blog Entries
    7
    Plugin Contributions
    229

    Default Re: Shopping Cart - Add to Cart not working, using TM template

    Quote Originally Posted by Website Rob View Post
    If you choose "Details" then "Add to Cart" (this uses Form code), msg. says "Your Shopping Cart is empty".

    Appears there is something different between using a URL and Form code, for adding to the cart.
    Try comparing View Source between that site and another one that "works" ... when using a form submit option.
    Things like the form's action parameter, and all the supplied input fields (hidden and not).
    What's different?

    Is there an SEO mod installed, which could be busting things?

    Is there a mod-security rule being triggered by anything, according to the server's apache errorlog? (not a PHP log)
    .

    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
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,606
    Plugin Contributions
    1

    Default Re: Shopping Cart - Add to Cart not working, using TM template

    problem site
    <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br /><input type="hidden" name="products_id" value="1415" />

    working site
    <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br /><input type="hidden" name="products_id" value="1" />

    All other Form code is identical as well.


    There is an SEO mod installed, which, although it worked before, does seem to be installed incorrectly. Would an SEO Mod cause problems for a Form submit?


    Not our Server so no Shell access.
    The learning is in the doing.

    Potent Products

  4. #4
    Join Date
    Jan 2004
    Posts
    65,335
    Blog Entries
    7
    Plugin Contributions
    229

    Default Re: Shopping Cart - Add to Cart not working, using TM template

    Quote Originally Posted by Website Rob View Post
    There is an SEO mod installed, which, although it worked before, does seem to be installed incorrectly. Would an SEO Mod cause problems for a Form submit?
    If the action="xxxxx" URL is incorrectly formed, or is getting redirected incorrectly, then yes.
    .

    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.

  5. #5
    Join Date
    Jan 2004
    Posts
    65,335
    Blog Entries
    7
    Plugin Contributions
    229

    Default Re: Shopping Cart - Add to Cart not working, using TM template

    Quote Originally Posted by Website Rob View Post
    All other Form code is identical as well.
    If the HTML is identical, and it was working fine before the upgrade, then you must have fudged something in your upgrade. ... time to fire up your favorite Diff tool.
    .

    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.

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,606
    Plugin Contributions
    1

    Default Re: Shopping Cart - Add to Cart not working, using TM template

    Quote Originally Posted by DrByte View Post
    If the HTML is identical, and it was working fine before the upgrade, then you must have fudged something in your upgrade. ... time to fire up your favorite Diff tool.
    Me??? Fudge??? Not on your life.


    You got the answer though, it was the SEO mod. Forgot about checking "all" the details of the Form and, with the SEO turned OFF, it now works correctly. I can also see now see exactly what should be happening and should be able to fix the SEO mod they are using.

    Thanks again.
    The learning is in the doing.

    Potent Products

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,606
    Plugin Contributions
    1

    Default Re: Shopping Cart - Add to Cart not working, using TM template

    Time to revisit this question.

    In upgrading a site from 1.2.5 to 1.3.8a, I noticed that again we have the Shopping Cart problem and, based on based previous experience, looked for an SEO module. Seems there is a default one (SEFU) which could be causing the problem this time.

    Although I can find associated files I cannot find any 'switch' to turn if OFF. I do know it is ON because I see:

    http://domain.com/shop/pages-product...d-tickets.html

    domain.com/shop/pages-productinfo/category-148/product-1080/festivals-north-wales-summer-advanced-tickets.html
    The learning is in the doing.

    Potent Products

  8. #8
    Join Date
    Jan 2004
    Posts
    65,335
    Blog Entries
    7
    Plugin Contributions
    229

    Default Re: Shopping Cart - Add to Cart not working, using SEO mod and TM template

    You might try looking up this value in the configuration table, and ensuring it's set to false: SEARCH_ENGINE_FRIENDLY_URLS
    .

    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.

  9. #9
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,606
    Plugin Contributions
    1

    Default Re: Shopping Cart - Add to Cart not working, using SEO mod and TM template

    Thank you, that worked a treat.

    While we're on the Subject, I cannot find much information regarding default SEFU. Seems somewhat of a little known feature.

    As it is still included is it a recommended feature or something Grandfathered from the earlier days? With the various SEO modules available I'm wondering why the Wheel is trying to be reinvented.
    The learning is in the doing.

    Potent Products

  10. #10
    Join Date
    Jan 2004
    Posts
    65,335
    Blog Entries
    7
    Plugin Contributions
    229

    Default Re: Shopping Cart - Add to Cart not working, using SEO mod and TM template

    It is a disabled feature at the present time due to quirks therein, and technology limitations. It was inherited unfortunately.

    There is not, as far as I've seen, any reliable method to do SEFU without requiring mod-rewrite or other such services at the webserver level. Thus, there are dependencies which cannot be counted upon.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Add to shopping cart button not working
    By dallison in forum General Questions
    Replies: 7
    Last Post: 8 Jan 2016, 06:42 AM
  2. Shopping Cart Product link not working - SEO URL problem
    By oberheimer in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 1 Nov 2011, 12:03 PM
  3. Add To Cart Not Working On My Template
    By CompuWeb in forum General Questions
    Replies: 4
    Last Post: 18 Feb 2011, 12:15 AM
  4. Replies: 2
    Last Post: 24 Jun 2010, 11:20 PM
  5. Shopping Cart Product link not working - SEO URL problem
    By divaboutiques in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 6 Jan 2010, 07:11 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