close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Custom Continue Shopping Button

Thread began 6/21/2012 7:07 pm by peterm.bruce341471 | Last modified 6/22/2012 8:20 am by peterm.bruce341471 | 951 views | 2 replies |

peterm.bruce341471

Custom Continue Shopping Button

Hi,

I have a cart which works fine but I've used the 'if ($lbp_Cart->IsEmpty())' to show another table with an empty cart. This works fine. So now if the user adds something to the cart then views cart and clears cart the cart, the page now shows the empty cart table.

Problem is the continue shopping button will obviously have the cart page stored in its variable using this method. I don't want to use javascript history back 2 as someone coming to an empty cart straight from clicking the view cart button could possibly go back too far, even off site.

Is there a solution? Can I change the variable?

Thanks.

(Sorry - I hope I didn't make that complicated...love eCart)

Sign in to reply to this post

Jason ByrnesWebAssist

the add to cart button creates a session named WAEC_ContinueRedirect that is used by the continue shopping button.

you could add the following code to line 1 of the cart display page to set that variable if it has not been set yet:

php:
<?php @session_start(); if(!isset($_SESSION['WAEC_ContinueRedirect'])) $_SESSION['WAEC_ContinueRedirect'] = "/index.php"?>
Sign in to reply to this post

peterm.bruce341471

Success

Jason,

Thanks, I've got it working now - I split the cart files up and used a <a href> to the cart.php in the view cart button. I'll send a link to the site when it's finished, the cart works terrific!

Thanks,

Peter

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