Zen Cart Logo
Forums / All Other Contributions/Addons / Gallery Category support thread

Gallery Category support thread

Locked

Views: 5,253

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
3 Jun 2007, 9:14 PM
#1
gjh42 avatar

gjh42

Black Belt

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

Gallery Category support thread

The Gallery Category mod is now available in Downloads - Other Modules.


Stores with one-of-a-kind products may benefit from a showcase gallery for sold items.

This mod allows regular products to be simply moved to one or more designated categories when sold; they will then, in product listing and product info pages, appear without price or add to cart/sold out displays.

Other elements of display can also be turned off or modified following simple coding examples.

This may also be useful for upcoming items which are not yet available for sale.


Please post any problems, comments, or requests for additional functionality here.

3 Jun 2007, 11:18 PM
#2
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: Gallery Category support thread

Very nice. Everything works as said. I would have liked to have kept my display product listing as columns mod, but it threw an error. Said unexpected 'else' statement. I merged everything carefully. I think it is just a clash between the two mods. But it doesn't matter, I am glad you created this contribution, as it has been in my mind for a while.

Thanks! :smile:

4 Jun 2007, 12:19 AM
#3
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Gallery Category support thread

Would it be possible to see a screenshot of this MOD ? :smile:

4 Jun 2007, 1:02 AM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Gallery Category support thread

The only difference between this mod's display and a stock display will be the absense of the price, add to cart and quantity in stock elements.
On the product listing page, the Price and Qty headings will disappear also.
These effects will only occur in designated gallery categories.

After looking through the Column Grid version of product_listing.php, it appears that it should be possible to combine the two; but since Column Grid adds a number of manipulations to the data, the gallery code would have to be tailored and extended, not just merged. I will look into doing this, as Column Grid is a popular mod, though I can't give a timetable.

11 Aug 2007, 6:43 PM
#5
ashton0603 avatar

ashton0603

Zen Follower

Join Date:
May 2007
Posts:
109
Plugin Contributions:
0

Re: Gallery Category support thread

I am very slow when it comes to things like this. I tried to download the gallery add on but have no idea what to do. I read the read me text. I cannot open the other section. I had someone put everything together for me but could not finish the job. I don't even know how I would have gotten the cart to work. I got the book which has helped a lot but adding this is very confusing to me. Can someone break it down...barney style for me please?:frusty:

11 Aug 2007, 6:49 PM
#6
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: Gallery Category support thread

GJH42, I think you need to stress the Gallery CATEGORY! mod side. It ended up right next to the Gallery2 image gallery integration mod.

9 Oct 2007, 8:08 PM
#7
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Gallery Category support thread

I would like to see a working version of this mod.. Anyone got a URL where one could see this in action??

4 Nov 2007, 3:00 AM
#8
arth avatar

arth

New Zenner

Join Date:
Jul 2007
Posts:
12
Plugin Contributions:
0

Re: Gallery Category support thread

Any luck with combining the Column and Gallery Mods? I would love to start using the Gallery mod for a sold category but cannot afford to lose the Column mod functionality.

4 Nov 2007, 6:59 AM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: Gallery Category support thread

I have added the Gallery Category code to the Column Grid version of product_listing.php with some tweaks to accommodate column mode. I don't have Column Grid installed to test it, so I would appreciate some testers - please try this on a development installation first. Let me know how it works, and when it is verified to be functional I will add it as an alternate option to the download.```php

<?php /** * product_listing module * * @package modules * @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: product_listing.php 4655 2006-10-02 01:02:38Z ajeh $ * UPDATED TO WORK WITH COLUMNAR PRODUCT LISTING For Zen Cart v1.3.6 - 10/25/2006 */ if (!defined('IS_ADMIN_FLAG')) { die('Illegal Access'); } // Column Layout Support originally added for Zen Cart v 1.1.4 by Eric Stamper - 02/14/2004 // Upgraded to be compatible with Zen-cart v 1.2.0d by Rajeev Tandon - Aug 3, 2004 // Column Layout Support (Grid Layout) upgraded for v1.3.0 compatibility DrByte 04/04/2006 // modified for Gallery Category v1.0 by Glenn Herbert (gjh42) 2007-11-04 // if (!defined('PRODUCT_LISTING_LAYOUT_STYLE')) define('PRODUCT_LISTING_LAYOUT_STYLE','rows'); if (!defined('PRODUCT_LISTING_COLUMNS_PER_ROW')) define('PRODUCT_LISTING_COLUMNS_PER_ROW',3); $row = 0; $col = 0; $list_box_contents = array(); $title = ''; $max_results = (PRODUCT_LISTING_LAYOUT_STYLE=='columns' && PRODUCT_LISTING_COLUMNS_PER_ROW>0) ? (PRODUCT_LISTING_COLUMNS_PER_ROW * (int)(MAX_DISPLAY_PRODUCTS_LISTING/PRODUCT_LISTING_COLUMNS_PER_ROW)) : MAX_DISPLAY_PRODUCTS_LISTING; $show_submit = zen_run_normal(); $listing_split = new splitPageResults($listing_sql, $max_results, 'p.products_id', 'page'); $how_many = 0; //gallery category test $gallery_skips = 0; //flag for reducing # of columns $not_gallery = 1; if (ereg("(^23$|^23_)",$cPath)) { //this is a gallery category (replace 23 with your cat id) $not_gallery = 0; } // /gallery category test // Begin Row Layout Header if (PRODUCT_LISTING_LAYOUT_STYLE == 'rows') { // For Column Layout (Grid Layout) add on module $list_box_contents[0] = array('params' => 'class="productListing-rowheading"'); $zc_col_count_description = 0; $lc_align = ''; for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { $gallery_skip_now = 0; //reset flag for skipping column write switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_text = TABLE_HEADING_MODEL; $lc_align = ''; $zc_col_count_description++; break; case 'PRODUCT_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; $zc_col_count_description++; break; case 'PRODUCT_LIST_MANUFACTURER': $lc_text = TABLE_HEADING_MANUFACTURER; $lc_align = ''; $zc_col_count_description++; break; case 'PRODUCT_LIST_PRICE': if($not_gallery) { //delete this line for price to be displayed in gallery $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right' . (PRODUCTS_LIST_PRICE_WIDTH > 0 ? '" width="' . PRODUCTS_LIST_PRICE_WIDTH : ''); $zc_col_count_description++; } else { //delete these 4 lines for price to be displayed in gallery $gallery_skip_now = 1; //gallery $gallery_skips++; //gallery } // /not_gallery break; case 'PRODUCT_LIST_QUANTITY': if($not_gallery) { //display if not gallery $lc_text = TABLE_HEADING_QUANTITY; $lc_align = 'right'; $zc_col_count_description++; } else { //gallery $gallery_skip_now = 1; $gallery_skips++; } // /not_gallery break; case 'PRODUCT_LIST_WEIGHT': $lc_text = TABLE_HEADING_WEIGHT; $lc_align = 'right'; $zc_col_count_description++; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; $zc_col_count_description++; break; } if ( ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) { $lc_text = zen_create_sort_heading($_GET['sort'], $col+1, $lc_text); } // skip column in output array for gallery if ($gallery_skip_now == 1) { //don't add a column this time } else { $list_box_contents[0][$col - $gallery_skips] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => $lc_text ); } } } // End Row Layout Header used in Column Layout (Grid Layout) add on module ///////////// HEADER ROW ABOVE ///////////////////////////////////////////////// $num_products_count = $listing_split->number_of_rows; if ($listing_split->number_of_rows > 0) { $rows = 0; // Used for Column Layout (Grid Layout) add on module $column = 0; if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') { if ($num_products_count < PRODUCT_LISTING_COLUMNS_PER_ROW || PRODUCT_LISTING_COLUMNS_PER_ROW == 0 ) { $col_width = floor(100/$num_products_count) - 0.5; } else { $col_width = floor(100/PRODUCT_LISTING_COLUMNS_PER_ROW) - 0.5; } } // Used for Column Layout (Grid Layout) add on module $listing = $db->Execute($listing_split->sql_query); $extra_row = 0; while (!$listing->EOF) { if (PRODUCT_LISTING_LAYOUT_STYLE == 'rows') { // Used in Column Layout (Grid Layout) Add on module $rows++; if ((($rows-$extra_row)/2) == floor(($rows-$extra_row)/2)) { $list_box_contents[$rows] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[$rows] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1; } // End of Conditional execution - only for row (regular style layout) $product_contents = array(); // Used For Column Layout (Grid Layout) Add on module $gallery_skips = 0; //reset flag for reducing # of columns for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { $lc_align = ''; $lc_text = ''; //gallery - needed for column grid mode $gallery_skip_now = 0; //reset flag for skipping column write switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_align = ''; $lc_text = $listing->fields['products_model']; break; case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($_GET['manufacturers_id'])) { $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ; } else { $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>'; } break; case 'PRODUCT_LIST_MANUFACTURER': $lc_align = ''; $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>'; break; case 'PRODUCT_LIST_PRICE': if($not_gallery) { //delete this line for price to be displayed in gallery $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />'; $lc_align = 'right'; $lc_text = $lc_price; // if($not_gallery) { //uncomment this line for price to be displayed in gallery // more info in place of buy now $lc_button = ''; if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') { $lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>'; } else { if (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0) { if ( // not a hide qty box product $listing->fields['products_qty_box_status'] != 0 && // product type can be added to cart zen_get_products_allow_add_to_cart($listing->fields['products_id']) != 'N' && // product is not call for price $listing->fields['product_is_call'] == 0 && // product is in stock or customers may add it to cart anyway ($listing->fields['products_quantity'] > 0 || SHOW_PRODUCTS_SOLD_OUT_IMAGE == 0) ) { $how_many++; } // hide quantity box if ($listing->fields['products_qty_box_status'] == 0) { $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>'; } else { $lc_button = TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART . "<input type=\"text\" name=\"products_id[" . $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />"; } } else { // qty box with add to cart button if (PRODUCT_LIST_PRICE_BUY_NOW == '2' && $listing->fields['products_qty_box_status'] != 0) { $lc_button= zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($listing->fields['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $listing->fields['products_id']), 'post', 'enctype="multipart/form-data"') . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($listing->fields['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_draw_hidden_field('products_id', $listing->fields['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</form>'; } else { $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>'; } } } $the_button = $lc_button; $products_link = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>'; $lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']); $lc_text .= '<br />' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '') : ''); } else { //gallery $gallery_skip_now = 1; $gallery_skips++; } // /not_gallery break; case 'PRODUCT_LIST_QUANTITY': if($not_gallery) { //display if not gallery $lc_align = 'right'; $lc_text = $listing->fields['products_quantity']; } else { //gallery $gallery_skip_now = 1; $gallery_skips++; } // /not_gallery break; case 'PRODUCT_LIST_WEIGHT': $lc_align = 'right'; $lc_text = $listing->fields['products_weight']; break; case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if ($listing->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) { $lc_text = ''; } else { if (isset($_GET['manufacturers_id'])) { $lc_text = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' . $listing->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>'; } else { $lc_text = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>'; } } break; } if ($lc_text != '') { $product_contents[] = $lc_text; // Used For Column Layout (Grid Layout) Option - (only if there is text to add in gallery mode) } // skip column in output array for gallery if ($gallery_skip_now == 1) { //don't add a column this time } elseif (PRODUCT_LISTING_LAYOUT_STYLE == 'rows') { $list_box_contents[$rows][$col - $gallery_skips] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text); } } // add description and match alternating colors //if (PRODUCT_LIST_DESCRIPTION > 0) { // $rows++; // if ($extra_row == 1) { // $list_box_description = "productListing-data-description-even"; // $extra_row=0; // } else { // $list_box_description = "productListing-data-description-odd"; // $extra_row=1; // } // $list_box_contents[$rows][] = array('params' => 'class="' . $list_box_description . '" colspan="' . $zc_col_count_description . '"', // 'text' => zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION)); //} // Following code will be executed only if Column Layout (Grid Layout) option is chosen if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') { $lc_text = implode('<br />', $product_contents); $list_box_contents[$rows][$column] = array('params' => 'class="centerBoxContentsProducts centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"', 'text' => $lc_text); $column ++; if ($column >= PRODUCT_LISTING_COLUMNS_PER_ROW) { $column = 0; $rows ++; } } // End of Code fragment for Column Layout (Grid Layout) option in add on module $listing->MoveNext(); } $error_categories = false; } else { $list_box_contents = array(); $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); $error_categories = true; } //no button for gallery if ($not_gallery == 1 and ($how_many > 0 and $show_submit == true and $listing_split->number_of_rows > 0) and (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 1 or PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 3) ) { $show_top_submit_button = true; } else { $show_top_submit_button = false; } //no button for gallery if ($not_gallery == 1 and ($how_many > 0 and $show_submit == true and $listing_split->number_of_rows > 0) and (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART >= 2) ) { $show_bottom_submit_button = true; } else { $show_bottom_submit_button = false; } //no button for gallery if ($not_gallery == 1 and $how_many > 0 && PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0 and $show_submit == true and $listing_split->number_of_rows > 0) { // bof: multiple products echo zen_draw_form('multiple_products_cart_quantity', zen_href_link(FILENAME_DEFAULT, zen_get_all_get_params(array('action')) . 'action=multiple_products_add_product'), 'post', 'enctype="multipart/form-data"'); } ?>
7 Nov 2007, 12:40 AM
#10
arth avatar

