Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    46
    Plugin Contributions
    0

    Default price sorting on product listing sometimes not work

    I find that the price sorting somtimes is not work!
    I have a category when I click the price sorting on the product list header, the price is not sorted in order.

  2. #2
    Join Date
    Jan 2004
    Posts
    58,279
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: price sorting on product listing sometimes not work

    It might help if you supplied a URL where we can see this in action...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    46
    Plugin Contributions
    0

    Default Re: price sorting on product listing sometimes not work

    OK!
    Please check this URL
    http://www.jadewish.com/index.php?ma...x&cPath=1_9_16 (not working)
    http://www.jadewish.com/index.php?ma...page=1&sort=4a (not working)

    http://www.jadewish.com/index.php?ma...page=1&sort=4d (working)

    Thank you very much!

    (This is a live website, please don't place order if you are just testing it. Thank you!)

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: price sorting on product listing sometimes not work

    How did you load your products?

    Usually, if you import your products they are missing 2 key fields ... the master_categories_id and the products_price_sorter

    Do you use Linked Products?
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #5
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    46
    Plugin Contributions
    0

    Default Re: price sorting on product listing sometimes not work

    The products were imported from oscommerce database a year ago. A a few days ago, I upgrade it to zen 1.3.0.2

    Yes! I have linked a few products in the categories "Gemstone" and "925 Silver"
    The category "Fashion" works properly and without linked products.

    Where to look for master_categories_id and products_price_sorter!?
    Thank you!


    Quote Originally Posted by Ajeh
    How did you load your products?

    Usually, if you import your products they are missing 2 key fields ... the master_categories_id and the products_price_sorter

    Do you use Linked Products?

  6. #6
    Join Date
    Jan 2004
    Posts
    58,279
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: price sorting on product listing sometimes not work

    If you do a database-backup FIRST, then you can tell Zen Cart to do a reset on the products-price-sorter and the master-categories-id in the Tools->Store Manager screen.
    DO A DATABASE BACKUP FIRST !!!!
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    46
    Plugin Contributions
    0

    Default Re: price sorting on product listing sometimes not work

    Hello

    I have reset all the required indexes. It works!
    But why need to do this?
    Thank you!


    Quote Originally Posted by DrByte
    If you do a database-backup FIRST, then you can tell Zen Cart to do a reset on the products-price-sorter and the master-categories-id in the Tools->Store Manager screen.
    DO A DATABASE BACKUP FIRST !!!!

  8. #8
    Join Date
    Jan 2004
    Posts
    58,279
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: price sorting on product listing sometimes not work

    Quote Originally Posted by xingxing
    But why need to do this?
    because you imported your products from a different system and didn't reset them:
    Quote Originally Posted by Ajeh
    Usually, if you import your products they are missing 2 key fields ... the master_categories_id and the products_price_sorter
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    46
    Plugin Contributions
    0

    Default Re: price sorting on product listing sometimes not work

    But I have already run zencart more than one year. I remember that there is no problem before 1.2.7.
    Thank you!

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: price sorting on product listing sometimes not work

    Your data could of come in the first time in the proper order ...

    You may have set the master_categories_id and forgotten ...

    Your pricing may not have been effected in a way that the master_categories_id was an issue ...

    There are a lot of reasons ...

    The master_categories_id is used to build the products_price_sorter for display purposes as the calculation on bottom line price is extensive ...

    When you edit products, this is remade ...

    When you add attributes, this is remade ...

    There are a number of ways the products_price_sorter is re-calculated that even on imported data the field could of been updated ...

    Bottom line is, if the master_categories_id is missing, there is a good chance that the products_price_sorter is missing ...

    If the products_price_sorter is missing, then on displays the products cannot be properly sorted by price except by "coincidence" ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Call for price text on product listing page.
    By CheekyCockney in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Jun 2006, 12:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •