osCmax v2.5 User Manual
Results 1 to 8 of 8

stock not getting substracted

This is a discussion on stock not getting substracted within the Paypal forums, part of the Payment Modules category; i just switched from standard osc to oscmax because osc wasnt substracting the stocks and i had many oversales now ...

      
  1. #1
    New Member
    Join Date
    Jun 2010
    Posts
    10
    Rep Power
    0


    Question stock not getting substracted

    i just switched from standard osc to oscmax because osc wasnt substracting the stocks and i had many oversales
    now after 3 days of work i added the first products and tested the checkout process

    and guess what - the stock doesnt get substracted again

    i tested with paypal ipn, paypal standard and paypal credit/debit card

    stock substraction is enabled

    i didnt modified oscmax alot, only the customer details

    does anyone have a clue what is going wrong?

    thanks in advance

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: stock not getting substracted

    Unable to reproduce the issue using Paypal IPN + stock tracking on.

    I started with a product with 100 items in inventory. I ordered 10 and completed the full checkout via paypal including the IPN from paypal. Inventory for the product was properly reduced to 90 items.

    Note that if the IPN is not received from paypal (paypal payment confirmed from paypal), the items will not be removed from stock.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Jun 2010
    Posts
    10
    Rep Power
    0


    Default Re: stock not getting substracted

    i used paypal sandbox and competed any order with redirection to the local checkout so the order got confirmed

    is tax, weight or anything like that involved in stock substraction?
    because im selling virtuell goods i am leaving this field unused

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: stock not getting substracted

    Well, there is your problem. You cannot track stock on virtual goods - they are virtual thus no stock can exist.

    You can only track stock on real goods, since there is no point of tracking stock on something that cannot be stocked. The way you get around this is to set a weight for the item. Then it will be treated as a real item and stock will be tracked.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Jun 2010
    Posts
    10
    Rep Power
    0


    Default Re: stock not getting substracted

    hmmm so the weight should be the problem causer.. i will check that tomorrow, im too drunk now XD

  6. #6
    New Member
    Join Date
    Jun 2010
    Posts
    10
    Rep Power
    0


    Default Re: stock not getting substracted

    i have added weight, dimensions and even a 0% tax class and still nothing gets substracted
    any more ideas?

  7. #7
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: stock not getting substracted

    Could be anything as I cannot reproduce it on a clean install. I suggest you do a second, unmodified clean install of osCmax and do the following:

    1. add 1 product with quantity set to 100 and weight set to 1.

    Paypal settings:
    Make sure to connect to the paypal sandbox.

    2. Enable the "Credit/Debit Card (via PayPal)" module only.
    3. Set the Set Preparing Order Status to Preparing [PayPal IPN]
    4. Set the Set PayPal Acknowledged Order Status to Preparing [PayPal IPN]
    5. Set the Set PayPal Completed Order Status to Delivered
    6. Set the Transaction Type to Aggregate

    Shipping settings:
    7. Enable the flat rate shipping module and set it to $1.00

    Under Admin >> Configuration >> Stock

    8. Make sure Check Stock Level is true
    9. Make sure Subtract Stock is true
    10. Make sure Allow Checkout is set to false
    11. Mark product Out of Stock is true



    Once you have all those settings identical to above, go through the checkout process, and complete an order for 10 of your test product. Complete the transaction fully, and make sure that your store can properly receive the IPN from paypal. You will be able to check this after you complete the order at paypal by logging into your admin panel and checking the order status. If the order status is not set to Delivered after you complete the purchase at paypal, your site is not able to receive the IPN from paypal, and that is your problem. Your site never gets the IPN, so it never completes that checkout, including adjusting stock. Until you get your site permissions correct to receive the IPN, it will not work.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  8. #8
    New Member
    Join Date
    Jun 2010
    Posts
    10
    Rep Power
    0


    Default Re: stock not getting substracted

    thanks alot, i think you just saved me alot of time
    im hosting with an offshore/bulletproof hoster and it seems that the ipn confirmation isnt getting through
    i just wrote a big support ticket with alot of issues and hopefully they will fix all of them within the next days, otherwise i will get a new hoster

    thanks alot for your time and your detailed response
    i will stay with oscmax and will get back here regularly
    my threads in the osc forum still arent answerd as detailed and as fast as you did, thats the main reason for me to choose a script: support

    thanks again and keep up the good work

    i will reply to this thread if any issue like that will continue

Similar Threads

  1. Out of Stock but must be in stock
    By felixayuso in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 06-07-2010, 12:08 PM
  2. stock issues
    By astonishedman in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 11-17-2009, 02:11 PM
  3. Help with the 'Buy it Now' <> 'Out of Stock' MOD
    By 14karat in forum osCmax v2 Customization/Mods
    Replies: 7
    Last Post: 07-28-2009, 03:24 AM
  4. Stock Quantity not being substracted
    By muyaszed in forum osCMax v2 Features Discussion
    Replies: 10
    Last Post: 10-01-2008, 07:25 AM
  5. Maximum Stock Quantity on Stock Page?
    By Dubious in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 08-18-2006, 02:17 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
  •