arth

New Zenner

Join Date:
Jul 2007
Posts:
12
Plugin Contributions:
0

Re: Gallery Category support thread

Thanks, Glenn! Everything seems to work great. I'm sure others will find this useful, too.

7 Nov 2007, 6:31 AM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: Gallery Category support thread

Good to know - thanks for reporting. Another tester to double check, and I will feel confident about adding this to the mod. And if anyone is willing to post a link to a working installation, that would be nice. I don't have a database to spare for a public demo installation.

11 Jan 2008, 9:30 PM
#12
stampsville avatar

stampsville

Zen Follower

Join Date:
Jul 2004
Posts:
123
Plugin Contributions:
0

Re: Gallery Category support thread

Hi gjh42,

Thank You for the quick solution! I used the product listing you posted and it works perfect. I am using your mod as a "upcoming products" list.

Thanks again!

GJW

12 Jan 2008, 12:14 AM
#13
pcp20us avatar

pcp20us

New Zenner

Join Date:
Jan 2008
Posts:
1
Plugin Contributions:
0

Re: Gallery Category support thread

Hello Zenners.

My fisrt post here.

I have gallery2 v2.4 runiing with the zen cart module. It is on my local web sever. I am trying to find a free hoster which suports gallery2, for safe mode off, and .htacess, if anyone knows a hoster that supoorts gallery2 pls let me know.

What i want to do is . Once i hit add to cart on my gallery2 site it then take you to the zen cart index.php main catorgery file ( which i assume is like a product listed on you zencart site) what i want is once you hit add to cart i want it to put it straight into thecart. Is this possible.

Re question on a working example of g2 and zencart. I did find a good one it was listsed on g2 forums. I ll see if i can find it again.

If you want to intergrate zen with galerry2 see this post. it explains it fully, its taken me a few go to get it right.
http://codex.gallery2.org/Gallery2:Modules:zencart#First.2C_Install_ZenCart_Software

Happy zenning

Pete

12 Jan 2008, 9:46 AM
#14
gjh42 avatar

gjh42

Black Belt

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

Re: Gallery Category support thread

Stampsville - Thanks for posting. Is the "upcoming products list" the watch list for registered members that you mention in your news item?

pcp20us - The Gallery Category mod has nothing to do with Gallery2. You may want to repost in General Questions or a more focused subforum to get help with this. Try a search on gallery2. Good luck!

12 Jan 2008, 4:40 PM
#15
stampsville avatar

stampsville

Zen Follower

Join Date:
Jul 2004
Posts:
123
Plugin Contributions:
0

Re: Gallery Category support thread

Hi pcp20us

No, I came across a problem with some of my own scripts that I'm working on to fix. Such as the items are showing up as sold out on the home page since I have the quantities set at 0 for the gallery items. As soon as I figure that one out, might be a couple of days, I will let you know I have it back up.

Thanks again.

12 Jan 2008, 6:05 PM
#16
gjh42 avatar

gjh42

Black Belt

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

Re: Gallery Category support thread

Gallery Category automatically suppresses the display of quantity in product listing and product info, so there is no need to set quantity to 0 for this.

Are the items displaying in other kinds of listings too? If those listings depend on category, the output can be fixed.

2 Aug 2008, 10:47 PM
#17
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Gallery Category support thread

Hi Glenn, I have installed this on 1.3.8a version with the Column Layout Grid and Column Divider and it works great, except the info I don't want displayed still displays in the All Product Listing and the New product listing.....is there a way I can just disable this category from displaying in those listings?

The site I am working on is here: http://krystalroseart.com/ and any help would be appreciated :)

4 Aug 2008, 11:11 AM
#18
emma1 avatar

emma1

New Zenner

Join Date:
Jul 2004
Posts:
22
Plugin Contributions:
0

Re: Gallery Category support thread

HI there, this sounds exactly what I need. I have downloaded and made changes to the template names and loaded it up. Probably being stupid but I can't see where or how to use the module? It's not under 'modules', there doesn't seem to be an obvious way to elect a category as a 'gallery' and the 'read me' doesn't explain how to use the module after installation.

Maybe I have had a problem in installing it but I can't be sure because I dpn't know where it is supposed to appear?

Many thanks for any help!

11 Aug 2008, 11:53 PM
#19
gjh42 avatar

gjh42

Black Belt

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

Re: Gallery Category support thread

You need to edit the files before installation to reflect the desired category id, as described in the readme:

Procedure:

After unzipping the files, navigate to them in your file manager and change the /your_template/ folders to the folder name of the template you are using.

Then open each file in a good text editor like Notepad++ (available free from sourceforge.net) and change the "23" to the id of the category you want to designate as gallery. No other edits are needed unless you wish to change the functionality of the mod. The procedural descriptions below are for information only.

If you have previously edited either of these files, you will need to merge your edits with the ones here.

When finshed, ftp the whole /includes/ folder to the root of your store. The files will drop into the proper locations automatically. Check in your file manager to make sure they are correct.


12 Aug 2008, 3:09 AM
#20
gjh42 avatar

gjh42

Black Belt

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

Re: Gallery Category support thread

Christon -

Gallery Category can only affect listings that display according to category. The All listing does not reference category at all, so cannot be affected by this. It would take a much more comprehensive mod.
The New centerbox can be restricted to a category, so may be possible to affect, but the New listing (as far as I recall) does not have any such possibility.