Forums / Templates, Stylesheets, Page Layout / Hide What's New and Best Sellers Sideboxes

Hide What's New and Best Sellers Sideboxes

Views: 5,103

Results 21 to 40 of 40
27 Jun 2011, 10:33 PM
#21
ajeh avatar

ajeh

Oba-san

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

Hide What's New and Best Sellers Sideboxes

3 or 4 separate boxes or 1 box with 3 or 4 things in it? :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!

27 Jun 2011, 10:42 PM
#22
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Re: Hide What's New and Best Sellers Sideboxes

Ajeh:

3 or 4 separate boxes or 1 box with 3 or 4 things in it? :unsure:

If I can get away with one box and having 3 to 4 things in it and it would serve the same functionality as having separate boxes then I am all for it. It would probably be easier to do right?

27 Jun 2011, 10:52 PM
#23
ajeh avatar

ajeh

Oba-san

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

Re: Hide What's New and Best Sellers Sideboxes

Are you using the Banners All sidebox?

Configuration ... Layout Settings ...

Banner Display Group - Side Box banner_box_all

Then turn it on in Tools ... Layout Boxes Controller ...

The Banners All sidebox allows for multiple banners at the same time to 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!

27 Jun 2011, 11:02 PM
#24
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Re: Hide What's New and Best Sellers Sideboxes

It appears to be on

27 Jun 2011, 11:19 PM
#25
ajeh avatar

ajeh

Oba-san

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

Re: Hide What's New and Best Sellers Sideboxes

You could clone the Banners All sidebox so that you can use it for this ...

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 Jun 2011, 12:27 AM
#26
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Re: Hide What's New and Best Sellers Sideboxes

Ajeh:

You could clone the Banners All sidebox so that you can use it for this ...

Just copy the file to my modules/sidebox/mytemplate file? and use it?

28 Jun 2011, 1:15 AM
#27
ajeh avatar

ajeh

Oba-san

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

Re: Hide What's New and Best Sellers Sideboxes

No ... cloning something means you are using a file or files as a base to build something new ...

If you were to look at:
/includes/modules/sideboxes/banner_box.php
/includes/templates/template_default/sideboxes/banner_box.php

and compare to:
/includes/modules/sideboxes/banner_box2.php
/includes/templates/template_default/sideboxes/banner_box2.php

you would see how they are clones of one another ...

You can clone the Banners All in a similar manner:
/includes/modules/sideboxes/banner_box_all.php
/includes/templates/template_default/sideboxes/banner_box_all.php

/includes/modules/sideboxes/banner_box_all2.php
/includes/templates/template_default/sideboxes/banner_box_all2.php

and each of the ALL to ALL2 and all to all2 ...

Then you need to have the setting for the Configuration ... Layout Settings ...

The Banner Box ALL uses:

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('Banner Display Group - Side Box banner_box_all', 'SHOW_BANNERS_GROUP_SET_ALL', 'BannersAll', 'The Banner Display Group may only be from one (1) Banner Group for the Banner All sidebox<br /><br />Default Group is BannersAll<br /><br />What Banner Group do you want to use in the Side Box - banner_box_all?<br />Leave blank for none', '19', '72', '', '', now());

You can make a new one for the Banner Box All 2 with this in the Tools ... Install SQL Patches ...

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('Banner Display Group - Side Box banner_box_all', 'SHOW_BANNERS_GROUP_SET_ALL2', 'BannersAll2', 'The Banner Display Group may only be from one (1) Banner Group for the Banner All2 sidebox<br /><br />Default Group is BannersAll2<br /><br />What Banner Group do you want to use in the Side Box - banner_box_all2?<br />Leave blank for none', '19', '73', '', '', now());

There are also some Language defines to add ... I would put them into a file called:
/includes/languages/english/extra_definitions/banners_box_all2.php

<?php
// banner_box - all
  define('BOX_HEADING_BANNER_BOX_ALL2','Sponsors2');
  define('TEXT_BANNER_BOX_ALL2','Please Visit Our Sponsors2 ...');

