Page 23 of 33 FirstFirst ... 132122232425 ... LastLast
Results 221 to 230 of 327
  1. #221
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Partial SQL Install

    Well it looks like only two of the four entries were inserted into the database. Trying to run the install again will give the error as it tries to re-insert one of these fields.

    Obviously you already made a database backup before installing this mod so either you could revert to that and try again or you could use this edited version to insert the two remaining fields.

    If it gives another duplicate error maybe you have some other mod installed that uses one of the same field names.
    Code:
    ## The following may be run via phpMyAdmin rather than in Zen Cart Admin (if it gives an error)
    
    INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) 
    VALUES ('Featured Listing Template', 'INDEX_FEATURED_USE_PRODUCT_LISTING', '1', 'Set to 1 to use the original listing templates, 2 to use the new index_listing template, 3 to use the Product Listing template.', 24, 2, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''1'', ''2'', ''3''),'),
    ('Template Debugging', 'TEMPLATE_DEBUG', 'False', 'Display the template filenames where used', 24, 4, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''False'', ''True''),');
    good luck

  2. #222
    Join Date
    May 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Using one single listing template

    Thank you Steve, now it's working. I had to slightly modify your code, becouse only Template Debugging was missing.
    My problem is still unsolved, about missing background in New Product area. Can you help me? Thank you again.
    www.lucru.hostxd.com
    Liviu

  3. #223
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: Using one single listing template

    I see you are using new products on the main page. I can see a blue background colour - image attached. Is there another page that shows what is missing?

  4. #224
    Join Date
    May 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Using one single listing template

    It should look like this:

    http://eazyecommerce.com/demo/modern-zen

    New products area has different background with border

  5. #225
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: Using one single listing template

    You are using the original template for new products.

    I see the center section has
    <div class="centerBoxWrapper" id="whatsNew">

    I dont see these declared in the stylesheet css, although I have no tools apart from view source at the moment.

    Is the problem on all the new, featured, specials pages?
    If not, please leave them all enabled for for the main page and I will look later.
    I am sure it is a css issue.

  6. #226
    Join Date
    May 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Using one single listing template

    all are enabled now
    You were right it was a stylesheet.css problem.
    I had to add for each section someting like that:

    #whatsNew {

    background-color: #ffffff;
    border: 1px solid #d2d2d2;
    height: 100%;
    margin-bottom: 10px;
    padding-bottom: 25px;
    }

    and for productListing to.
    Now it works. Thank you for your help Steve.

    Liviu

  7. #227
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: Using one single listing template

    I am glad you got it working, and that it was not down to one of the (too) many mistakes I have made with this mod,

    Steve

  8. #228
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Using one single listing template

    Hi Steve

    I am still coming to grips with what you have done in this mod and am hoping you can provide clarity on the following:

    1. Do you assert any meaningful difference between the following comment types (being all that I have discerned so far)?

    //Single Listing Template
    //SLT
    // Steve

    2. \includes\functions\extra_functions\index_listing.php

    Line 32 should the following
    &amp;products_id=
    be changed to
    &products_id=

    3. \includes\modules\YourTemplate\product_listing.php

    Line 162
    <div class="listingDescription"> compared to <div class="itemManufacturer>

    Can you provide your css for itemManufacturer?

    4. \includes\templates\YourTemplate\templates\tpl_modules_product_listing.php

    Line 20
    //$productListing = (!$productListingId) ? 'productListing' : $productListingId; //uncomment if you want css control over each section ?>

    Is closing ?> supposed to be part of comment or should it be forced to next line for clarity?

    Where does opening <?php close?

    Line 34
    if (TEMPLATE_DEBUG == 'True') echo '\includes\templates\YourTemplate\templates\tpl_modules_product_listing.php:line 32, $is_slt_listing = '. $is_slt_listing.'<br /><br />';//SLT?>

    Is closing ?> supposed to be part of comment or should it be forced to next line for clarity?

    Line 56
    if (TEMPLATE_DEBUG == 'True') echo '\includes\templates\YourTemplate\templates\tpl_modules_product_listing.php:line 53, $is_slt_listing = '. $is_slt_listing.'<br /><br />';//SLT ?>

    Is closing ?> supposed to be part of comment or should it be forced to next line for clarity?

    5. \includes\templates\YourTemplate\templates\tpl_specials_default.php
    Line 14
    <h1 id="specialsListingHeading"><?php echo $breadcrumb->last(); ?></h1>

    As I have not yet got around to offering any specials, could you please advise what echo $breadcrumb->last(); actually displays?

    I note that echo $breadcrumb->last(); does not occur in the tpl_products_* files, all of which show
    <h1 id="featuredDefaultHeading"><?php echo HEADING_TITLE; ?></h1>

    TIA

  9. #229
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: Using one single listing template

    1. Do you assert any meaningful difference between the following comment types (being all that I have discerned so far)?

    //Single Listing Template
    //SLT
    // Steve
    Evidently I missed a few //Steves (now fixed).
    I tend to comment all my changes everywhere in my site so they are easy to find. My product_listing.php is quite customized so there are a few of these that I had to extract before packaging the mod, not enough obviously.
    So the answer is no! SLT is just a bit clearer than the full title when in amongst already busy code.

    2. \includes\functions\extra_functions\index_listing.php

    Line 32 should the following
    &amp;products_id=
    be changed to
    &products_id=
    Nope. If you get the HTML validator plugin for Firefox you would see this flagged as a validation error if left unencoded as just &.

    3. \includes\modules\YourTemplate\product_listing.php

    Line 162
    <div class="listingDescription"> compared to <div class="itemManufacturer>

    Can you provide your css for itemManufacturer?
    I don’t actually use any. I just put it in there for completeness if you should wish to use it.

    4. \includes\templates\YourTemplate\templates\tpl_modules_product_listing.php

    Line 20
    //$productListing = (!$productListingId) ? 'productListing' : $productListingId; //uncomment if you want css control over each section ?>

    Is closing ?> supposed to be part of comment or should it be forced to next line for clarity?
    Where does opening <?php close?
    The <?php opens one line 1, and closes at the end of this comment, so the ?> is part of the code not the comment.
    //comments out one line only

    Line 34
    if (TEMPLATE_DEBUG == 'True') echo '\includes\templates\YourTemplate\templates\tpl_modules_product_listing.php:line 32, $is_slt_listing = '. $is_slt_listing.'<br /><br />';//SLT?>

    Is closing ?> supposed to be part of comment or should it be forced to next line for clarity?
    as above, it is not part of the comment. It can be moved to the next line if you wish.

    Line 56
    if (TEMPLATE_DEBUG == 'True') echo '\includes\templates\YourTemplate\templates\tpl_modules_product_listing.php:line 53, $is_slt_listing = '. $is_slt_listing.'<br /><br />';//SLT ?>

    Is closing ?> supposed to be part of comment or should it be forced to next line for clarity
    as above

    5. \includes\templates\YourTemplate\templates\tpl_specials_default.php
    Line 14
    <h1 id="specialsListingHeading"><?php echo $breadcrumb->last(); ?></h1>

    As I have not yet got around to offering any specials, could you please advise what echo $breadcrumb->last(); actually displays?
    Home ¬ Specials

    My separator is not the default one.

    I note that echo $breadcrumb->last(); does not occur in the tpl_products_* files, all of which show
    <h1 id="featuredDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
    Specials is a different animal to the others, it is coded differently in the original and modified files. To be honest, as I did not write this mod just fixed a few things, I can’t remember exactly why but the breadcrumb work ok.

    If you find anything else that you think may be wrong, it possibly is! Good Luck

  10. #230
    Join Date
    May 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Using one single listing template

    hey you all... Im new at zen cart... trying to figure out how the layout changes work... I changed the files header.php.php and tpl_products_all_default.php ... everything still works... now Im trying to change the featured product to that template but it doesnt work. How can I change the code that my Featured Product is displayed on the main page. I read a lot in this blog but couldnt figure it out...

    thanks for you help... here is the link to the shop...
    http://movez.de/catalog/index.php

    Im using zencart v1.3.9b

    thanks

 

 
Page 23 of 33 FirstFirst ... 132122232425 ... LastLast

Similar Threads

  1. Single Listing Template
    By AnglersCorner in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 24 Mar 2015, 01:55 PM
  2. single listing template addon - grid layout for products
    By noyloza in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 Nov 2012, 03:45 PM
  3. Column Grid / Single Listing Template Alternative
    By niccol in forum All Other Contributions/Addons
    Replies: 74
    Last Post: 9 Jul 2012, 01:25 PM
  4. Single Listing Template problem
    By gqq0404 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 15 Nov 2010, 08:57 PM
  5. Transfer of one single category from one Zen database to another
    By MeltDown in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 14 Oct 2008, 07:07 PM

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