Forums / Addon Sideboxes / Categories Dressing

Categories Dressing

Views: 532,549

Results 2,261 to 2,268 of 2,268
10 Nov 2016, 11:01 PM
#2261
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,969
Plugin Contributions:
8

Categories Dressing

DK,
this should not be that hard.

under your template directory you should have something like:

common/tpl_box_default_left.php

and the code there should indicate the variable for column width. ideally they are using the BOX_WIDTH_LEFT variable, which you can get from how Rob indicated. or else you can search for that variable using:

Admin -> Tools -> Developer's Tool Kit -> Search in Configuration Settings/Keys

and then change it from there.

my column width for the left gets set in:

includes/modules/column_left.php

barring that if you REALLY want to set it in the css, you can go to line 1201 in:

/includes/templates/ZCT Pet & Animals 34/css/stylesheet.css

and within the .leftBoxContainer styling add:

width: 250px !important;

and you should be working.

one last thing: it is a BAD idea to use spaces in any folder name or image name that is serving up web pages.

good luck!

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

18 Dec 2016, 11:34 PM
#2262
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Categories Dressing

You're absolutely right...it shouldn't be that hard. But when we're not all that familiar with php at the best of times...well, it's harder for us than it is for you who are very knowledgeable. Then you add the fact that we only have to work with php codes maybe twice a year, and remembering what we managed to figure out last time is a real challenge. :(

Following your advice, we found this in the tpl_box_default_left file:

<div class="leftBoxContainer" id="<?php echo str_replace('_', '-', $box_id ); ?>" style="width:200px">

Changing the width there did a beautiful job of widening the left sidebox, so we're very grateful for that. Now we need to widen the main box on the index.php and all secondary pages such as this one: http://timelesserotica.com/index.php?main_page=product_info&cPath=7_12&products_id=103

We've tried adjusting widths in the stylesheet.css and the tpl_main_page.php, in hopes that would do the job, but nothing we've tried works. Where should we be looking for those values?

Thank you VERY much for your assistance!!!

19 Dec 2016, 8:00 PM
#2263
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,969
Plugin Contributions:
8

Re: Categories Dressing

again, i would change the template. and i would convince the client of that.... this customized template makes too much use of tables, which in today's mobile/tablet world just does not work nearly as effectively. and changing values to conform to the screen size of what the client is looking at, is IMHO, a mistake...

with regards to the problem at hand, in the specific page you are talking about, the code has this:

<td width="652" valign="top" bgcolor="#FFFFFF">

this element td stands for table data. unfortunately there is no id to specifically identify this element. there is a hard-coded width there, and i'm not sure how that is constructed; ie whether the code is pulling something from the database or something else.

in any event, if you could get that element to say width="100%", i think you and your client would be much happier....

changing it in the css would be rather DIFFICULT, due to the no name part; so depending on how one selects that element, the css "could" change other elements.

again, do yourself a favor and get a modern template.... it would make everyone much happier, and it would be much easier to maintain.

good luck.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

20 Dec 2016, 7:37 PM
#2264
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Categories Dressing

carlwhat:

if you could get that element to say width="100%", i think you and your client would be much happier....

That did the job perfectly! :-) I had tried changing the px number, but it didn't seem to be helping. I don't know why I didn't think to simply change it to a percentage.

Thank you!!!!!

15 May 2017, 5:20 AM
#2265
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Categories Dressing

v1.5.1 site https://www.mothersdayaustralia.net.au

this site has 8 categories - I want to place all categories under the one single top category Unique Mothers Day Gifts. I then want to have all these categories appear as sub categories under the top category using the ch_category function. I have already moved one category into this top category however a number of the other categories I want to move have existing sub categories.

So when I move those categories into the top category (Unique Mothers Day Gifts) will I be able to set the configuration of the ch_category functions so that only the main sub category shows in the menu (the existing category) such that only when that sub category is clicked will the existing sub categories show?

This is how I would like to see the menu work;

Unique Mothers Day Gifts

  • sub cat
  • sub cat
  • sub cat
    etc etc

and that the above show all the time (i.e. as it looks now on the site but all the categories showing other than Unique Mothers Day Gifts would be sub categories)

then when a sub cat is clicked then its sub categories appear under it

is this achievable? if so any hints on how to go about it?

cheers, Mike

2 Jun 2017, 2:51 AM
#2266
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Categories Dressing

Can some share a link to a live or demo site that uses the Flyout function?

29 Oct 2018, 10:23 PM
#2267
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Categories Dressing

Hello,
I have zencart 1.5.5f. I have previously installed this on 1.5.0 but a very long time ago and i dont remember having any issue.

I have altered the categories_dressing_defines.php and altered the folder names to upload them but the boxes and the headers are not showing.

Was there something else I was supposed to change?

Thank you
Amy

27 Jan 2022, 8:20 AM
#2268
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Categories Dressing

A simplified beta version of** Categories Dressing for Zen Cart 1.57c that can be bridged with Twitch Left/Right Nav Category Sidebox Select and the original *Stock Categories Sidebox, *all in one admin switch - will be available in the near future - production testing is happening now! :smile:

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian