Zen Cart Logo
Forums / General Questions / I could really use some help!!

I could really use some help!!

Views: 2,532

Results 1 to 20 of 38
22 Sep 2012, 10:47 PM
#1
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

I could really use some help!!

Hello,

Here is my problem when I was a'bit newer to this I thought that rows were columns and columns were rows. SO I thought I needed the column mod to make my products display in three rows across my website. This was of course incorrect so I have just removed this mod to put my products back to row format. However they are still in one column down the page. I have tried everything I can think of can someone please help me with this!!

Here is my site for reference:mysterydrawer.com (please be advised this is an adult product site)

I thank you for your time and responses!!

23 Sep 2012, 12:15 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: I could really use some help!!

Darion:

Hello,

Here is my problem when I was a'bit newer to this I thought that rows were columns and columns were rows. SO I thought I needed the column mod to make my products display in three rows across my website. This was of course incorrect so I have just removed this mod to put my products back to row format. However they are still in one column down the page. I have tried everything I can think of can someone please help me with this!!

Here is my site for reference:mysterydrawer.com (please be advised this is an adult product site)

I thank you for your time and responses!!

Darion, on your home page I can see 'New Products For September' in one row and 3 columns. Same goes for 'Monthly Specials For September'

That looks pretty much normal to me.

23 Sep 2012, 12:36 AM
#3
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: I could really use some help!!

Yes agreed but on my product listing pages they are in one column down the page when you look at a category this is what Im talking about. I thank you for looking and helping out with this.

23 Sep 2012, 12:37 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: I could really use some help!!

Darion:

Hello,

Here is my problem when I was a'bit newer to this I thought that rows were columns and columns were rows. SO I thought I needed the column mod to make my products display in three rows across my website. This was of course incorrect so I have just removed this mod to put my products back to row format. However they are still in one column down the page.

You do need that mod to display your products three across - those are columns, which are vertical. Rows are horizontal.

23 Sep 2012, 12:39 AM
#5
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: I could really use some help!!

Ok I would like my product listings under categories to be horizontal across my site like the new products are on my home page how do I do this. please sorry im lost!!
http://mysterydrawer.com/index.php?main_page=index&cPath=8_171 this is an example of what I do not want see how its one from top to bottom how do I make that three across please!! either by default and permanently or where it can start as three across and customers can change it if they choose to.

23 Sep 2012, 12:49 AM
#6
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: I could really use some help!!

Darion:

Yes agreed but on my product listing pages they are in one column down the page when you look at a category this is what Im talking about. I thank you for looking and helping out with this.

My bad, I should have looked 'deeper' into your site. Yes, stevesh is absolutely right, you need that mod to display x-number of columns/rows in a desirable and appealing combination.

23 Sep 2012, 12:56 AM
#7
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: I could really use some help!!

ok when I had the mod it allowed that to happen but was stuck on list as the default can I make the grid across like the new products on the homepage the default.

23 Sep 2012, 12:58 AM
#8
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: I could really use some help!!

Link to the mod: http://www.zen-cart.com/downloads.php?do=file&id=3

I believe there is a support thread for this mod, not sure though.

23 Sep 2012, 1:03 AM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: I could really use some help!!

http://www.zen-cart.com/showthread.php?200370-Column-Layout-Grid-v2-x-Support

I have just added back admin control to the Column Grid mod (with the option to give customers control, and set default). It needs some more testing before I submit it to Plugins, so you can help us all by trying it out. Please post about your experience with it.

23 Sep 2012, 1:43 AM
#11
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: I could really use some help!!

ok I will check it out thank you for that and will post results in a day or two once I try it out some.

27 Sep 2012, 12:01 AM
#12
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: I could really use some help!!

Thank you for posting in the other thread gjh42 I could not find this one which is why I had to make another one. Anyway I have tested the new updated version and the implementing of it was simple took no more then 5 mins. I do however have one problem and this is more my problem then the add on you made which seems great and everyone should try.These listed below are the things it is supposed to do: well for me I see numbers 2 and 3 but no 1. How do I fix this as it is still staying in list mode for me?

1)Product Listing - Layout Style
Set the type of layout you want to use. By default, the current Zen Cart layout will be used.
It is called "rows". If you want to use the grid layout, choose "columns".

