Zen Cart Logo
Forums / All Other Contributions/Addons / Stocks by attributes

Stocks by attributes

Locked

Views: 251,258

Results 901 to 920 of 1,126
This thread is locked. New replies are disabled.
13 Apr 2010, 1:03 AM
#901
newagekat avatar

newagekat

Zen Follower

Join Date:
Nov 2005
Location:
Vancouver, Canada
Posts:
151
Plugin Contributions:
0

Stocks by attributes

Hi Kuroi:

I'm using Your version of this mod with ZC 1.3.8a. Once I switched over to your version, all is right with the world.

I don't know how you guys do it all. I can't even find time for lunch.

I've looked around the post, man is it long! I need to make a modification for the client. Most of the products have size and color attributes. how can I adjust the code so that out of stock attributes stop appearing in the the attributes drop down?

this is the site in question.

Really, Really appreciate any input. thank you so much.

13 Apr 2010, 5:16 AM
#902
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Stocks by attributes

Asked and answered several times in this thread.. SBA as is today (regardless of version) doesn't support this when there are multiple attributes involved.. Attribute combos that are out of stock will continue to appear in the drop downs..

newagekat:

Hi Kuroi:

I'm using Your version of this mod with ZC 1.3.8a. Once I switched over to your version, all is right with the world.

I don't know how you guys do it all. I can't even find time for lunch.

I've looked around the post, man is it long! I need to make a modification for the client. Most of the products have size and color attributes. how can I adjust the code so that out of stock attributes stop appearing in the the attributes drop down?

this is the site in question.

Really, Really appreciate any input. thank you so much.

19 Apr 2010, 5:34 PM
#903
sg_aussie avatar

sg_aussie

New Zenner

Join Date:
Jun 2009
Location:
Melbourne, Australia
Posts:
1
Plugin Contributions:
0

Re: Stocks by attributes

Hi Everyone,

Zen Cart 1.3.8a
Stock by Attributes 1.4.9

I currently have the same warning error as the person below and can't seem to find the answer. Can anyone please help. Thank You...

Crin:

Hi all,

I have installed the products with attributes stock mod on my fresh ZenCart install. When i try to select it form the Catalog Menu i get the follwing errors...


