PDA

View Full Version : OSCommerce problems


SursumFilms
11-23-05, 09:46 AM
Hello,

I've just installed OSCommerce and am having some problems. I am getting the same type of error code in different places like this

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-6, 6' at line 1

select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from products p, products_description pd, specials s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and s.status = '1' order by s.specials_date_added DESC limit -6, 6

Despite this, I'm able to add a product, see it in the catalog, select it, add it to my cart, but when I go to checkout, the products in my cart simply disappear and nothing happens. I also notice that I have a secure connection (lock showing) every step until the "Checkout" when the lock disappears and the products also.

Any help?

stevel
11-23-05, 10:31 AM
Look at the "Read Me" threads on this forum listing page...

Brent
11-23-05, 11:30 AM
oSCommerce has a great support site and you'll find a lot of good help there but, I have used it and found it to be too much programming overhead for me. I recommend using ZenCart.

http://www.oscommerce.info/

stevel
11-23-05, 02:11 PM
Zen Cart has its own list of advantages and disadvantages. But the particular issue here is discussed, with a fix, in this very forum.

SursumFilms
11-23-05, 07:51 PM
Steve, I found the answer to the error message, but I'm still unable to complete a transaction. Everything works as far as adding products, adding a product to the cart... but when I click "checkout", the cart suddenly says "Your cart is empty."

stevel
11-23-05, 08:54 PM
You're losing your session. Possibly misconfigured cookie settings that prevent the session from transferring from non-secure to secure. Common causes of that:

1. Setting HTTPS_COOKIE_DOMAIN to be the same as HTTP_COOKIE_DOMAIN when using shared SSL (as on PowWeb). HTTPS_COOKIE_DOMAIN must be the domain from HTTPS_SERVER (eg. 'yourdomaincom.secure.powweb.com').
2. Setting Force Cookie Use to true in Admin under Sessions - that doesn't work with shared SSL

SursumFilms
11-23-05, 10:05 PM
Steve,

I don't know how to thank you! Turns out #1 you mentioned was no problem... the settings were correct. But #2 was the culprit. The moment I switched the "Force Cookie" to false, it all started working fine.

A thousand thanks!