Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2010
    Location
    London
    Posts
    39
    Plugin Contributions
    0

    Default Product Filter by Attribute and price range

    Hi,I have asked this question about a month ago on the Product Filter by Attribute and price range thread but no reply...maybe someone can help me here...

    http://www.zen-cart.com/forum/showth...=79013&page=16

    the website is http://bonessiballerinas.com/

    I have installed the module successfully but I really need two things to be done

    1: I would like to add the text in front of the drop down instead of inside the drop down in my side box... I went through the file in include/template/custom/sideboxes/ and try everything but I wasn't successful to add this texts...

    2: When I search the result are correct but the images it shows is the main image of the product not the image witch match the attribute.. for example if I had a shoe called Sara under Catalog/categories/products and I uploaded with an image(in red for example) and this shoe has the other colours green and blue and they have got their own images, when I search for blue shoes the Sara will come up with the Red image not the Blue one ...

    I did what ever I thought that might help me but still no chance.

    I really wants to know if anyone else has got this issues or can help me to sort these issues out ...

    any little help would be so appreciated ...

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Product Filter by Attribute and price range

    You are using a TemplateMonster template, which makes helping you very difficult in many circumstances.

    Even zenners with a LOT of knowledge do not have the time to unpick these templates, so many of your requests for help could be ignored.

    These templates are generally BAD NEWS !!! They usually abandon many core zencart functions, making the customisation of a store very challenging.

    You should seriously change the template to one that follows core behaviour more accurately.
    20 years a Zencart User

  3. #3
    Join Date
    Jun 2010
    Location
    London
    Posts
    39
    Plugin Contributions
    0

    Default Re: Product Filter by Attribute and price range

    Thank you so much for your reply..

    But the things I am looking to modify, I do not think is related to the template .. When I download this add-on I uploaded the files in custom template as it said...

    The things I want to change is adding the text in front of the drop down instead of inside the drop down in my side box ..

    Forexample :"Color" text and then the colour drop down ....

    It should be something in the add-on files I know which file it is and I add the text but it appears either on top of the gray box or underneath!!!! ..

    Thanks.

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Product Filter by Attribute and price range

    I know my post did not specifically address the issue in question, but I am suggesting you abandon the TM template before you do any more work relating to it's files.

    I can assure you, this template will give you problems in many areas.

    However... you are welcome to stick with it. Problems later on could be costly...

    Sorry... I can't help with the wishlist issue. I don't use that mod.
    20 years a Zencart User

  5. #5
    Join Date
    Jun 2010
    Location
    London
    Posts
    39
    Plugin Contributions
    0

    Default Re: Product Filter by Attribute and price range

    Thanks for the reply.. BTW it was not about the wish list mod it was Product Filter by Attribute and price range module

    thanks anyway.

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Product Filter by Attribute and price range

    The Option NAME will render as the "text" (or label) you are after.

    The Option VALUES will render in the dropdowns.

    So... by creating an option NAME = Color

    ... and then giving it option VALUES ... Green, Blue, Red

    The word "Color" will appear as the LABEL for that attribute, and the various colors themselves... red, green, blue ... will appear in the dropdown.

    I still think you are better off not using a TM "nightmare creator". Anyway... your choice.
    20 years a Zencart User

  7. #7
    Join Date
    Jun 2010
    Location
    London
    Posts
    39
    Plugin Contributions
    0

    Default Re: Product Filter by Attribute and price range

    Thanks for your reply..But it is not like a normal one which I can add a label like <label><?php echo $option_name; ?></label> ..

    They are in an array and I do not know how to do this ...

    The code which shows the drop downs is:

    <?php
    $options_array = array (array( "id"=> "", "text" => $option_names->fields['products_options_name']));

    I need to add something inside that array(array( ...
    I have tried some codes but no chance ...

    I also attach the whole bunch of code which is for showing the drop down :

    /*start attributes drop down*************************************************/
    ?>
    <?php

    if(SHOW_ATTRIBUTES){
    $option_names = $db->Execute("SELECT products_options_id,products_options_name FROM ". TABLE_PRODUCTS_OPTIONS);
    while (!$option_names->EOF) {?>
    <?php
    $options_array = array (array( "id"=> "", "text" => $option_names->fields['products_options_name']));

    $option_names_values = $db->Execute("select pov.products_options_values_id, pov.products_options_values_name from ". TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS." povp,".TABLE_PRODUCTS_OPTIONS_VALUES." pov where povp.products_options_values_id = pov.products_options_values_id AND povp.products_options_id =".$option_names->fields['products_options_id']);


    while (!$option_names_values->EOF) {

    $options_array = array_pad($options_array,sizeof($options_array )+1,array("id"=>$option_names_values->fields['products_options_values_id'],"text"=>$option_names_values->fields['products_options_values_name']));
    $option_names_values->MoveNext();
    }

    $content .= zen_draw_pull_down_menu('options_'.$option_names->fields['products_options_id'], $options_array, (isset($_GET['options_'.$option_names->fields['products_options_id']]) ? $_GET['options_'.$option_names->fields['products_options_id']] : ''), '') . zen_hide_session_id();
    $option_names->MoveNext();
    }
    }


    /*end attributes drop down*************************************************/


    Many Thanks School Boy ;)

    I've also listened to your advise and would not use the TM for next time ... But this is not part of the TM...

 

 

Similar Threads

  1. Product Filter by Attribute and price range on products list
    By shahram in forum General Questions
    Replies: 2
    Last Post: 12 Dec 2011, 02:33 AM
  2. Product Filter by Attribute and price range
    By shahram in forum General Questions
    Replies: 3
    Last Post: 9 Mar 2011, 05:45 PM
  3. Product Filter by Attribute and price range Help
    By adamlonsdale in forum Addon Sideboxes
    Replies: 1
    Last Post: 30 Apr 2010, 01:20 PM
  4. Product Filter by Attribute and price range Issue
    By Cyopz in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jan 2009, 02:23 AM
  5. Product Filter by Attribute and price range
    By manzili in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 31 Mar 2008, 07: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