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; ?>" />
<a id="button-cart" class="button"><span><?php echo $button_cart; ?></span></a> <a onclick="javascript:history.go(-1)" class="button"><span><?php echo $text_go_back; ?></span></a></div>
<div><span> <?php echo $text_or; ?> </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
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; ?>" />
<a id="button-cart" class="button"><span><?php echo $button_cart; ?></span></a> <a onclick="javascript:history.go(-1)" class="button"><span><?php echo $text_go_back; ?></span></a></div>
<div><span> <?php echo $text_or; ?> </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
Celestial - Martín Abel Rosales
WhatsApp: 50671482211
Email: martinrosales2012@hotmail.com
Skype: martin.abel.rosales
San José , Costa Rica
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
is there a demo of what your talking about here?...I visited your site and you running an older version of OC
If you have the latest actualization
They change #menu to #notification
They change #menu to #notification
Celestial - Martín Abel Rosales
WhatsApp: 50671482211
Email: martinrosales2012@hotmail.com
Skype: martin.abel.rosales
San José , Costa Rica
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.
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
Who is online
Users browsing this forum: No registered users and 7 guests