Oba-san
- Join Date:
- Sep 2003
- Location:
- Ohio
- Posts:
- 62,757
- Plugin Contributions:
- 1
Looking to migrate to ZenCart from OSC
What are your settings in the Configuration ... Images?
Views: 13,055
Oba-san
What are your settings in the Configuration ... Images?
Zen Follower
Ajeh:
What are your settings in the Configuration ... Images?
I have tried resetting all sorts of image settings - the actual image is 318 x 473px but it keeps coming out at 85 x 57px ....
Oba-san
Might help to know the actual settings on the Configuration ... Images ... as you could have the dimensions set in an odd manner, or settings on proportions odd etc.
Zen Follower
Zen Follower
OK I just switched off Use Proportional Images on Categories and Products and the height grew substantially but not the width but then the products displays go too wide
Zen Follower
I've searched every included stylesheet I can see to see if there is an override and I cannot find "categoryImgListing" class="categoryImg">
Zen Follower
DigiBooks:
I've searched every included stylesheet I can see to see if there is an override and I cannot find "categoryImgListing" class="categoryImg">
By any change when you did the modifications between the tags of "Db #2 show image and description" (something like that) what image width and height variables did you use? I tried searching this thread but came up empty on what changes you did to that file. Post it here and then the exact settings can be found. Just post the whole section OR the zen_image function part.
Zen Follower
yaritai:
By any change when you did the modifications between the tags of "Db #2 show image and description" (something like that) what image width and height variables did you use? I tried searching this thread but came up empty on what changes you did to that file. Post it here and then the exact settings can be found. Just post the whole section OR the zen_image function part.
The modifications between the tags are simply to move the existing image and description displays side by side in a 2-column table (taking existing coding and moving it between <td></td> tags. To avoid confusion I have reloaded the original code so that the div tags move the image above the description again and the image remains at 85 x 57px no matter what changes I make to the Configuration -> Image settings. I cannot see in config anywhere where it states the height at 85px!!!
The original code in full is this - does this help at all or do I need to look for anything else?:
/**
9th June 2014 DB#1 - Change product listing outputs
*/
?>
Zen Follower
Agggghhhh silly me!!!!!! I think I see the problem - the config does change some of the image sizes - I think the images that have come over from OSC are too small (damn!!)
I think I have a bit more work to do LOL!
Zen Follower
OK guys ... I missed the obvious on the last post but have it all working now ...............
........... but ..............
I really don't think this is me lol ...............
File is: catalog\includes\templates\template_default\templates\tpl_index_categories.php
It has a line for the category description that says:
<div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description; ?></div>
so I know that there is a stylesheet somewhere to define this output ... and all I want to do is justify (left and right) the category description.
I REALLY have searched every stylesheet I can think of and I cannot locate the setting!!!!!
And ... oddly enough if I use the Developer's Tool kit to search for php and css or css only it will NOT display the stylesheet where this is defined!!!
HELP!!!!! Please :(
Totally Zenned
Not all CSS IDs and CLASSes are utilized in every template. You can do a file contents search on "#categoryDescription" and ".catDescContent"...
Or you can use one of my favorite tools (in your browser): FireBug. Load a category listing page, use the "inspect" tool (or select the element in the HTML tab on the left), then in the "Style" tab to the right it will show you every CSS rule applied to the selected element and where (file and line number) the CSS rule is defined.
If none found just add to your main stylesheet SIZE=1[/SIZE]:
#categoryDescription {
text-align: justify;
}
Oba-san
You might also check you link in post #160 in IE 9 ... the top categories do not look too good ... :blink:
Looks fine in FireFox v30 and Chrome v35
Zen Follower
lhungil:
Not all CSS IDs and CLASSes are utilized in every template. You can do a file contents search on "#categoryDescription" and ".catDescContent"...
Or you can use one of my favorite tools (in your browser): FireBug. Load a category listing page, use the "inspect" tool (or select the element in the HTML tab on the left), then in the "Style" tab to the right it will show you every CSS rule applied to the selected element and where (file and line number) the CSS rule is defined.
If none found just add to your main stylesheet SIZE=1[/SIZE]:
#categoryDescription {
text-align: justify;
}
OK thanks I'll try it on Firebug tonight :)
Zen Follower
Ajeh:
You might also check you link in post #160 in IE 9 ... the top categories do not look too good ... :blink:
Looks fine in FireFox v30 and Chrome v35
Thanks Ajeh - I know it looks rubbish in IE8 (which is a rubbish and unsupported browser anyway!) but I didn't know about IE9. I am searching round for a free browser emulator to check this out.
Zen Follower
Ajeh:
You might also check you link in post #160 in IE 9 ... the top categories do not look too good ... :blink:
Looks fine in FireFox v30 and Chrome v35
Hi Ajeh
You're quite right it does the same in IE9 as it did in IE8. I have posted this to our group and suggested Chrome as a workaround for now for IE9 users. I'm guessing it's the template that we added that has something not being handled properly. To be honest I have never really got into writing patches for browsers so I'm a little stumped here (unless someone out there has an idea of what needs to be done).
The other problem of course is that, now Google have revoked all support for IE9, is it just a question of time before Microsoft do the same?
Zen Follower
Ok so I did warn you that once I got the site relaunched I would ask some stupid questions ... so here's the first one :blush:
We have got rid of the author images when you select a genre (category / manufacturer) because some of our genres have so many authors that the end-user had to do a lot of scrolling to find the one they want. We have replaced this with a text-only link.
With a bit of CSS work we have made the links a bit more exciting but we would like to have these links enclosed in a bordered table. That's the bit I'm stuck on! The file: catalog\includes\modules\category_row.php now looks like this:
<?php /** * index category_row.php * * Prepares the content for displaying a category's sub-category listing in grid format. * Once the data is prepared, it calls the standard tpl_list_box_content template for display. * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: category_row.php 4084 2006-08-06 23:59:36Z drbyte $ * * Digi-Books Amendment History * * <================ POST RELAUNCH ================> * * 4th July 2014: DB#1 - remove author images from category listings * */ if (!defined('IS_ADMIN_FLAG')) { die('Illegal Access'); } $title = ''; $num_categories = $categories->RecordCount(); $row = 0; $col = 0; $list_box_contents = ''; if ($num_categories > 0) { if ($num_categories < MAX_DISPLAY_CATEGORIES_PER_ROW || MAX_DISPLAY_CATEGORIES_PER_ROW == 0) { $col_width = floor(100/$num_categories); } else { $col_width = floor(100/MAX_DISPLAY_CATEGORIES_PER_ROW); } while (!$categories->EOF) { if (!$categories->fields['categories_image']) !$categories->fields['categories_image'] = 'pixel_trans.gif'; $cPath_new = zen_get_path($categories->fields['categories_id']); // strip out 0_ from top level cats $cPath_new = str_replace('=0_', '=', $cPath_new); // $categories->fields['products_name'] = zen_get_products_name($categories->fields['products_id']); //$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"', // 'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a>'); $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"', 'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '" class="DB_subcategory">' . $categories->fields['categories_name'] . '</a>'); $col ++; if ($col > (MAX_DISPLAY_CATEGORIES_PER_ROW -1)) { $col = 0; $row ++; } $categories->MoveNext(); } } ?>I would be really grateful if someone could advise me how to get the display into tables with borders.
Sample link is: http://digibooks.org.uk/DB_Library_2014/index.php?main_page=index&cPath=31
Thanks
Zen Follower
Hi All
I have just been playing around with Expected Books in the test site and got the Upcoming Products Centerbox displaying OK. I've done quite a bit of searching but cannot find a solution to how I can prevent these from being added to the cart until we have the zip file available for download.
Can anyone advise me if there is a way to do this please?
Thanks
Zen Follower
DigiBooks:
Hi All
I have just been playing around with Expected Books in the test site and got the Upcoming Products Centerbox displaying OK. I've done quite a bit of searching but cannot find a solution to how I can prevent these from being added to the cart until we have the zip file available for download.
Can anyone advise me if there is a way to do this please?
Thanks
A slight change in the search criteria and I have found Ajeh's solution!!!
https://www.zen-cart.com/showthread.php?54456-prevent-expected-products-from-being-added-to-cart
Zen Follower
Hi all
Found a slight bug (possibly?)
I have some accounts that have been set to - Banned - not allowed to login or shop.
This is set when they fail to pay a subscription. I set up a test account - banned it and I get two messages:
Error: Access denied. (which is the one I want to amend the text to say that it's a subscription issue
and
Error: Sorry, there is no match for that email address and/or password.
... the name and password does exist - it's just that they have been banned ... is there a solution to this please?
Thanks in advance
Black Belt
Re \includes\modules\category_row.php, you can add a container around the author names listing by adding a div above```php
while (!$categories->EOF) {
and below```php
$categories->MoveNext();
}
to get```php
echo '<div class="catListing">';
while (!$categories->EOF) {
//...
$categories->MoveNext();
}
echo '</div>';
}
?>
You can then style .catListing in your stylesheet to give it whatever borders etc. you want:
.catListing {padding: 0.5em; border: 1px solid #aabbcc;}
Fields marked required must be completed.
Tell staff why this post should be reviewed.