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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add to Cart ... Cart Total a Step Behind

Thread began 10/05/2009 2:39 am by Codesnap | Last modified 10/06/2009 1:19 pm by Jason Byrnes | 865 views | 3 replies |

Codesnap

Add to Cart ... Cart Total a Step Behind

Noticed this a couple of times with sites I've built with Super Suite & eCart, but I've built a simple add-to-cart section on a couple of pages of a site I'm developing.

new.php?s=3&p=11

Seems to work alright, but the cart total (bottom option in the left hand menu) is always a step behind where it should be. I've never really solved the issue in previous sites I've built and am keen to learn why it does this.

Any thoughts on why?

Sign in to reply to this post

Jason ByrnesWebAssist

most likely the problem is in the order of the code. if the code that displays the cart total occurs on the page before the add to cart code, this could explain the problem.

It could also be that the cart contents just need to be updated before the cart total is written.

Try adding:

php:
$CartName->GetContent();




just be fore the code that outputs the total to refresh the cart.

Sign in to reply to this post

Codesnap

Hmmm ...

Doesn't seem to have made any difference, Jason.

new.php?s=3&p=13

I've opened up that menu item to be displayed whether there's a product in the cart or not.

Is there any way I can force a refresh of the page after something has been added to the cart? If you add to cart it'll show $0.00, if you then refresh it'll display the total.

Sign in to reply to this post

Jason ByrnesWebAssist

It's probably the code order then.

Can you send a copy of your page in a zip archive so I can take a look at the code.

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...