Jump to content
freakystreak

$messagestack into modal - can it be done?

Recommended Posts

Can you have the $messagestack output as a pop-up or modal rather than appear at the top of the page? I want to have it working where if anything s added to the cart then a modal informs me that the product has been added. I'm using 2.3.4.1. CE Frozen. Is it simply a case of changing this block of code taken from /includes/modules/product_listing.php:

if ($messageStack->size('product_action') > 0) {
    echo $messageStack->output('product_action');
  }

Any thoughts or suggestions would be greatly appreciated.


Ah, the world wide web. What a wonderful place.

Share this post


Link to post
Share on other sites

Don't try to fit a square peg in a round hole. 

It would be better (and easier) to build out an ajax cart. If you want to see an example of such in action, try https://template.me.uk/28d2019/product_info.php?products_id=28 which has (I think) the type of function you are talking about.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

Thanks mate, that's exactly as i want it... Now how to do it? LOL... 


Ah, the world wide web. What a wonderful place.

Share this post


Link to post
Share on other sites

@freakystreak  We have burt's module (as seen in the demo posted above) on our shop and it works great. It is part of burt's 28 days 2019 collection of modules which are all really useful and heartily recommend you contact him for them and help support the community edition project at the same time. Don't take this post the wrong way, just that the support of shop owners (and those that give their time) keeps the community edition going. Best of luck :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×