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.
Re: Shopping Cart - Add to Cart not working, using TM template
Quote:
Originally Posted by
Website Rob
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)
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.
Re: Shopping Cart - Add to Cart not working, using TM template
Quote:
Originally Posted by
Website Rob
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.
Re: Shopping Cart - Add to Cart not working, using TM template
Quote:
Originally Posted by
Website Rob
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.
Re: Shopping Cart - Add to Cart not working, using TM template
Quote:
Originally Posted by
DrByte
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. :rotflmao: :laugh:
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.
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
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
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.
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.