Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2004
    Posts
    167
    Plugin Contributions
    0

    Default where is the code that subtracts the stock when an order is placed?

    Hi

    Can any of you Zen gurus tell me where the query is that subtracts the stock from the products_quantity field when an order is placed?

    I have looked and looked in this forum but to no avail - please help!

    Thanks

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Attn Zen Gurus

    What are you wanting to do?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jul 2004
    Posts
    167
    Plugin Contributions
    0

    Default Re: Attn Zen Gurus

    Hi

    I think it is in the orders class - around line 657, however the stock is not deducting when an order is placed - I am using 1.3.7.

    Do you have any clues as to where I could look, with regards as to where else could be not functioning properly?

    I ask this as it is probably a mod which I installed at some point but didnt notice this problem until now!

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Attn Zen Gurus

    What are your settings in Admin> Configuration> Stock?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Jul 2004
    Posts
    167
    Plugin Contributions
    0

    Default Re: Attn Zen Gurus

    Hi

    Thanks for your reply. I looked there earlier as I found some reference to those configuration setfings in other threads.

    However I searched my config table and dont seem to have the configuration values installed under I think it is cong group id 12 - I have Sage stock installed but am not using Sage, do you think that when I installed that it effectively paused the Zen stock control?

    I which case do you know what SQL off hand, I should run to repair that process?

  6. #6
    Join Date
    Jul 2004
    Posts
    167
    Plugin Contributions
    0

    Default Re: where is the code that subtracts the stock when an order is placed?

    Hi

    In the unlikely event that anybody else runs into this same problem, with a bit of (tired) thinking this is how I just solved the problem:


    1) If not present for some bizarre reason add:

    9 Stock Stock configuration options 9 1

    into table configuration_group

    2) Again if not present add:

    233 Subtract stock STOCK_LIMITED true Subtract product in stock by product orders 9 2 0000-00-00 00:00:00 2008-01-11 17:35:15 zen_cfg_select_option(array('true', 'false'),

    into table configuration

    3) Stock take :)
    Last edited by ink; 29 Jan 2008 at 01:10 AM.

 

 

Similar Threads

  1. v151 Where are the code that handle the shipping estimator POST data
    By su35 in forum General Questions
    Replies: 2
    Last Post: 31 Jan 2014, 10:05 PM
  2. Where is the code that sends order data to the database?
    By bparker in forum General Questions
    Replies: 1
    Last Post: 15 May 2013, 05:37 PM
  3. where to find the code that does the radio button?
    By denniszc in forum General Questions
    Replies: 9
    Last Post: 8 Apr 2013, 12:45 PM
  4. How can I display the product image in the placed order?
    By jarcher in forum Managing Customers and Orders
    Replies: 2
    Last Post: 8 Dec 2008, 03:15 PM
  5. Where would I look to change the name that shows at the top of the Browser?
    By ScootaMan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Nov 2007, 02:31 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