Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2008
    Location
    Washington State
    Posts
    236
    Plugin Contributions
    0

    Default Model sort order checkout page

    I was hoping that someone would point me in the correct direction to add a statement to have the products in one's cart to sort by model number.

    I would also like this to follow along to the packing slips and invoices. The ability to sort by model number would help us greatly after the sale has been completed.

    Thanks!
    ~ jasmel : My Store Using Contributions: Wallet Theme | Simple Google | Quantity Discounts | Godaddy | FAQ's | Confirm Email Address Entry | Admin login as customer | Newsletter Subscribe | CampaingMonitor

  2. #2
    Join Date
    Feb 2008
    Location
    Washington State
    Posts
    236
    Plugin Contributions
    0

    Default Re: Model sort order checkout page

    Anybody got a clue what I can do? Still would like to be able to sort by product model.
    ~ jasmel : My Store Using Contributions: Wallet Theme | Simple Google | Quantity Discounts | Godaddy | FAQ's | Confirm Email Address Entry | Admin login as customer | Newsletter Subscribe | CampaingMonitor

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

    Default Re: Model sort order checkout page

    In the Catalog ... where do you want this sorted by products_model field?
    shopping_cart
    checkout_confirmation
    shopping_cart (sidebox)
    email to customer
    email to admin
    account_history_info


    In the Admin ... where do you want this sorted by products_model field?
    orders.php
    invoice.php
    packingslip.php

    to name a few ...
    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
    Feb 2008
    Location
    Washington State
    Posts
    236
    Plugin Contributions
    0

    Default Re: Model sort order checkout page

    Quote Originally Posted by Ajeh View Post
    In the Catalog ... where do you want this sorted by products_model field?
    shopping_cart
    checkout_confirmation
    shopping_cart (sidebox)
    email to customer
    email to admin
    account_history_info


    In the Admin ... where do you want this sorted by products_model field?
    orders.php
    invoice.php
    packingslip.php

    to name a few ...
    What I really want is the packing slip to sort by model.. but, I was under the impression that if you fix it in the buy-flow (checkout page) it will continue through to the invoice and packing slip with the same sorted order.

    thanks for looking into this for me.
    ~ jasmel : My Store Using Contributions: Wallet Theme | Simple Google | Quantity Discounts | Godaddy | FAQ's | Confirm Email Address Entry | Admin login as customer | Newsletter Subscribe | CampaingMonitor

  5. #5
    Join Date
    Feb 2008
    Location
    Washington State
    Posts
    236
    Plugin Contributions
    0

    Default Re: Model sort order checkout page

    hello?
    ~ jasmel : My Store Using Contributions: Wallet Theme | Simple Google | Quantity Discounts | Godaddy | FAQ's | Confirm Email Address Entry | Admin login as customer | Newsletter Subscribe | CampaingMonitor

  6. #6
    Join Date
    Feb 2008
    Location
    Washington State
    Posts
    236
    Plugin Contributions
    0

    Default Re: Model sort order checkout page

    Ajeh, did I lose you?
    ~ jasmel : My Store Using Contributions: Wallet Theme | Simple Google | Quantity Discounts | Godaddy | FAQ's | Confirm Email Address Entry | Admin login as customer | Newsletter Subscribe | CampaingMonitor

  7. #7
    Join Date
    Nov 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Model sort order checkout page

    See if this works:

    In admin/includes/classes find orders.php

    Find this section:

    Code:
    $orders_products = $db->Execute("select orders_products_id, products_id, products_name, products_model,
                                                  products_price, products_tax, products_quantity,
                                                  final_price, onetime_charges,
                                                  product_is_free
                                           from " . TABLE_ORDERS_PRODUCTS . "
                                           where orders_id = '" . (int)$order_id . "'
                                           order by orders_products_id");
    Change to:
    Code:
    $orders_products = $db->Execute("select orders_products_id, products_id, products_name, products_model,
                                                  products_price, products_tax, products_quantity,
                                                  final_price, onetime_charges,
                                                  product_is_free
                                           from " . TABLE_ORDERS_PRODUCTS . "
                                           where orders_id = '" . (int)$order_id . "'
                                           order by products_model");

    Careful making changes. Back up everything first, and you might be able to use an override so you don't change the original file.

    This should change all products listed in orders, invoices and packing slips to list by products_model.

    Ed

  8. #8
    Join Date
    Feb 2008
    Location
    Washington State
    Posts
    236
    Plugin Contributions
    0

    Default Re: Model sort order checkout page

    Quote Originally Posted by edadk View Post
    Careful making changes. Back up everything first, and you might be able to use an override so you don't change the original file.

    This should change all products listed in orders, invoices and packing slips to list by products_model.

    Ed
    Worked like a charm! Thank you
    ~ jasmel : My Store Using Contributions: Wallet Theme | Simple Google | Quantity Discounts | Godaddy | FAQ's | Confirm Email Address Entry | Admin login as customer | Newsletter Subscribe | CampaingMonitor

 

 

Similar Threads

  1. Product sort order in "All Products..." page by model
    By corrado444 in forum Basic Configuration
    Replies: 18
    Last Post: 24 May 2011, 05:00 PM
  2. Sort items by model name on the order page.
    By RepGard in forum Managing Customers and Orders
    Replies: 5
    Last Post: 1 Feb 2011, 05:09 PM
  3. Model & Manufacturer inGoogle Checkout Order
    By shakur96 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Aug 2008, 02:41 PM
  4. How to change sort order formation in order total page?
    By saman in forum General Questions
    Replies: 3
    Last Post: 26 Nov 2007, 12:53 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