Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Location
    Colorado Springs, CO
    Posts
    21
    Plugin Contributions
    0

    Default Column Grid for Featured Products

    Ok I have checked out all the posts about the Column Grid add-on and how to make it work for the New Products, etc. I have gotten it to work with those because there was some clear explainations about how to go about fixing the problem. However, I only read how the code for the Featured Products is different but really no explaination about how to actually get it to work. I would appreciate it if someone could help me out with this.

    I have tried a couple of different things one way I got a different product category to show up for the Featured Products and the other way I got an SQL error stating that the query for ":languagesID" was resulting in an error. Again like I said if there is anyone that could help me work this out I would greatly appreciate it.

    Thanks
    Jen
    [FONT="Times New Roman"]~*Jen Ulasiewicz Designs*~[/FONT]

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Column Grid for Featured Products

    See if this might bring some clarity to what you seek

    http://www.zen-cart.com/forum/showthread.php?t=84174&
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2008
    Location
    Colorado Springs, CO
    Posts
    21
    Plugin Contributions
    0

    Default Re: Column Grid for Featured Products

    that was the post that I was referencing ... and the one that I used to get as far as I have gotten ... however, there are a few posts in there about others not being able to do the same technique in order to get the featured products category to work the same way. I was wondering if there was a posting or thread that showed what these people did to resolve this or not because I hadan't found the answer.

    Thanks
    [FONT="Times New Roman"]~*Jen Ulasiewicz Designs*~[/FONT]

  4. #4
    Join Date
    Feb 2008
    Location
    Colorado Springs, CO
    Posts
    21
    Plugin Contributions
    0

    Default Re: Column Grid for Featured Products

    This is my code for the /includes/modules/pages/featured_products/header_php.php

    Code:
    "SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id,
      									 p.products_date_added, m.manufacturers_name, p.products_model, p.products_quantity, p.products_weight, p.product_is_call,
                                     	 p.product_is_always_free_shipping, p.products_qty_box_status,
                                      p.master_categories_id
                                      FROM (" . TABLE_PRODUCTS . " p
                                      LEFT JOIN " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " .TABLE_PRODUCTS_DESCRIPTION . " pd
                                      LEFT JOIN " . TABLE_FEATURED . " f on pd.products_id = f.products_id )
                                      WHERE p.products_status = 1 and p.products_id = f.products_id and f.status = 1
                                      AND p.products_id = pd.products_id and pd.language_id = :languagesID " .
    $order_by;
    Here is my code for the includes/templates/MYTEMPLATE/templates/tpl_featured_products_default.php

    Code:
     <?php
    /**
     * Module Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 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_modules_product_listing.php 3241 2006-03-22 04:27:27Z ajeh $
     * UPDATED TO WORK WITH COLUMNAR PRODUCT LISTING 04/04/2006
     */
    require($template->get_template_dir('/tpl_modules_listing_display_order.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_listing_display_order.php');
        require($template->get_template_dir('tpl_modules_product_listing.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_product_listing.php');
    ?>
    As a result I get the following error:

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':languagesID' at line 5
    in:
    [select count(p.products_id) as total FROM (zen_products p LEFT JOIN zen_manufacturers m on (p.manufacturers_id = m.manufacturers_id), zen_products_description pd LEFT JOIN zen_featured f on pd.products_id = f.products_id ) WHERE p.products_status = 1 and p.products_id = f.products_id and f.status = 1 AND p.products_id = pd.products_id and pd.language_id = :languagesID ]

    I have also tried a couple of other combinations that have also not successfully worked. Hopefully, this might also help in figuring out what the heck is going on and how I might be able to fix it

    Thanks
    [FONT="Times New Roman"]~*Jen Ulasiewicz Designs*~[/FONT]

  5. #5
    Join Date
    Feb 2008
    Location
    Colorado Springs, CO
    Posts
    21
    Plugin Contributions
    0

    Default Re: Column Grid for Featured Products

    *bumping*
    [FONT="Times New Roman"]~*Jen Ulasiewicz Designs*~[/FONT]

  6. #6
    Join Date
    May 2006
    Location
    Orangeburg, SC
    Posts
    72
    Plugin Contributions
    0

    Default Re: Column Grid for Featured Products

    anyone?

  7. #7
    Join Date
    Jun 2010
    Posts
    32
    Plugin Contributions
    0

    Default Re: Column Grid for Featured Products

    bump myself

  8. #8
    Join Date
    Dec 2009
    Location
    Canada
    Posts
    160
    Plugin Contributions
    0

    Default Re: Column Grid for Featured Products

    Im also looking for a solution to this. I am able to get the grid lines to appear on most listings except the new products and featured.

 

 

Similar Threads

  1. Three Column Grid for New/All Products
    By DallasNovelty in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Feb 2011, 12:47 PM
  2. Column Grid for Featured Products on Main Page
    By jtlswan in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 May 2010, 12:32 PM
  3. Would you please teach me about Column Layout Grid for new,featured,all page?
    By nicetomeetyou in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Oct 2008, 12:42 AM
  4. column layout grid for products
    By jfuller in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Feb 2008, 01:42 PM
  5. Column layout Grid for Featured Products
    By datoshway in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Jun 2007, 03:28 AM

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