Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Posts
    24
    Plugin Contributions
    0

    Default adding a sort order drop down on my site

    I am new to Zencart and PHP and thanks to these forums i have managed to build a great looking site.

    My question is i want to add a drop down sorter to all my product pages to sort by price hi to low and low to hi and i have no clue what to do ....I have searched the web for hours trying to do this with no answer..


    Thanks in advance
    Last edited by mrtwelvevolts; 5 Jan 2011 at 01:59 PM.

  2. #2
    Join Date
    Jan 2011
    Posts
    24
    Plugin Contributions
    0

    Default Re: adding a sort order drop down on my site

    Never mind I got it. Thanks anyways

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: adding a sort order drop down on my site

    What was the solution that worked for you?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jan 2011
    Posts
    24
    Plugin Contributions
    0

    Default Re: adding a sort order drop down on my site

    I added this to line 16 of template/includes/tpl_products_all_dafault


    <?php
    /**
    * display the product order dropdown
    */
    require($template->get_template_dir('/tpl_modules_listing_display_order.php'

    ,DIR_WS_TEMPLATE, $current_page_base,'templates').

    '/tpl_modules_listing_display_order.php'); ?>

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: adding a sort order drop down on my site

    I see ... you added in code to fix something that perhaps your template has broken as that drop down is already in the Products All on the default Zen Cart ...

    I thought you meant you added that drop down on the Product Listings ...

    Thanks for the update ... that will help others who need it too ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jan 2011
    Posts
    24
    Plugin Contributions
    0

    Default Re: adding a sort order drop down on my site

    ya it was some crap monster template! waste of money! I have to use a template for now just to learn the basics. I switched back to the oem Zen cart template this morning for the hell of it and WOW everything i was having problems with worked. I am going to continue modifying the default template and use it as my store until i fully understand the basics of PHP then convert/rebuild my site when i am more comfortable.

    I found this on here and don't quite understand the instructions that well, ya think you could explain to a noob?


    "If you run an upgrade, changes to the classic template will automatically be wiped out. The way to preserve your changes would be to copy all /classic/ folders with their files to /your_template/ folders in parallel with the classic ones. Then follow the template instructions in the FAQ, including editing the template_info.php and turning the template on in admin. Now your changes are safe."


    Thanks

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: adding a sort order drop down on my site

    The templates and overrides are designed to save you from having your customizations overwritten by an upgrade, in the bulk of the files that get changed ...

    This also allows you to switch back to the Classic Template, as it is the default that comes with Zen Cart, to see if the site works in a "normal" state or not ...

    While there are some files that do not have templates and overrides, the bulk of all files do ...

    There is more information in the Tutorials/FAQs, Wiki and on the Forums about templates and overrides ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Jan 2011
    Posts
    24
    Plugin Contributions
    0

    Default Re: adding a sort order drop down on my site

    Default Re: I want my website of full screen width
    That's great, but now you're modifying the 'classic' template, and those files (and your changes) will be overwritten the next time you upgarde Zencart to a new version.

    You really want to do this:

    https://www.zen-cart.com/tutorials/i...hp?article=142

    then study this:

    https://www.zen-cart.com/tutorials/index.php?article=36

 

 

Similar Threads

  1. v153 Manufacturer sort in default sort drop down
    By vacuumwarlock in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Nov 2014, 02:58 PM
  2. Sort Drop Down
    By sewingzfun in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 9 Nov 2011, 07:57 AM
  3. Replies: 3
    Last Post: 19 Apr 2010, 06:22 PM
  4. sort by drop down list
    By ronron in forum General Questions
    Replies: 2
    Last Post: 5 May 2009, 04:57 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