Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default Re: Auto update Order Status via barcode on invoice

    To do this right, if I used a variable similar to:
    $status = (order_status='4');

    I could then use that variable for the Update Statement SET orders_status='" . $status . "' and the Insert Statement would reference the same thing properly.

    How would that variable define "Order Status id #4" correctly?

  2. #12
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Auto update Order Status via barcode on invoice

    $status = 4;
    .

    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.

  3. #13
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default Re: Auto update Order Status via barcode on invoice

    Kudos DrByte

    I had put quotes around the 4 at one time, didn't know you can drop them all together. I look forward to presenting this module to ZC very soon here.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v154 Scan Barcode > Post Order Update
    By ShopVille in forum General Questions
    Replies: 14
    Last Post: 12 Sep 2015, 02:41 AM
  2. Can you auto update the order status?
    By ricky_moore in forum Managing Customers and Orders
    Replies: 3
    Last Post: 11 Jan 2011, 05:35 PM
  3. Change Email Subject of Status Update Messages e.g. Order Update XXXX
    By apemusic in forum Managing Customers and Orders
    Replies: 4
    Last Post: 13 Oct 2010, 08:42 AM
  4. Auto Order Status update?
    By Diddyo in forum General Questions
    Replies: 3
    Last Post: 25 Jul 2010, 05:14 AM
  5. invoice deleted on update of status
    By alghazn in forum Managing Customers and Orders
    Replies: 5
    Last Post: 2 Nov 2007, 09:55 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