Post by celestial » Fri Jun 03, 2011 10:20 pm

Message of Sucess of Add to Cart, Add to Whishlist and Add to Compare, in NEW POSITION close to ADD TO CART

DONT DO A GLOBAL REPLACE - DONT DO A GLOBAL REPLACE


In catalog\view\theme\default\stylesheet\stylesheet.css

INSERT: (you can change the spanish word "mensajes" for your language)

#mensajes {
padding: 0px 0px;
}

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


In catalog\view\theme\default\template\product\product.tpl

Insert below the closing </div> of <div class="cart">

<div id="mensajes"></div>


******* (my code is different because i modified with a back button, dont copy this code is only for illustration) ****************

<div class="cart">
<div><?php echo $text_qty; ?>
<input type="text" name="quantity" size="2" value="<?php echo $minimum; ?>" />
<input type="hidden" name="product_id" size="2" value="<?php echo $product_id; ?>" />
&nbsp;<a id="button-cart" class="button"><span><?php echo $button_cart; ?></span></a>&nbsp;&nbsp;&nbsp;<a onclick="javascript:history.go(-1)" class="button"><span><?php echo $text_go_back; ?></span></a></div>
<div><span>&nbsp;&nbsp;&nbsp;<?php echo $text_or; ?>&nbsp;&nbsp;&nbsp;</span></div>
<div><a onclick="addToWishList('<?php echo $product_id; ?>');"><?php echo $button_wishlist; ?></a><br />
<a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a></div>
<?php if ($minimum > 1) { ?>
<div class="minimum"><?php echo $text_minimum; ?></div>
<?php } ?>
</div>
<div id="mensajes"></div>

******************************************

In the same file

FIND:

$('#menu')

Change to

$('#mensajes')

(2 times)

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


In catalog\view\javascript\common.js

Find #menu in:

function addToCart(product_id)
function addToWishList(product_id) {
function addToCompare(product_id) {

change to #mensajes

**********************************************

That is, and Please comment
mensaje.jpg

mensaje.jpg (52.54 KiB) Viewed 4788 times


Celestial - Martín Abel Rosales
WhatsApp: 50671482211
Email: martinrosales2012@hotmail.com
Skype: martin.abel.rosales
San José , Costa Rica


User avatar
Expert Member

Posts

Joined
Sat Mar 20, 2010 4:19 am
Location - Costa Rica

Post by Qphoria » Fri Jun 03, 2011 10:36 pm

I did a global replace.. now my site doesn't work. ???

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by celestial » Fri Jun 03, 2011 10:42 pm

Nice Q are you jocking, this is because in other places ID #menu is part of the menu principal

Celestial - Martín Abel Rosales
WhatsApp: 50671482211
Email: martinrosales2012@hotmail.com
Skype: martin.abel.rosales
San José , Costa Rica


User avatar
Expert Member

Posts

Joined
Sat Mar 20, 2010 4:19 am
Location - Costa Rica

Post by seanmichael » Fri Jun 03, 2011 10:46 pm

is there a demo of what your talking about here?...I visited your site and you running an older version of OC

New member

Posts

Joined
Thu Oct 14, 2010 2:02 am

Post by celestial » Fri Jun 03, 2011 10:47 pm

I am in local

Celestial - Martín Abel Rosales
WhatsApp: 50671482211
Email: martinrosales2012@hotmail.com
Skype: martin.abel.rosales
San José , Costa Rica


User avatar
Expert Member

Posts

Joined
Sat Mar 20, 2010 4:19 am
Location - Costa Rica

Post by Qphoria » Fri Jun 03, 2011 10:53 pm

celestial wrote:Nice Q are you jocking, this is because in other places ID #menu is part of the menu principal
8)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by marvmen21 » Sat Jun 04, 2011 2:39 am

Great Work Celestial!

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by celestial » Sat Jun 25, 2011 12:24 am

If you have the latest actualization

They change #menu to #notification

Celestial - Martín Abel Rosales
WhatsApp: 50671482211
Email: martinrosales2012@hotmail.com
Skype: martin.abel.rosales
San José , Costa Rica


User avatar
Expert Member

Posts

Joined
Sat Mar 20, 2010 4:19 am
Location - Costa Rica

Post by peecha85 » Sat Jun 25, 2011 1:42 am

worked!
thanks

Active Member

Posts

Joined
Tue May 11, 2010 10:28 pm

Post by celestial » Sat Jun 25, 2011 1:45 am

Thank you! Works great!
Maybe you also know how to change the design of notification (so it looks like green success notification instead of looking like warning)?

in common.js

line 119, 177 and 199
$('.attention').fadeIn('slow');
change to
$('.sucess').fadeIn('slow');

in product.tpl
line 333
$('.attention').fadeIn('slow');
change to
$('.sucess').fadeIn('slow');

My files are super changed, please try maybe i confuse the line numbers.

Celestial - Martín Abel Rosales
WhatsApp: 50671482211
Email: martinrosales2012@hotmail.com
Skype: martin.abel.rosales
San José , Costa Rica


User avatar
Expert Member

Posts

Joined
Sat Mar 20, 2010 4:19 am
Location - Costa Rica

Post by aaronkr » Sun Jul 24, 2011 6:59 am

Is there a way to customize the success "product added to cart" message? Can I change what text show up and how big the box is, and colors? I can't figure this out. Has anyone done this?

Newbie

Posts

Joined
Fri Jul 22, 2011 8:13 am
Who is online

Users browsing this forum: No registered users and 8 guests