Forums / Customization from the Admin / Stock by Attributes +Edit Orders + Super Orders

Stock by Attributes +Edit Orders + Super Orders

Views: 1,999

Results 1 to 8 of 8
7 Sep 2014, 5:50 PM
#1
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Stock by Attributes +Edit Orders + Super Orders

G'day Folks,

I don't know if anyone else here uses this combo of module (as per thread title) but I've managed to get them to all play quite nicely together, with one exception.

When attributed stock products are added to an order via the edit_orders/super_orders module only the parent stock counts are adjusted, not the stock with attributes. The only way I've found to keep the SBA quantities correct is by manually adjusting them after using the editor.

Is this abnormal behaviour caused by a mistake I've made when merging the various files, or is it simply that Edit_orders isn't 'aware' of the Stock by Attributes stock?

If it's normal behaviour has anyone got any ideas how to best resolve the problem. I'm having a heck of a time following the code.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

7 Sep 2014, 7:13 PM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Stock by Attributes +Edit Orders + Super Orders

RodG:

or is it simply that Edit_orders isn't 'aware' of the Stock by Attributes stock?

You'll need to add the SBA code in to Edit Orders.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

8 Sep 2014, 1:52 AM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Stock by Attributes +Edit Orders + Super Orders

RodG:

I'm having a heck of a time following the code.

Which code section? SO, SBA, or unfortunately both?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

8 Sep 2014, 8:51 AM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Stock by Attributes +Edit Orders + Super Orders

twitchtoo:

You'll need to add the SBA code in to Edit Orders.

More info please.

Which part(s) of the SBA code need to be added to which parts of the Edit Orders code.

I assume this is something that you've already done?

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

8 Sep 2014, 8:53 AM
#5
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Stock by Attributes +Edit Orders + Super Orders

mc12345678:

Which code section? SO, SBA, or unfortunately both?

The SBA code is relatively simple.

The edit orders code not quite so simple.

Im not sure how this helps <??????>

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

9 May 2016, 12:07 AM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,730
Plugin Contributions:
56

Re: Stock by Attributes +Edit Orders + Super Orders

I was just noodling on this. It looks like the logic from includes/classes/observers/class.products_with_attributes_stock.php needs to be added to the edit orders process where new items are created.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 May 2016, 11:58 AM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Stock by Attributes +Edit Orders + Super Orders

There are commercial alternatives to SBA that do inter-operate well with Edit Orders; maintaining stock levels and the like.

9 May 2016, 1:26 PM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,730
Plugin Contributions:
56

Re: Stock by Attributes +Edit Orders + Super Orders

Would you please PM me this information? Thanks so much.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.