You can define them as you want, these are just to make it obvious on the changes ...

Once everything is cloned and made, you can go to the Tools ... Layout Boxes Controller ... and you will see the new Banner Box All 2 load ... you can now turn that on ...

Make your Banners in the Banner Manager and put them in the Group: BannersAll2

NOTE: once you add the first Banner to the Group:
BannersAll2

it will start to appear in the Dropdown ...

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!

6 Jul 2011, 4:58 PM
#28
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Re: Hide What's New and Best Sellers Sideboxes

Ajeh:

No ... cloning something means you are using a file or files as a base to build something new ...

If you were to look at:
/includes/modules/sideboxes/banner_box.php
/includes/templates/template_default/sideboxes/banner_box.php

and compare to:
/includes/modules/sideboxes/banner_box2.php
/includes/templates/template_default/sideboxes/banner_box2.php

you would see how they are clones of one another ...

You can clone the Banners All in a similar manner:
/includes/modules/sideboxes/banner_box_all.php
/includes/templates/template_default/sideboxes/banner_box_all.php

/includes/modules/sideboxes/banner_box_all2.php
/includes/templates/template_default/sideboxes/banner_box_all2.php

and each of the ALL to ALL2 and all to all2 ...

Then you need to have the setting for the Configuration ... Layout Settings ...

The Banner Box ALL uses:

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('Banner Display Group - Side Box banner_box_all', 'SHOW_BANNERS_GROUP_SET_ALL', 'BannersAll', 'The Banner Display Group may only be from one (1) Banner Group for the Banner All sidebox<br /><br />Default Group is BannersAll<br /><br />What Banner Group do you want to use in the Side Box - banner_box_all?<br />Leave blank for none', '19', '72', '', '', now());

> 
> You can make a new one for the Banner Box All 2 with this in the Tools ... Install SQL Patches ...
> ```
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('Banner Display Group - Side Box banner_box_all', 'SHOW_BANNERS_GROUP_SET_ALL2', 'BannersAll2', 'The Banner Display Group may only be from one (1) Banner Group for the Banner All2 sidebox<br /><br />Default Group is BannersAll2<br /><br />What Banner Group do you want to use in the Side Box - banner_box_all2?<br />Leave blank for none', '19', '73', '', '', now());

There are also some Language defines to add ... I would put them into a file called:
/includes/languages/english/extra_definitions/banners_box_all2.php

<?php // banner_box - all define('BOX_HEADING_BANNER_BOX_ALL2','Sponsors2'); define('TEXT_BANNER_BOX_ALL2','Please Visit Our Sponsors2 ...'); ``` > > You can define them as you want, these are just to make it obvious on the changes ... > > Once everything is cloned and made, you can go to the Tools ... Layout Boxes Controller ... and you will see the new Banner Box All 2 load ... you can now turn that on ... > > Make your Banners in the Banner Manager and put them in the Group: BannersAll2 > > NOTE: once you add the first Banner to the Group: > BannersAll2 > > it will start to appear in the Dropdown ... I followed the steps you provided above, however, the banners are not showing up on my pages? I cloned the "banner_box_all.php" to "banner_box_all2.php" and so on. Can you help me figure out why they aren't showing up? Also, I didn't see the Banner Group "BannerAll2" so I manually added it. Within the Cloned Files, Do I need to change the "ALL to ALL2 and all to all2" not sure if that is what you meant.
6 Jul 2011, 5:29 PM
#29
ajeh avatar

ajeh

Oba-san

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

Re: Hide What's New and Best Sellers Sideboxes

Yes, you on the cloned files you change all:
ALL to ALL2
all to all2

Did you go to the Tools ... Layout Boxes Controller ... and turn on the new sidebox?

Be sure to go to the Configuration ... Layout Settings ... and set the Banner Groups for the new Banners All 2 sidebox ...

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!