Warning: main(includes/classes/products_with_attributes_stock.php) [function.main (http://nutmegsjewellery.co.uk/newstore/admin/function.main)]: failed to open stream: No such file or directory in /home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php on line 12

Warning: main(includes/classes/products_with_attributes_stock.php) [function.main (http://nutmegsjewellery.co.uk/newstore/admin/function.main)]: failed to open stream: No such file or directory in /home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php on line 12

Warning: main(includes/classes/products_with_attributes_stock.php) [function.main (http://nutmegsjewellery.co.uk/newstore/admin/function.main)]: failed to open stream: No such file or directory in /home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php on line 12

Fatal error: main() [function.require (http://nutmegsjewellery.co.uk/newstore/admin/function.require)]: Failed opening required 'includes/classes/products_with_attributes_stock.php' (include_path='.:/usr/share/pear') in /home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php on line 12

I followed the instructions ot the letter and I am using the latest release of the mod and a fresh install of the latest version of Zen Cart

19 Apr 2010, 6:11 PM
#904
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Stocks by attributes

The error seems to indicate a missing file.. Re-check your uploaded files.. Did you rename your admin directory??

sg_aussie:

Hi Everyone,

Zen Cart 1.3.8a
Stock by Attributes 1.4.9

I currently have the same warning error as the person below and can't seem to find the answer. Can anyone please help. Thank You...

20 Apr 2010, 3:42 PM
#905
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Stocks by attributes

limelites:

Ahaaaaaaa, figured this one out guys!!

For anyone else having a problem with this issue, just look at re-installing the files that shipped with the stock_by_attributes mod.

I've just cured my problems by overwriting /includes/classes/order.php with the order.php from "stock_by_attributes_4-7MULTIADD mod"

Somehow some other mod had corrupted the data that updates the "Quantity in Stock" in ADMIN>CATALOG>PRODUCTS WITH ATTRIBUTES".

It is now updating the Quantity in Stock Column with each sale. All working perfectly now.

Additionally, if you want the attribute in the drop down menu to automatically disable when the attribute quantity = zero, then you have to open /includes/modules/attributes.php and replace this:

$sql = "select pov.products_options_values_id,
pov.products_options_values_name,
pa.*
from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov
where pa.products_id = '" . (int)$_GET['products_id'] . "'
and pa.options_id = '" . (int)$products_options_names->fields['products_options_id'] . "'
and pa.options_values_id = pov.products_options_values_id
and pov.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
$order_by;

> with this:
> ```php
$sql=	"SELECT  pov.products_options_values_id,
       					 pov.products_options_values_name,
       					 pa.*,
       					 pwas.*
        	    FROM   " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov, " . TABLE_PRODUCTS_ATTRIBUTES . " pa LEFT JOIN " . TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK . " pwas ON pwas.stock_attributes = pa.products_attributes_id
                WHERE   pa.products_id = '" . (int)$_GET['products_id'] . "'
       			and    pa.options_id = '" . (int)$products_options_names->fields['products_options_id'] . "'
				and    (pwas.quantity > 0 or pwas.quantity IS NULL)
      			and    pa.options_values_id = pov.products_options_values_id
             	and       pov.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
				$order_by;

Hi limelight

I have used the details above from one of your posts - it was exactly what i was looking for - however even the items that i have in stock when added to cart show the *** out of stock and does not allow customers to chekout

you can see an example on the following page or any other product with attributes which is everything other then the clutch bags

http://zainabscollection.com/index.php?main_page=product_info&cPath=1&products_id=17

your help will be appreciated

thanks

abs

oh yeh im using version 1.4.9

21 Apr 2010, 9:47 AM
#906
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Stocks by attributes

Please guys can anyone help - My store is not functional as no one can checkout due to the issue noted above

thanks

21 Apr 2010, 1:53 PM
#907
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Stocks by attributes

Ok its not the actual fix that limelight provided which is causing the error. Even without the changes stock by attributes shows items which are in stock as not in stock on the checkout page.

I have temporarily disabled this by going to admin>configurations>stock>check stock levels - i changed the value to false so that customers can purchase. Im not entirely sure why everything is showing as out of stock when i have added the stock levels for each attribute -

If anyone can help it would be great

14 May 2010, 4:07 AM
#908
rickyhart avatar

rickyhart

New Zenner

Join Date:
May 2010
Posts:
6
Plugin Contributions:
0

Re: Stocks by attributes

Hey all. I've been searching posts for something similar to a problem I have, but am now crossed-eyed.

In my Stock by attribute is the following example

Product X -- size small - 2 items in stock

  • size medium - 2 items in stock
  • size large - 1 item in stock

The quantity for all variants says 5.

But when I go to add to cart, it allows me to add 5 items of each size, effectively 15 items.

What have I missed or am doing wrong? Any point in the right direction will be greatly appreciated. :unsure:

25 May 2010, 6:06 AM
#909
rickwilliams avatar

rickwilliams

New Zenner

Join Date:
Jul 2009
Posts:
48
Plugin Contributions:
0

Re: Stocks by attributes

rickyhart:

Hey all. I've been searching posts for something similar to a problem I have, but am now crossed-eyed.

In my Stock by attribute is the following example

Product X -- >

  • size small - 2 items in stock
  • size medium - 2 items in stock
  • size large - 1 item in stock

The quantity for all variants says 5.

But when I go to add to cart, it allows me to add 5 items of each size, effectively 15 items.

What have I missed or am doing wrong? Any point in the right direction will be greatly appreciated. :unsure:

I'm currently in a similar situation. One of my clients stock varients is now at minus 1 when it should be reading zero.

I'm unsure on whats causing it and have been searching through here like crazy for a fix.

25 May 2010, 7:17 AM
#910
kuroi avatar

kuroi

Totally Zenned

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

Re: Stocks by attributes

rickyhart:

The quantity for all variants says 5.

But when I go to add to cart, it allows me to add 5 items of each size, effectively 15 items.This happens when the order class hasn't been properly updated during mod installation so that order is being checked against the product stock instead of the product variant stock.

26 May 2010, 2:54 AM
#911
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Stocks by attributes

The quantity for all variants says 5.

But when I go to add to cart, it allows me to add 5 items of each size, effectively 15 items.

I had similar situation. Problem was my setting in admin/configures/stock - if Allow Checkout is set to 'true' it customers can buy more than is in current stock - effectively a backorder.

Problem was solved when I set Allow Checkout to 'false' and Check Stock and Subtract Stock to 'true'.

26 May 2010, 10:15 PM
#912
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: Stocks by attributes

How do you install this? The instructions are very limited. The install instruction say to rename the directory "includes/modules/YOUR_TEMPLATE" with your template name. But this directory does not exist in the zip file I have downloaded! So do I add a folder and rename it after my template?
It also says to rename "includes/templates/YOUR_TEMPLATE" in the same way, this one DOES exist and I have renamed it. I cant believe a very simple function like this isn't included in Zen Cart after all I know I am not the only one that needs colors/quantity/size ability. Any help would be greatly appreciated. Also I have renamed my admin folder as instructed for security reasons so should I rename the admin folder also in this add in? I am using Zen Cart 1.3.9c Thank you

27 May 2010, 4:52 AM
#913
ideashop avatar

ideashop

New Zenner

Join Date:
Sep 2007
Posts:
24
Plugin Contributions:
0

Re: Stocks by attributes

I'm looking at upgrading from Zen Cart 1.3.8a to 1.3.9c. I need to add all the code for the Stock By Attributes add-on.

QUESTIONS

  1. Is adding the code by hand pretty straightforward? I can drop in code if it's obvious where it goes, or if it doesn't require any rewriting of code.

  2. Once added, does it still work reliably?

  3. Is the 4.7 version by kuroi still the gold standard?

Thanks in advance!
Matt

27 May 2010, 12:34 PM
#914
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Stocks by attributes

I'm looking at upgrading from Zen Cart 1.3.8a to 1.3.9c. I need to add all the code for the Stock By Attributes add-on.

QUESTIONS

  1. Is adding the code by hand pretty straightforward?

Merging a few of the files into 1.3.9c was initially intimidating for me, as some files have been changed big time (esp orders.php and order.php). What made it MUCH easier for me was to first look at the SBA file against the zc 1.3.8a file where it was very evident where exactly the few SBA modifications were. Then I went back to comparing the SBA vs zc 1.3.9c file knowing which things to ignore as new core changes.

On top of that, most of the SBA code is clearly identified in blocks.

I don't know/write code, and I found it fairly straight forward.

31 May 2010, 8:56 PM
#915
scrat avatar

scrat

Zen Follower

Join Date:
Dec 2005
Posts:
451
Plugin Contributions:
0

Re: Stocks by attributes

Can anyone tell me which is the best version to use ? also will any of these versions work with v1.3.9c and php 5.3.

I have been putting off the upgrade but the server forcing me to upgrade:(

1 Jun 2010, 2:49 PM
#917
funkypapa avatar

funkypapa

New Zenner

Join Date:
Jul 2008
Posts:
84
Plugin Contributions:
0

Re: Stocks by attributes

Hi, I'm using this addon with version 1.3.8a. I have installed this addon on my live site along with the product attribute grid. It works wonderfully. However, I have started on my local machine to change the template and a few other things. In re-adding these modules back in, when you add some of my products to the cart it's coming up as out of stock.

I added the products to the catalog with current stock.
I assigned them attributes.
I went to the attribute manager and added each stock per attribute.

I'm at a loss as to why only 2 out of the 5 products I have there so far are coming up as out of stock in the shopping cart. I have deleted the products and re-added them thinking I may have done something wrong, but this did not fix it. I then deleted the attribute variants and checked....you can add it to the cart fine. However when I reassign the variants...I get the out of stock warning again. There are 3 in stock: 1 petite, 1 regular, 1 long.

I've tried some searching but my search terms turn up way too many results to sift through. Any help with this would be greatly appreciated.

2 Jun 2010, 7:34 PM
#918
natty avatar

natty

New Zenner

Join Date:
Dec 2008
Posts:
65
Plugin Contributions:
0

Re: Stocks by attributes

Hi All

I'm currently installing this mod into a test 139c store and so far managed to merge all the files using the methods in this forum. However one file is causing a problem.

includes/functions/functions_lookups.php

If I merge the mod code which is different into the core file, it causes the store to white screen (backend it OK still)
The core 139c file seems to work OK.

What have other people done for this file?

Thanks

Natty

3 Jun 2010, 3:33 AM
#919
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Stocks by attributes

Natty wrote:

...includes/functions/functions_lookups.php

If I merge the mod code which is different into the core file, it causes the store to white screen (backend it OK still)
The core 139c file seems to work OK.

What have other people done for this file?

I first compared the Stock by Attributes file to the core file of 1.3.8a and made note of what would have needed merging in that circumstance.

Then I merged only those bits of code that 'would have been merged' in 1.3.8a, in 1.3.9c, ignoring any other differences in the latter - those differences being the update in zc code.

(The merge consisted of two lines of code being commented out in 1.3.9c, and two large-ish blocks of code added from S by A.)

No blank page. No problems.

3 Jun 2010, 10:32 AM
#920
natty avatar

natty

New Zenner

Join Date:
Dec 2008
Posts:
65
Plugin Contributions:
0

Re: Stocks by attributes

Thanks for the tip, we will try this today and update the forum. :smile:

Natty