0

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?

0

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);
| improve this answer | |
  • thanks, but I want to show the slider to all but the promotional banner created for that slider to some specific customers. – Yogita Oct 8 '16 at 6:54
  • specific means particular customer group or customer name.. – lalit mohan Oct 8 '16 at 6:55
  • we can try for both – Yogita Oct 8 '16 at 7:39
  • can you share your code .. or put these validation(above code) in your extension controller so it can be visible to particular – lalit mohan Oct 8 '16 at 7:59
  • check within banner loop and get banner id or title to find that banner – lalit mohan Oct 8 '16 at 8:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.