2)Product Listing - Columns Per Row
Type in the number of columns you want to show on each row should the visitor select Grid view from the public website.
This setting will be ignored in case the customer chooses List view from the public website.
The default is 3 columns.

3)Product Listing - Layout Style - Customer Control
Set whether you want the customer to choose the layout. By default, this is disabled.

Should I try uploading the whole sql the one that says if you do not have this mod or is there a way for me to fix this?

Here is my site again for reference:mysterydrawer.com (be advised this is an adult product site)

Thanks for your time and responses!!

27 Sep 2012, 12:18 AM
#13
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: I could really use some help!!

Ok I now see option number 1 and have set it to columns however still nothing my site is still stuck in list mode. How do I fix this please I have tried everything I can think of!!

27 Sep 2012, 1:23 AM
#14
gjh42 avatar

gjh42

Black Belt

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

Re: I could really use some help!!

Did you upload the files to your custom template folders? You may need to make new folders for some of the files. You definitely have tpl_index_product_list.php, but I can't tell about the others.

27 Sep 2012, 1:42 AM
#15
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: I could really use some help!!

I did upload them and I do have them all. I made sure of it!! For some reason I see all three changes and the drop down is there for the customer to change it. But when I do it stays in row mode and will not switch to columns.

27 Sep 2012, 1:53 AM
#16
gjh42 avatar

gjh42

Black Belt

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

Re: I could really use some help!!

I installed a new local test site yesterday, so I can now test this mod myself. I'll do that hopefully tonight and see if there are any issues with the code.

27 Sep 2012, 1:54 AM
#17
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: I could really use some help!!

Ok would posting the code from those pages help at all to see if something is missing from my site to make this work.

27 Sep 2012, 1:58 AM
#18
gjh42 avatar

gjh42

Black Belt

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

Re: I could really use some help!!

Probably not, as long as they look like complete files they most likely are. If you turn off the customer switch from admin, does it disappear from the page? Do all the files have a recent date or my name in their head comments?

27 Sep 2012, 2:20 AM
#19
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: I could really use some help!!

When I turn off the customer option it does disappear from the page. As for the dates and your names it looks like two of the three do have your name on them with a current date. This one however does not it seems unless I missed it somewhere:

<?php /** * 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 $ */ ?> <div class="centerColumn" id="indexProductList"> <h1 id="productListHeading"><?php echo $breadcrumb->last(); ?></h1> <?php if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS == 'true') { // categories_image if ($categories_image = zen_get_categories_image($current_category_id)) { ?> <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', CATEGORY_ICON_IMAGE_WIDTH, CATEGORY_ICON_IMAGE_HEIGHT); ?></div> <?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()"'); } if (defined('PRODUCT_LISTING_LAYOUT_STYLE_CUSTOMER') and PRODUCT_LISTING_LAYOUT_STYLE_CUSTOMER == '1') { echo '<div id="viewControl">' . zen_draw_pull_down_menu('view', array(array('id'=>'rows','text'=>'List'),array('id'=>'columns','text'=>'Grid')), (isset($_GET['view']) ? $_GET['view'] : (defined('PRODUCT_LISTING_LAYOUT_STYLE')? PRODUCT_LISTING_LAYOUT_STYLE: 'rows')), 'onchange="this.form.submit()"') . '</div>'; } // 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>
27 Sep 2012, 2:27 AM
#20
gjh42 avatar

gjh42

Black Belt

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

Re: I could really use some help!!

I didn't add notes to that version of the file (I do have them in the most recent version), but my edit is there:

if (defined('PRODUCT_LISTING_LAYOUT_STYLE_CUSTOMER') and PRODUCT_LISTING_LAYOUT_STYLE_CUSTOMER == '1') {
echo '<div id="viewControl">' . zen_draw_pull_down_menu('view', array(array('id'=>'rows','text'=>'List'),array('id'=>'columns','text'=>'Grid')), (isset($_GET['view']) ? $_GET['view'] : (defined('PRODUCT_LISTING_LAYOUT_STYLE')? PRODUCT_LISTING_LAYOUT_STYLE: 'rows')), 'onchange="this.form.submit()"') . '</div>';
}