Guest gavtauber Posted April 4, 2007 Share Posted April 4, 2007 Hello, I noticed there is an Add to Basket Notification mod on the free mods section of Cubecart.org but I cant seem to download it anymore more some reason. I have used it before and it was great but I cant remember how to do it now. Can anybody help me please. Thanks Quote Link to comment Share on other sites More sharing options...
roban Posted April 4, 2007 Share Posted April 4, 2007 =============================================================================== FILE: skins/{yourskin}/styleTemplates/content/viewProd.tpl =============================================================================== +++-------------------------------------------------------------------------- FIND this code +++-------------------------------------------------------------------------- <!-- BEGIN: prod_true --> <strong>{LANG_DIR_LOC}</strong> {CURRENT_DIR} +++-------------------------------------------------------------------------- INSERT this block AFTER it +++-------------------------------------------------------------------------- <p class="notify">{CART_FEEDBACK}</p> =============================================================================== @@@ END @@@ Save and close skins/{yourskin}/styleTemplates/content/viewProd.tpl =============================================================================== =============================================================================== FILE: includes/content/viewProd.inc.php =============================================================================== +++-------------------------------------------------------------------------- FIND this line of code around line 68 +++-------------------------------------------------------------------------- $view_prod->assign("TXT_PRODTITLE",validHTML($prodArray[0]['name'])); $view_prod->assign("TXT_DESCRIPTION",$prodArray[0]['description']); +++-------------------------------------------------------------------------- INSERT this block AFTER it +++-------------------------------------------------------------------------- //Cart Feedback if (isset($_GET['added'])){ $view_prod->assign("CART_FEEDBACK",$lang['front']['viewProd']['cart_notify']); } else { $view_prod->assign("CART_FEEDBACK", ""); } //Cart Feedback =============================================================================== @@@ END @@@ Save and close includes/content/viewProd.inc.php =============================================================================== =============================================================================== FILE: includes/boxes/shoppingCart.inc.php =============================================================================== +++-------------------------------------------------------------------------- FIND this line of code around line 77 +++-------------------------------------------------------------------------- // prevents refresh adding extras to the basket header("Location: index.php?act=viewProd&productId=".$_POST['add']); exit; +++-------------------------------------------------------------------------- REPLACE WITH +++-------------------------------------------------------------------------- // prevents refresh adding extras to the basket header("Location: index.php?act=viewProd&productId=".$_POST['add']."&added=true"); exit; =============================================================================== @@@ END @@@ Save and close includes/boxes/shoppingCart.inc.php =============================================================================== =============================================================================== FILE: language/en/lang.inc.php =============================================================================== +++-------------------------------------------------------------------------- FIND this code +++-------------------------------------------------------------------------- 'prod_opts' => "Product Options:", 'prod_not_found' => "That product could not be found.", +++-------------------------------------------------------------------------- INSERT this line AFTER it +++-------------------------------------------------------------------------- 'cart_notify' => "Item successfully added to your cart", =============================================================================== Save and close language/en/lang.inc.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.