Forums / Templates, Stylesheets, Page Layout / Populate the image banner accordingly for the product

Populate the image banner accordingly for the product

Locked

Views: 1,210

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
19 Apr 2010, 11:00 PM
#1
arunkarthik avatar

arunkarthik

New Zenner

Join Date:
Mar 2010
Location:
Ooty, India
Posts:
40
Plugin Contributions:
0

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???????? :frusty::frusty:

20 Apr 2010, 6:01 AM
#2
arunkarthik avatar

arunkarthik

New Zenner

Join Date:
Mar 2010
Location:
Ooty, India
Posts:
40
Plugin Contributions:
0

Re: Populate the image banner accordingly for the product

guys waitin for ur golden replies!

26 Apr 2010, 8:04 AM
#3
arunkarthik avatar

arunkarthik

New Zenner

Join Date:
Mar 2010
Location:
Ooty, India
Posts:
40
Plugin Contributions:
0

Re: Populate the image banner accordingly for the product

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. :(

27 Apr 2010, 1:30 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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? :unsure:

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!

28 Apr 2010, 6:59 AM
#5
arunkarthik avatar

arunkarthik

New Zenner

Join Date:
Mar 2010
Location:
Ooty, India
Posts:
40
Plugin Contributions:
0

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.

28 Apr 2010, 3:37 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

<?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!

29 Apr 2010, 6:38 AM
#7
arunkarthik avatar

arunkarthik

New Zenner

Join Date:
Mar 2010
Location:
Ooty, India
Posts:
40
Plugin Contributions:
0

Re: Populate the image banner accordingly for the product

Thanks For ur reply!! :smile:

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