Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2010
    Location
    Ooty, India
    Posts
    40
    Plugin Contributions
    0

    Default Populate the image banner accordingly for the product

    Hi there...


    Actually i'm using Integrated COWOA mod...

    All i need is banner image should be populated according to the product selected...

    tis shud happen still the last checkout_success page...

    i tries all the possible ways no fixes..

    can anybody guide me????????

  2. #2
    Join Date
    Mar 2010
    Location
    Ooty, India
    Posts
    40
    Plugin Contributions
    0

    Default Re: Populate the image banner accordingly for the product

    guys waitin for ur golden replies!

  3. #3
    Join Date
    Mar 2010
    Location
    Ooty, India
    Posts
    40
    Plugin Contributions
    0

    Default Re: Populate the image banner accordingly for the product

    PHP Code:
    if($_GET['categories_id']=49
    {
    $result mysql_query("select categories_image from categories where categories_id=49") ;
    $box mysql_fetch_assoc($result);
    $cat_banner $box['categories_image'];
    unset(
    $box);
    }
    else if(
    $_GET['categories_id']=22)
    {
    $result1 mysql_query("select categories_image from categories where categories_id=22");
    $box mysql_fetch_assoc($result1);
    $cat_banner $box['categories_image'];
    unset(
    $box);

    I'm using this code for dynamic population of image banner in all pages..

    there is no effect!!!

    can anyone see if this code is right?????

    pls help.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Populate the image banner accordingly for the product

    Are you saying that when I add a Product to the shopping cart ... from that point forward a banner associated with the master_categories_id of that Product should be displayed?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Mar 2010
    Location
    Ooty, India
    Posts
    40
    Plugin Contributions
    0

    Default Re: Populate the image banner accordingly for the product

    Yes Your right!!!

    Thanks for your reply.

    I need that particular banner still my checkout_success page!!!

    Pls help.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Populate the image banner accordingly for the product

    You could test for the master_categories_id of the Product and use that to determine the banner to display ...

    The banner to display could be done base on a customization to the banner display based on this by customizing the code, for example in the tpl_main_page.php file:
    Code:
    <?php
      if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
        if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
        }
      }
    ?>
    That instead of sending the SHOW_BANNERS_GROUP_SET3 it would send a banner name based on the categories_id found for the Product based on its master_categories_id ...

    This would allow you to make "Banner Groups" based on the categories_id so that you have the features of the Banner Manager to control the banner displayed ...

    It would take some customization to the code and building a naming convention for the Banner Groups ... but it can be done ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Mar 2010
    Location
    Ooty, India
    Posts
    40
    Plugin Contributions
    0

    Default Re: Populate the image banner accordingly for the product

    Thanks For ur reply!!

    Once when i fix it will update here ASAP!!!

 

 

Similar Threads

  1. Is there any way to set the medium image(_MED) as the default image of the product?
    By mybiz9999 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 15 Aug 2010, 05:22 PM
  2. How do I adjust the column width between the product image and the product name?
    By wiccan0974 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Jun 2010, 10:16 AM
  3. How do i move the EZPages menu bar to the bottom of the banner image?
    By frogpounder in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 May 2009, 04:06 PM
  4. How do I add Banner (Image) in the center column on the main page?
    By kubio in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Mar 2009, 06:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg