Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Gallery Category support thread

    Quote Originally Posted by gjh42 View Post
    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.
    Thanx for the reply....wish I was more knowledgeable about this stuff most days LOL :)
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  2. #22
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,004
    Plugin Contributions
    25

    Default Re: Gallery Category support thread

    There is an approach that might work for the All and New listings. Its execution is more advanced than my current PHP skills, but someone good with database queries could probably do it easily.

    Each product has a master category that it belongs to, and the code could be modified to look that up while getting other product info. Once the master category is known, it could be used to alter the product's display output if it matches the gallery id.

  3. #23
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Gallery Category support thread

    Unfortunately I think that's beyond my limited database skills LOL what I have managed to achieve so far is sheer fluke I reckon LOL
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  4. #24
    Join Date
    May 2008
    Posts
    33
    Plugin Contributions
    0

    Default Re: Gallery Category support thread

    Hi Glenn,
    I'm trying to use the Gallery Category WITH the price shown in both product_listing- and product_infopages.

    The product_infopage is alright, but after I
    deleted/ uncommented the lines you advice in your original product_listing.php;

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


    the price won't show up.

    Any idea, thanks, anna

  5. #25
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,004
    Plugin Contributions
    25

    Default Re: Gallery Category support thread

    Sorry, the instructions are incomplete in that area. Are you getting the "Price" heading in the product listing? You should be, by what you show of your code.
    The actual price hide/display code needs more lines commented out around line 175, completing the removal of the

    // if($not_gallery) {

    started around line 132.
    PHP Code:
            }  else { //gallery
              
    $gallery_skip_now 1
              
    $gallery_skips++;
            } 
    // /not_gallery
            
    break;
            case 
    'PRODUCT_LIST_QUANTITY'
    Like this:
    PHP Code:
            //}  else { //delete these 4 lines for price to be displayed in //gallery
            //  $gallery_skip_now = 1; 
            //  $gallery_skips++;
            //} // /not_gallery
            
    break;
            case 
    'PRODUCT_LIST_QUANTITY'

  6. #26
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,004
    Plugin Contributions
    25

    Default Re: Gallery Category support thread

    It's been a long time since I looked at this mod.
    The code above is not quite right; the original version would still skip the whole price/add output block when modified to show price in the listing, because the logic in the 4 lines controls the skip independently of the earlier line change restoring the price to the output.

    The proposed change cuts out too much and would cause an error.

    So the skip needs to be eliminated at all times, while leaving the end of the"if" block closed with }.
    Change the section above to look like this:
    PHP Code:
            //}  else { //gallery - delete these 3 lines for price to be displayed in gallery
            //  $gallery_skip_now = 1; 
            //  $gallery_skips++;
            
    // /not_gallery
            
    break;
            case 
    'PRODUCT_LIST_QUANTITY'

  7. #27
    Join Date
    May 2008
    Posts
    33
    Plugin Contributions
    0

    Default Re: Gallery Category support thread

    Hi Glenn,
    Yes, it works now.
    Thank you very much.
    regards, anna

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. v151 Category Specific Access Restriction (CSAR) - [Support Thread]
    By frank18 in forum All Other Contributions/Addons
    Replies: 187
    Last Post: 12 Sep 2021, 09:41 PM
  2. Category Tab Simple Dropdown Menu 1.3.9 Support Thread
    By dbltoe in forum All Other Contributions/Addons
    Replies: 39
    Last Post: 31 Aug 2021, 10:17 AM
  3. ZX Slideshow support thread
    By balihr in forum All Other Contributions/Addons
    Replies: 679
    Last Post: 3 May 2021, 11:09 PM
  4. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 16
    Last Post: 22 Mar 2021, 01:11 AM
  5. v150 Minimum per Category Support Thread
    By purelypoultry in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 22 Dec 2014, 07:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR