Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Quick Order support?

    Hi,

    Is anyone supporting Quick Orders or thinking of adding to it? It's a very useful contribution, but I need a slight addition.

    As it stands now, if I know the model number of a product I can order it using the Quick Order form even if the product is out of stock. So the Buy Now button in Quick Order needs to call whatever Zen code checks for stock.

    As you may have guessed, I don't do PHP, though maybe this is a small enough project for me to learn on.

    Rob

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Quick Order support?

    I "mis-spoke myself."

    I don't need to check for out of stock, since all my products have 0 quantity on hand and "check stock" is set to false. I need to check for Status enabled. In admin, a product is enabled if there's a green dot next to the product, and dis-abled if the dot is red. That's what I need to check.

    Can anyone tell me the zen_call to use for that? If so, I'll give it a try myself.

    Rob

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Quick Order support?

    products_status field from the products table will be 0 if it's disabled, or 1 if it's enabled.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Quick Order support?

    Thanks Doc. That did the trick.

    For anyone using Quick Order, it's a simple change. Find the file includes/modules/pages/quick_order/header_php.php

    In that file, find the comment // LOOK UP ALTERNATE SKUS

    In the SELECT statement just below that, find
    PHP Code:
    SELECT p.products_modelpd.products_name FROM %AS p, %AS pd WHERE p.products_id pd.products_id AND 
    ...and replace it with this...
    PHP Code:
    SELECT p.products_modelpd.products_name FROM %AS p, %AS pd WHERE p.products_status AND p.products_id pd.products_id AND 
    In other words, add p.products_status = 1 to the WHERE clause.

    Any time someone enters a correct model number (into the Quick Order form) for a product that is temporarily disabled via admin, they'll get a warning message and the product won't be added to the shopping cart. You can edit the warning in includes/languages/english.php, as usual.

    Thanks again,

    Rob

  5. #5
    Join Date
    Jun 2007
    Posts
    8
    Plugin Contributions
    0

    Idea or Suggestion Re: Quick Order support?

    I cannot get quickorder to work.

    http://scw.pepperspalace.com/cart/in...ge=quick_order

    When I paste in either a product ID or description I get an error.
    Invalid item number: 584

    Here is a screenshot.
    http://i52.photobucket.com/albums/g6...persPalace.jpg

    Is this just a newbie mistake or is quick order broken.

 

 

Similar Threads

  1. Quick Updates plugin [support]
    By sicness in forum Addon Admin Tools
    Replies: 664
    Last Post: 18 Jan 2024, 10:08 AM
  2. v151 Quick Quantity Update Support Thread
    By swguy in forum Addon Admin Tools
    Replies: 33
    Last Post: 17 Oct 2022, 09:44 PM
  3. v154 Quick Order - How to change sort order?
    By anduril3019 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 20 Jun 2015, 09:09 PM
  4. v138a Quick Re-order aka order_history.php history beyond last order
    By beyerg in forum Customization from the Admin
    Replies: 1
    Last Post: 24 Jan 2012, 11:14 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR