Forums / Templates, Stylesheets, Page Layout / Show message when product added to cart

Show message when product added to cart

Locked

Started by gomlers on 11 Sep 2010, 9:51 PM · Views: 998

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
11 Sep 2010, 9:51 PM
#1
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Show message when product added to cart

Hello!

I thought I could use the messagestack to show another message when customer adds product to cart, but nothing exept the messagestack-message appears.

What I want to do:

I want to use cross-sell-module, to show related product when customer have added product 1 in cart, at the same time he gets the "Product added to cart message".

What is statement could I use to do this?

11 Sep 2010, 10:04 PM
#2
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Re: Show message when product added to cart

I found a solution, although it's not very good, but it works..

<?php
if ($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) {
echo "Message when product in cart!";
}
?>

I would wish someone could help me still though - because I just want to place the message ONCE, and not all the time while the products is in the cart.

Anyone?

12 Sep 2010, 1:06 AM
#3
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Re: Show message when product added to cart

Have you looked to see if any of the Cross Sell mods can do this for you?

-lindasdd

12 Sep 2010, 2:07 AM
#4
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Re: Show message when product added to cart

As I said, I will be using a cross-sell mod, but I want to show the cross-sells mod's content underneath the line that says "Product added to cart"...

But never mind, I found a way, and it's working good!

Thank you anyway! :)