Help - Search - Members - Calendar
Full Version: Add to Basket Notification
CubeCart Forums > CubeCart Version 3 > Installation & Upgrade Help (Version 3)
gavtauber
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
roban
===============================================================================
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.