Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    9
    Plugin Contributions
    0

    Default Stock_by_attributes - which code allows manual updates of the stock?

    I use Filemaker 11 Advanced to update the products, something I normally find much easier than the native control panel or Magnetic One.

    But how can I update the stock by attributes with this program (or any other database management program, I suppose?)

    Could somebody be so kind as to guide me to the exact php/sql-code that does this? Is it possible to only do this with SQL, or is the php necessary (seems like it depends on arrays)?

    Would it be possible to add a database field for attributes_id in the table stock_by_attributes, or a quantity field in the products_attributes table, and thus make a more direct link?

    I have given up the idea of having two options tied to one attribute anyways (I need to show exactly the attributes we have in stock, not all possible combinations), so I will just show one attribute option (being made up of both color and size where needed).

  2. #2
    Join Date
    Jul 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Stock_by_attributes - which code allows manual updates of the stock?

    I forgot to give the update on this one:

    The simple solution was to make sure that the sum of all the attribute quantities equals the product quantity.
    Then both the attribute quantity and the product quantity will be substracted when an order is made.

 

 

Similar Threads

  1. v139h system allows selling more than is in stock
    By artworkz in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 16 Jan 2012, 08:43 PM
  2. Stock By Attributes allows out of stock items through checkout!
    By kazbryan in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 8 Dec 2011, 05:41 PM
  3. Stock Level of 1 allows 2 orders
    By OldOrchard in forum Managing Customers and Orders
    Replies: 10
    Last Post: 24 Oct 2010, 11:41 PM
  4. Which file allows you edit the main page ?
    By macc88 in forum Basic Configuration
    Replies: 5
    Last Post: 9 Nov 2009, 12:26 PM
  5. manual currency updates
    By exportgold in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 3
    Last Post: 22 Aug 2006, 12:09 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