Zen Cart Logo
Forums / All Other Contributions/Addons / Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Views: 658,732

Results 421 to 440 of 3,609
8 May 2008, 5:19 AM
#421
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Stock by Attribute v4.0 addon for v1.3.5-1.3.9

MB1:

just upgraded to 1.38a and reinstalled stock by attribute, and now it doesn't work properly example: if i have 2 x 16oz gloves left in stock but 8 in all, anyone can order 8 16oz gloves without getting a warning, and if they go over the total amount of gloves and the warning now just stats that that there is 0 gloves available. it worked fine before the upgrade and reinstall.

any help would be great.
You upgraded zencart to 1.3.8.a. Did you use correct version of
Stock by Attributes for zencart version now installed.

8 May 2008, 6:45 AM
#422
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

MB1:

just upgraded to 1.38a and reinstalled stock by attribute, and now it doesn't work properly example: if i have 2 x 16oz gloves left in stock but 8 in all, anyone can order 8 16oz gloves without getting a warning, and if they go over the total amount of gloves and the warning now just stats that that there is 0 gloves available. it worked fine before the upgrade and reinstall.

any help would be great.misty's suggestion is certainly a possible explanation, but I'd put my money on an FTP problem. Because you've upgraded your Zen Cart I'll bet all the files have sparkling new datestamps. When you then install Stock by Attribute, some of whose files will have older datestamps, and your FTP client may ignore those that appear older than the new Zen Cart files that you need to overwrite. This issue has already been done to death earlier in this thread, so there's plenty of extra detail there if you need it.

8 May 2008, 12:04 PM
#423
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

i just re stalled all the SBA files last night again and it seems to work now

8 May 2008, 1:07 PM
#424
greenraingraphics avatar

greenraingraphics

New Zenner

Join Date:
Feb 2008
Posts:
11
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

The following helped me with my blank checkout page problem. I was on the verge of unfollowing the installation instructions, in order to uninstall. I renamed the original files "filename_ORIG.php", adding the _ORIG part to any original files. But, I did not move them. The files that I believe were causing the blank checkout page are /includes/modules/pages/checkout_shipping/header.php and includes/modules/pages/shopping_cart/header.php. After moving the _ORIG files to a newly created directory specifically for saving _ORIGINAL_FILES, the checkout now works as it always has.

Just reaffirming the point kuroi makes in post #324 as seen below. Hope this helps anyone else who is about to pull their hair out of their head with frustration! Good luck!

(and thanks kuroi for having such simple but valuable advice, a virtual slap across the head!)

kuroi:

The construction of a Zen Cart page is a very complex business. The control code whizzes round your site picking up components from all over the place. In some places it just picks up files that match specific naming conventions, in others it picks up everything in a relevant folder.

For this reason it is dangerous to leave backup files mixed in with your live files. Zen Cart doesn't have any logic to tell it that the insertion of OLD into a filename means that you don't want it executed.

By all means keep backups, but keep them separate from your live (or in this case development) site.

8 May 2008, 6:02 PM
#425
speedyvespa avatar

speedyvespa

New Zenner

Join Date:
Jun 2004
Posts:
60
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

My install works great except it doesn't give an error that there is insufficient stock when you proceed to checkout.

I've installed SbA v4.0 onto a new install of Zencart 1.3.8a. The mods I have are

  • image handler 2
  • column format product listing
  • easy rollovers

... and I've made quite a few cosmetic changes also - as you can see:

