ok, I just figured that one needs to initialize the attributes with non zero values, and then change them to 0.
ok, I just figured that one needs to initialize the attributes with non zero values, and then change them to 0.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I set up a test 1.5.0 cart and merged the SBA v1.5.3 code into the stock 1.5.0 files. I set up a couple of products using the picture frame product example in the SBA instructions. The product displayed the individual attribute quantities on the store front product page as expected. With the testing I've done so far the module seems to be working fine except for this next thing I want to ask about. I thought I had come across someone asking about the quantity not displaying correctly. I searched around and can't find the post.
On the module download page it says
" For example, if you offered cotton or polyester shirts in green, red or blue and small medium or large sizes, this add-on would allow you to enter and maintain a separate stock level for each of the 18 possible combinations"
I set up a product using this scenario
material
cotton
polyester
color
green
blue
red
size
small
medium
large
In catalog > products with attributes stock, I set up the Quantity For Product Variant using 'all - attributes - combo' for the size, color and material and added a quantity. Then I adjusted the quantities for each variant and clicked the save button. Next I clicked the sync link. The total in stock synced to 119.
In the storefront on the product page each variant shows a quantity of 119 instead of the quantity showing in admin for each variant.
Is there a way to make it show the correct quantity for each variant or is that not going to happen because there are more options making it more complex?
When you sync the variants quantities to the product quantity, what shows is the sum of all variants as the quantity available at the product level. Since all variants are part of the same product, there is really no way to show a specific variant quantity in the storefront without doing some recoding is my understanding. However, when placing a variant into the cart (and if you have check stock turned on), the quantity of the variant is used to determine the stock available. So you will not over sell what you don't have.
Hope that helps.
thanks batracy
Boy, do I feel dense. It took a long time to realize/understand the scenario described.
The deeper reason for the quantity remaining display issue here using: SBA 1.5.3 which is designed for ZC 1.5.1 and appears to work with ZC 1.5.0, is that once 2 or more attributes are presented, determining what constitutes a combination at which to display the available quantity? This eventually is addressed in one option of Dynamic Dropdowns which apparently was developed several years ago specifically for SBA.
The solution that has become accepted by most is a next option sequenced by previous option dropdown style. First selection is made, then the available second selection is presented. Second to third, etc... That plugin is incorporated into SBA 1.5.4 and is expected to be. incorporated into SBA 1.5.3 soon.
At any rate, the functionality of the modifications made to Dynmic Dropdowns in support of this version of SBA includes identifying possible variants that are out-of-stock, quantity remaining of variants identified at the last option in the list or the first option that has a child with no available quantity, whichever comes first.
There are a few other benefits incorporated, one of which is that in times past when using DD, without recoding, the entire store had to have SBA tracked quantities if anything had an attribute. While possibly convenient and necessary for some stores, not every store needs to track the amount of product that has say an option to download or email an attachment.
There are additional improvements in store as well including image changes based on selection of sub-attributes leading to full product selection.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
hi guys
I downloaded the versionf rom github for zc1.5.4 but and I am ftping files slowly, but once i transfer the two files in admin/auto loaders, the admin site crashes any ideas?
thanks
Would have better ideas if the generated error messages were provided. (Sorry, forgot to include the where: check the logs folder of your site.). Also if it were explained at what point of transferring files to the site were those files transferred. Are those the only two files transferred, or for some reson the last two files?
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
not sure if this the same/similar issue to jagall's, but i have merged/uploaded files for stock_by_attribute_1.5.4-mc12345678_ZC154, using zen cart 1.5.3, and i cant access admin, i am getting below error:
[20-May-2015 10:14:30 UTC] PHP Fatal error: Class 'products_with_attributes_stock_admin' not found in /var/www/vhosts/jarbon.com/httpdocs/dev/includes/autoload_func.php on line 79
Bookmarks