6 Jul 2011, 5:59 PM
#30
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Re: Hide What's New and Best Sellers Sideboxes

Ajeh:

Yes, you on the cloned files you change all:
ALL to ALL2
all to all2

Did you go to the Tools ... Layout Boxes Controller ... and turn on the new sidebox?

Be sure to go to the Configuration ... Layout Settings ... and set the Banner Groups for the new Banners All 2 sidebox ...

What about things such as this:
$banners_all->RecordCount() > 0) {

do I need to add "2" to this?

6 Jul 2011, 6:09 PM
#31
ajeh avatar

ajeh

Oba-san

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

Re: Hide What's New and Best Sellers Sideboxes

ALL becomes ALL2

all becomes all2

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!

6 Jul 2011, 6:16 PM
#32
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Re: Hide What's New and Best Sellers Sideboxes

Ajeh:

ALL becomes ALL2

all becomes all2

Fixed it, that looks like all I was missing were the remaining alls. Thank you for your help.

My only question now is how do I remove this set of boxes from the Product ID pages?

6 Jul 2011, 6:36 PM
#33
ajeh avatar

ajeh

Oba-san

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

Re: Hide What's New and Best Sellers Sideboxes

You could customize the code further:

  if ($_GET['products_id'] || SHOW_BANNERS_GROUP_SET_ALL2 == '') {

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!

6 Jul 2011, 6:55 PM
#34
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Re: Hide What's New and Best Sellers Sideboxes

I would place this code into the Banner_box_all2 and place in my override folder? Got it, Worked like a charm :)

6 Jul 2011, 7:55 PM
#35
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Re: Hide What's New and Best Sellers Sideboxes

Ajeh,

I have a question/modification that I haven't been able to find a solution to and thought you might know.

I want to make the products in the center of my site a little more uniform. The product names and prices span too far and I want to limit each product to a specific width to to give it a cleaner look.

On my homepage, you will notice what I am talking about with "New Products for July".

How could I fix this?

7 Jul 2011, 1:07 AM
#36
ajeh avatar

ajeh

Oba-san

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

Re: Hide What's New and Best Sellers Sideboxes

Afraid I am not much of a designer type ... :blink:

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!

23 Jul 2014, 9:43 AM
#37
dysfunctional avatar

dysfunctional

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: Hide What's New and Best Sellers Sideboxes

Ajeh:

Using your templates and overrides, customize the best_sellers.php sidebox with the code in red:
[CODE]
// bof: turn off best sellers on home page
if ($this_is_home_page) {
$show_best_sellers= false;
}
// eof: turn off best sellers on home page

if ($show_best_sellers == true) {

Hi Ajeh, thanks for your code suggestion, I also wanted to hide the bestsellers sidebox on my home page and the solution above worked fine. However, I just realized that I would prefer to have it shown only during product listing. So the customer easily can see the most sold products in the current category the customer is vewing. So I want to hide the bestsellers sidebox on for example "index.php?main_page=logoff", "index.php?main_page=reviews", "index.php?main_page=specials" etc... would love to see a code example where I can add the pages where I don't want the sidebox to show. Could use this for other sideboxes as well.

Thanks!

Best regards

Peter

26 Jul 2014, 5:31 PM
#38
ajeh avatar

ajeh

Oba-san

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

Re: Hide What's New and Best Sellers Sideboxes

You could use:

// bof: turn off best sellers except for listing
if ($_GET['main_page'] != 'index') {
  $show_best_sellers= false;
}
// eof: turn off best sellers except for listing

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!

10 Aug 2014, 8:41 PM
#39
dysfunctional avatar

dysfunctional

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: Hide What's New and Best Sellers Sideboxes

Thanks Linda! Works perfectly! :)

10 Aug 2014, 10:19 PM
#40
ajeh avatar

ajeh

Oba-san

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

Re: Hide What's New and Best Sellers Sideboxes

Thanks for the update that this worked for you ... :smile:

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!