Zen Cart Logo
Forums / General Questions / Looking to migrate to ZenCart from OSC

Looking to migrate to ZenCart from OSC

Views: 13,055

Results 161 to 180 of 200
2 Jul 2014, 9:37 PM
#161
ajeh avatar

ajeh

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?

2 Jul 2014, 9:39 PM
#162
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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

2 Jul 2014, 9:40 PM
#163
ajeh avatar

ajeh

Oba-san

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

Re: Looking to migrate to ZenCart from OSC

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.

2 Jul 2014, 9:41 PM
#164
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

So far I have these settings:

Attachment 14228

and having played around with various settings I'm not sure which is now correct lol

2 Jul 2014, 9:51 PM
#165
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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

2 Jul 2014, 10:06 PM
#166
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

I've searched every included stylesheet I can see to see if there is an override and I cannot find "categoryImgListing" class="categoryImg">

3 Jul 2014, 4:05 AM
#167
yaritai avatar

yaritai

Zen Follower

Join Date:
Apr 2014
Posts:
154
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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.

3 Jul 2014, 8:13 AM
#168
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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

/**

  • Page Template
  • Loaded by main_page=index<br />
  • Displays product-listing when a particular category/subcategory is selected for browsing
  • @package templateSystem
  • @copyright Copyright 2003-2010 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: tpl_index_product_list.php 15589 2010-02-27 15:03:49Z ajeh $
  • Digi-Books Amendment History
  •  9th June 2014	DB#1 - Change product listing outputs
    

*/
?>

<div class="centerColumn" id="indexProductList"> <!-- DB#1 BEGIN - add prefix to author's name and insert a blank line after --> <h1 id="productListHeading"><?php echo 'Books by ' . $breadcrumb->last() . '<br /><br />'; ?></h1> <!-- END DB#1 --> <?php if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS == 'true') { // categories_image if ($categories_image = zen_get_categories_image($current_category_id)) { ?> <!-- DB#1 BEGIN - add a blank line after the author's image --> <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', CATEGORY_ICON_IMAGE_WIDTH, CATEGORY_ICON_IMAGE_HEIGHT) . '<br /><br />'; ?></div> <!-- END DB#1 --> <?php } } // categories_image ?> <?php // categories_description if ($current_categories_description != '') { ?> <div id="indexProductListCatDescription" class="content"><?php echo $current_categories_description; ?></div> <?php } // categories_description ?> <?php $check_for_alpha = $listing_sql; $check_for_alpha = $db->Execute($check_for_alpha); if ($do_filter_list || ($check_for_alpha->RecordCount() > 0 && PRODUCT_LIST_ALPHA_SORTER == 'true')) { $form = zen_draw_form('filter', zen_href_link(FILENAME_DEFAULT), 'get') . '<label class="inputLabel">' .TEXT_SHOW . '</label>'; ?> <?php echo $form; echo zen_draw_hidden_field('main_page', FILENAME_DEFAULT); echo zen_hide_session_id(); ?> <?php // draw cPath if known if (!$getoption_set) { echo zen_draw_hidden_field('cPath', $cPath); } else { // draw manufacturers_id echo zen_draw_hidden_field($get_option_variable, $_GET[$get_option_variable]); } // draw music_genre_id if (isset($_GET['music_genre_id']) && $_GET['music_genre_id'] != '') echo zen_draw_hidden_field('music_genre_id', $_GET['music_genre_id']); // draw record_company_id if (isset($_GET['record_company_id']) && $_GET['record_company_id'] != '') echo zen_draw_hidden_field('record_company_id', $_GET['record_company_id']); // draw typefilter if (isset($_GET['typefilter']) && $_GET['typefilter'] != '') echo zen_draw_hidden_field('typefilter', $_GET['typefilter']); // draw manufacturers_id if not already done earlier if ($get_option_variable != 'manufacturers_id' && isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] > 0) { echo zen_draw_hidden_field('manufacturers_id', $_GET['manufacturers_id']); } // draw sort echo zen_draw_hidden_field('sort', $_GET['sort']); // draw filter_id (ie: category/mfg depending on $options) if ($do_filter_list) { echo zen_draw_pull_down_menu('filter_id', $options, (isset($_GET['filter_id']) ? $_GET['filter_id'] : ''), 'onchange="this.form.submit()"'); } // draw alpha sorter require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCT_LISTING_ALPHA_SORTER)); ?> </form> <?php } ?> <br class="clearBoth" /> <?php /** * require the code for listing products */ require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php'); ?> <?php //// bof: categories error if ($error_categories==true) { // verify lost category and reset category $check_category = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_id='" . $cPath . "'"); if ($check_category->RecordCount() == 0) { $new_products_category_id = '0'; $cPath= ''; } ?> <?php $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MISSING); while (!$show_display_category->EOF) { ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_FEATURED_PRODUCTS') { ?> <?php /** * display the Featured Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_SPECIALS_PRODUCTS') { ?> <?php /** * display the Special Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_NEW_PRODUCTS') { ?> <?php /** * display the New Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_UPCOMING') { include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); } ?> <?php $show_display_category->MoveNext(); } // !EOF ?> <?php } //// eof: categories error ?> <?php //// bof: categories $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_LISTING_BELOW); if ($error_categories == false and $show_display_category->RecordCount() > 0) { ?> <?php $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_LISTING_BELOW); while (!$show_display_category->EOF) { ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_FEATURED_PRODUCTS') { ?> <?php /** * display the Featured Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_SPECIALS_PRODUCTS') { ?> <?php /** * display the Special Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_NEW_PRODUCTS') { ?> <?php /** * display the New Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_UPCOMING') { include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); } ?> <?php $show_display_category->MoveNext(); } // !EOF ?> <?php } //// eof: categories ?> </div>
3 Jul 2014, 8:31 AM
#169
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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!

3 Jul 2014, 5:43 PM
#170
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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

3 Jul 2014, 7:03 PM
#171
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Looking to migrate to ZenCart from OSC

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;
}
3 Jul 2014, 9:44 PM
#172
ajeh avatar

ajeh

Oba-san

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

Re: Looking to migrate to ZenCart from OSC

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

4 Jul 2014, 12:36 PM
#173
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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 :)
4 Jul 2014, 12:38 PM
#174
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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.

4 Jul 2014, 2:42 PM
#175
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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?

4 Jul 2014, 8:21 PM
#176
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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

6 Jul 2014, 10:52 AM
#177
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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

6 Jul 2014, 11:54 AM
#178
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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

8 Jul 2014, 2:32 PM
#179
digibooks avatar

digibooks

Zen Follower

Join Date:
May 2014
Location:
UK
Posts:
317
Plugin Contributions:
0

Re: Looking to migrate to ZenCart from OSC

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

8 Jul 2014, 3:23 PM
#180
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Looking to migrate to ZenCart from OSC

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;}