I have Banner Slider extension on my website. I would like to add Promotional Banner that appears for some customer after login. For this, is there any extension or need to customize that slider?
1 Answer
put this on where you show banner. template file if you want to show after login login or not
<?php
if(Mage::getSingleton('customer/session')->isLoggedIn()){
//logged in show banner slider here... put your code here
}
?>
if you want to show some specific customer group. e.g General, wholesale. etc
$groupname = Mage::getModel('customer/group')->load($customerGroupId)->getCustomerGroupCode();
if($groupname='General'){
do this... or show banner /code here..
}
if want to show to specfic customer by name or other attributes . find customer data
$customer_data=Mage::getSingleton('customer/session')->getCustomer();
echo "<pre>" print_r($customer_data);
-
thanks, but I want to show the slider to all but the promotional banner created for that slider to some specific customers.– YogitaCommented Oct 8, 2016 at 6:54
-
specific means particular customer group or customer name.. Commented Oct 8, 2016 at 6:55
-
-
can you share your code .. or put these validation(above code) in your extension controller so it can be visible to particular Commented Oct 8, 2016 at 7:59
-
check within banner loop and get banner id or title to find that banner Commented Oct 8, 2016 at 8:46