Jump to content

Add to Basket Notification


Guest gavtauber
 Share

Recommended Posts

Guest 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

Link to comment
Share on other sites

===============================================================================

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...