close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Ecart Store Details in Database issue...

Thread began 10/06/2011 11:12 am by daniel279790 | Last modified 10/07/2011 6:23 am by daniel279790 | 599 views | 2 replies |

daniel279790

Ecart Store Details in Database issue...

Hi There
I've been successfully using the 'Store Cart Details in Database' feature for a couple of years now and it's always worked well.

But now I seem to be having a problem with one of my customers who is saving their cart (to retrieve at a later date) but when they return it hasn't saved their order.

Everyone else seems to be using the feature just fine. I'm now thinking the issue with this particular customer is he's trying to save extremely large shopping carts 600+ items, as when I got him to do a test and only save 2 items it saved just fine! But then when he tried to add a large order again it didn't save and actually deleted the older (2 item test).

Is there a size restriction on saving carts to a database or can anyone think of any other reasons why saving very large carts would make it not save and then their past save in the database disaspear?

I'm using Ecart 4.5.2 in Dreamweaver CS5 and the database is a basic online phpMyAdmin database.

Many Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

the way the store order details works is to loop through each line item in the cart and perform an INSERT operation to the MySQL database.

If you have 600 line items in the cart, this will cause the loop to take a little while to complete all 600 inserts.

most likely this is causing the script to exceed the php Max Execution Time. this is a setting in the php.ini that limits the amount of time a php script can run for

you can try adding the following code at line 1 of the page with the store order details behavior on it to increase the max execution time setting to infinity:

php:
<?php set_time_limit(0); ?>




it's also possible that the MySQL server has a limit on the number of INSERTS that can be processed in a certain time period, if that's the case, you will need to contact the host.



ass for overwriting the order, the store order summary behavior sets a session variable that is used as the OrderID if this session is not cleared after the order is stored, it will overwirte the previous order. Most likely when you tested the second time, you did not close the browser window first so the previous order session was still alive.

Sign in to reply to this post

daniel279790

Once again Jason thanks for your help.
I'll add that code and hopefully it will sort it. :)

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...