Results 1 to 10 of 25

Threaded View

  1. #10
    Join Date
    Nov 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Sort order :: specials products

    Nothing ...

    I think the interogation in database is wrong..

    I'm not sure if the code i made for interogation is ok.
    All i want is that:

    I'will put in the specials page the links with products categorys.
    If the visitors want to see if in category with the name:
    ex. category 1 is products with spacials price, click on that category.

    I dont want in the specials page the specials products to be displayed all mixed.

    The original code from tpl_specials_default.php is that:

    $specials_query_raw = "SELECT p.products_id, p.products_image, pd.products_name, pd.products_description, p.master_categories_id
    FROM (" . TABLE_PRODUCTS . " p
    LEFT JOIN " . TABLE_SPECIALS . " s on p.products_id = s.products_id
    LEFT JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id )
    WHERE p.products_id = s.products_id and p.products_id = pd.products_id and p.products_status = '1'
    AND s.status = 1
    AND pd.language_id = :languagesID
    ORDER BY s.specials_date_added DESC";
    Last edited by xergos055; 17 Feb 2011 at 02:23 AM. Reason: More explications

 

 

Similar Threads

  1. v154 Randomize sort order for Specials or Featured
    By bravo685 in forum General Questions
    Replies: 1
    Last Post: 8 Sep 2015, 12:20 PM
  2. Reverse sort order of products
    By TecBrat in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Mar 2011, 09:39 PM
  3. Specials Box - sort order
    By skype55 in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 24 Feb 2008, 03:47 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