If this is your first visit, check our documentation. To post, register or login.

Sending order data to a script

Started by jsquared on 11 Jan 2012, 10:37 PM · Views: 4,418

Results 21 to 26 of 26
5 Sep 2012, 7:54 PM
#21
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #21 by drbyte

Use Express Checkout instead of Website Payments Standard, and then the normal notifiers will fire properly.

.
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.

5 Sep 2012, 11:52 PM
#22
jsquared avatar

jsquared

New Zenner

Join Date:
Dec 2005
Location:
Kalamazoo, MI
Posts:
65
Plugin Contributions:
0

Post #22 by jsquared

Thanks again for the quick response. That solved the problem in short order.

J.J. Meddaugh
http://www.atguys.com

18 Jan 2013, 4:56 PM
#23
shk avatar

shk

New Zenner

Join Date:
Oct 2006
Posts:
62
Plugin Contributions:
0

Post #23 by shk

Using this approach, how would I grab the stock quantity from the ordered products? Since that information is not part of $Class->products i suspect that it would need to be added from the order class. Im looking at the stock_limited section but havent quite figured out how to adapt it.

It would be quite useful to have the out-of-stock products passed along so I could automate the backorder process.

18 Jan 2013, 6:40 PM
#24
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #24 by drbyte

SHK:

Using this approach, how would I grab the stock quantity from the ordered products? Since that information is not part of $Class->products i suspect that it would need to be added from the order class. Im looking at the stock_limited section but havent quite figured out how to adapt it.

It would be quite useful to have the out-of-stock products passed along so I could automate the backorder process.
The simplest way would be to simply run a quick query in your observer class to retrieve the necessary information to pass along.

.
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.

21 Jan 2013, 1:11 PM
#25
shk avatar

shk

New Zenner

Join Date:
Oct 2006
Posts:
62
Plugin Contributions:
0

Post #25 by shk

DrByte:

The simplest way would be to simply run a quick query in your observer class to retrieve the necessary information to pass along.
Right you are. Dont know what I was thinking. Thanks for reminding me.

Now my little observer compares order qty with stock qty and changes the order status to backorder.
Backorder items(model/qty) are sent to our main system and placed on the next order to our suppliers.
Like jsquared I also send the shipping information sent to our logistics partners.

Quite useful little things, these observers.

26 Jan 2013, 11:15 PM
#26
jsquared avatar

jsquared

New Zenner

Join Date:
Dec 2005
Location:
Kalamazoo, MI
Posts:
65
Plugin Contributions:
0

Post #26 by jsquared

And/or, You could set up a cron to check for 0 or low-stock items at regular intervals and do whatever you wish from there. Depends on how fast your inventory moves I guess.

J.J. Meddaugh
http://www.atguys.com