(it's pw protected: user: zendev pass: devvingzen)

http://tinyurl.com/5uz7ok

If you try to check out on with the above item (pick a size 12 which has zero stock), it won't let you proceed past the checkout, but it doesn't give you a warning to say there's no stock either - it just brings back the same screen.

Any ideas, anyone?
TIA!

8 May 2008, 6:54 PM
#426
speedyvespa avatar

speedyvespa

New Zenner

Join Date:
Jun 2004
Posts:
60
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

speedyvespa:

My install works great except it doesn't give an error that there is insufficient stock when you proceed to checkout.

I've installed SbA v4.0 onto a new install of Zencart 1.3.8a. The mods I have are

  • image handler 2
  • column format product listing
  • easy rollovers

... and I've made quite a few cosmetic changes also - as you can see:

(it's pw protected: user: zendev pass: devvingzen)

http://tinyurl.com/5uz7ok

If you try to check out on with the above item (pick a size 12 which has zero stock), it won't let you proceed past the checkout, but it doesn't give you a warning to say there's no stock either - it just brings back the same screen.

Any ideas, anyone?
TIA!

OK - an update, I get the "out of stock" red message on the header IF i have more qty in my cart than I have total stock for that item...

i.e. if I have 1 size 0 in stock for this item (1 qty in all attributes) and try to check out with 1 size 2, it won't let me proceed but no error.

  • if I try to checkout with 2 size zeros (or 2 total of any size), it won't let me proceed, but I get the error.
10 May 2008, 10:37 PM
#427
pinkchalkstudio avatar

pinkchalkstudio

New Zenner

Join Date:
Apr 2008
Posts:
78
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

OK, I'm going around in circles here. I've got the mod installed and it's working perfectly, thank you!

I'd like to do one more thing and it's exactly this (copied from the Wiki):

How can I show the amount of stock available next to each attribute on the product information page?

"This is relatively straightforward if you have only a single attribute such as size of color for each product. Code for this is proposed in this archive thread[1]. Seek out post #110 by Grayson, and her correction in #132 and apply the changes to the includes/modules/attributes.php file instead of includes/modules/pages/product_info/main_template_vars_attributes.php "

The files referenced in that Wiki answer no longer exist in the mod. The link takes me to a zen cart page that says I don't have access to that post.

Can you point me to information on how to implement this change? I'm running version 4.7.

10 May 2008, 11:26 PM
#428
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

speedyvespa:

I've installed SbA v4.0 onto a new install of Zencart 1.3.8a.It would be a major surprise if SbyA 4.0 worked on Zen Cart 1.3.8.

This mod is extremely sensitive to changes in the Zen Cart code and needs tweaking for each new release. 4.0 was written for Zen Cart 1.3.5. For 1.3.8 you need SbyA 4.7.

10 May 2008, 11:33 PM
#429
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

pinkchalkstudio:

OK, I'm going around in circles here. I've got the mod installed and it's working perfectly, thank you!

I'd like to do one more thing and it's exactly this (copied from the Wiki):

How can I show the amount of stock available next to each attribute on the product information page?

"This is relatively straightforward if you have only a single attribute such as size of color for each product. Code for this is proposed in this archive thread[1]. Seek out post #110 by Grayson, and her correction in #132 and apply the changes to the includes/modules/attributes.php file instead of includes/modules/pages/product_info/main_template_vars_attributes.php "

The files referenced in that Wiki answer no longer exist in the mod. The link takes me to a zen cart page that says I don't have access to that post.

Can you point me to information on how to implement this change? I'm running version 4.7.If your includes/modules/attributes.php file is missing, then you have a big problem that needs to be addressed.

I suspect that the forum archive has been turned off to speed up the performance of the forum. This is probably sensible as the much of what was in there was out-of-date and therefore misleading anyway.

Unfortunately the odd gem will get lost in this process. Maybe somebody who has made the changes requested above recently could post the code that they used ???

11 May 2008, 12:07 AM
#430
pinkchalkstudio avatar

pinkchalkstudio

New Zenner

Join Date:
Apr 2008
Posts:
78
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Thank you for putting the request out Kuroi, I was obviously wrong about not having the attributes.php file. :smile: I was looking in my core files for SBA v4.7...

I'll wait to see if anyone can share the mods.

Thanks,
Kathy

12 May 2008, 7:18 AM
#431
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Hi All,

What is the best way to uninstall this module?

Thanks.

12 May 2008, 3:53 PM
#432
greenraingraphics avatar

greenraingraphics

New Zenner

Join Date:
Feb 2008
Posts:
11
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

gsdcypher:

Hi All,

What is the best way to uninstall this module?

Thanks.

I have the same question. The module is great, but with my particular setup, it presents a couple challenges that are too time consuming to work around. Great module, but need help uninstalling. I've moved all files (i think) to a 'mods not in use' folder, but I'm still getting database error on frontend and in admin area.

1146 Table 'myb0810212513999.TABLE_PRODUCTS_STOCK' doesn't exist
in:
[select quantity from TABLE_PRODUCTS_STOCK where products_id = '368' AND quantity > 0

Have I missed something somewhere?

12 May 2008, 4:19 PM
#433
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

gsdcypher:

What is the best way to uninstall this module?@gsdcypher, If you're using the current version, 4.7, then running the following SQL should neuter it> DROP TABLE products_with_attributes_stock;
DELETE FROM configuration where configuration_key = "STOCK_SHOW_LOW_IN_CART";You may wish to also replace the files mentioned in the installation documentation with their originals from the release package of the Zen Cart version that you have installed, but that shouldn't be necessary.

greenraingraphics:

I have the same question. The module is great, but with my particular setup, it presents a couple challenges that are too time consuming to work around. Great module, but need help uninstalling. I've moved all files (i think) to a 'mods not in use' folder, but I'm still getting database error on frontend and in admin area.

1146 Table 'myb0810212513999.TABLE_PRODUCTS_STOCK' doesn't exist
in:
[select quantity from TABLE_PRODUCTS_STOCK where products_id = '368' AND quantity > 0

Have I missed something somewhere?@greenraingraphics, installing won't help you as your problem has nothing to Stock by Attributes. See post #405.

12 May 2008, 6:30 PM
#434
greenraingraphics avatar

greenraingraphics

New Zenner

Join Date:
Feb 2008
Posts:
11
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

kuroi:

@greenraingraphics, installing won't help you as your problem has nothing to Stock by Attributes. See post #405.

Right you were! I had seen that post previously, but got caught up in removing things that I assumed it was related.

Thanks for the help!:smile:

23 May 2008, 4:12 PM
#435
drewby07 avatar

drewby07

New Zenner

Join Date:
Jan 2008
Posts:
12
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

kuroi:

If your includes/modules/attributes.php file is missing, then you have a big problem that needs to be addressed.

I suspect that the forum archive has been turned off to speed up the performance of the forum. This is probably sensible as the much of what was in there was out-of-date and therefore misleading anyway.

Unfortunately the odd gem will get lost in this process. Maybe somebody who has made the changes requested above recently could post the code that they used ???

I found the post mentioned....and it works like a charm. Just be sure you realize that instead of trying to find the file :includes/modules/pages/product_info/main_template_vars_attributes.php (which doesn't exist)

You really need to edit : includes / modules / attributes.php

The link to the post in question is : http://www.zen-cart.com/forum/showpost.php?p=168654&postcount=110

Sorry if this is redundant....I've been working on this for like 3 days now only to realize the info was right here all along....

24 May 2008, 12:42 AM
#436
adoy avatar

adoy

New Zenner

Join Date:
Feb 2008
Posts:
45
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

i have a product with attribute. how do i make it so that it allows checkout even when a certain attribute is out of stock and will just notify the customer that the product will be shipped it 3 weeks.

e.g.

product: t-shirt
attribute: yellow = 10
red = 0
green = 8

how would i allow customer to checkout with their order red and will just notify them that it will be shipped in 3 weeks.

thank you so much!

24 May 2008, 3:17 AM
#437
woodlandsprite avatar

woodlandsprite

Zen Follower

Join Date:
May 2006
Posts:
307
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

drewby07:

I found the post mentioned....and it works like a charm. Just be sure you realize that instead of trying to find the file :includes/modules/pages/product_info/main_template_vars_attributes.php (which doesn't exist)

You really need to edit : includes / modules / attributes.php

The link to the post in question is : http://www.zen-cart.com/forum/showpost.php?p=168654&postcount=110

Sorry if this is redundant....I've been working on this for like 3 days now only to realize the info was right here all along....

Drew, thanks for hunting that down and posting. Not sure if the wiki can be updated by just anyone, but it would be fantastic if it could be updated with that direct link. The link that had been in the wiki has been broken.

25 May 2008, 5:06 PM
#438
pinkchalkstudio avatar

pinkchalkstudio

New Zenner

Join Date:
Apr 2008
Posts:
78
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

To drewby07: :hug:

This was driving me crazy, thank you so much for finding the link and posting your results. I implemented this morning and it's working great.

If anyone is curious, you can see how displaying the stock level next to the attribute looks here: http://www.pinkbypost.com/index.php?main_page=product_info&cPath=37_51&products_id=9

5 Jun 2008, 2:27 AM
#439
xtinexoop avatar

xtinexoop

New Zenner

Join Date:
Mar 2004
Posts:
34
Plugin Contributions:
1

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Hi

Have just installed v4.7 and wondering if there is any way of changing the 'Quantity in Cart' so that it changes with the attribute selected, rather than showing the total number of product in the cart.

e.g. at the moment if I add 2 yellow and 1 red item the Quantity in Cart shows 3 whichever attribute I select in the dropdown.

Alternatively is it possible just to remove the Quantity in Cart text and count because it doesn't make sense to me to have "3"

Christine

10 Jun 2008, 5:43 PM
#440
tech_e avatar

tech_e

Zen Follower

Join Date:
Jan 2007
Posts:
159
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

I really like this contribution. It solves a huge problem for me, because I have several products with color variations set up as attributes. :D

I just installed 4.7a on a Zen Cart 1.38a installation. I have an issue to draw to attention to and a question.

The first time I went to set stock quantities on a product with two attribute variations, I accidentally selected Both for the product to select for change. I got a Headers Already Sent error that I traced to admin/products_with_attributes_stock.php, line 193. The following echo statement generates the error.

echo "att: $attributes<bR>\n";

The line generated output that displays "att: 1/2".
I do not get the error when I correctly select a single attribute to change.

I commented the line out and everything seems to work fine.

I really like the feature that displays the amount of stock available in the Shopping Cart when a customer orders more than the current stock level. However, the Shopping Cart displays a message, "Items not in stock will be placed on backorder" and the customer is billed for the entire quantity.

My bank rep that is setting up my Authorize.net account told me that all orders must be shipped within seven days from the order date. Since that is not possible with some backorders, how do I prevent backorders from occurring?

If there are 5 items in stock and the customer is trying to buy 10, is there a way for me to advise them to adjust the order quantity or prevent them from placing an order for items that exceed the quantity that I can ship?

The best solution would be to actually put it on backorder and not bill the customer for backordered items until they ship, but I don't think we can do that with the current version of Zen Cart. *** hint, hint, hint for future release ***