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

Stocks by attributes

Locked

Views: 251,296

Results 881 to 900 of 1,126
This thread is locked. New replies are disabled.
26 Feb 2010, 12:17 AM
#881
newagekat avatar

newagekat

Zen Follower

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

Stocks by attributes

No, you misunderstand.

Say I have 500 small blue Item A and place 3 to my cart, I still get the out of stock error message. that's what weird. I may need to add that I am using the Cherry Template with some really modest modification for info appearance. I have not touched the code.

Kuroi, since you created this mod, can you please have a look? Sorry to sound so desperate, but I'm going in for surgery and I need this done today. If I have to pay someone then so be it.

I have turned off the maintenance so you can assist.

26 Feb 2010, 12:57 AM
#882
newagekat avatar

newagekat

Zen Follower

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

Re: Stocks by attributes

Kuroi:

Sorry to be a pest and so persistent. this is not an isntall issue. This is a code issue. I checked one of the other sites where I installed this mod, I get the very same thing. or maybe i missed something. please check http://commonwealthyarns.com/ for similar issue.

in includes/template/custom/template/tpl_shopping_cart_defult.php you have this code

<?php if ((STOCK_SHOW_LOW_IN_CART == 'true') && $product['flagStockCheck']) {
         echo '<span class="alert bold">';
         echo PWA_STOCK_AVAILABLE;
                 echo ((isset($product['stockAvailable'])) ? $product['stockAvailable']: 0);
         echo '</span>';
            }
?>
<br class="clearBoth" />

Could this be the cause of it? in Admin > Configuration > Stock, I have Show available stock level in cart when less than order = false

I would be forever grateful.

26 Feb 2010, 1:34 AM
#883
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

newagekat:

Kuroi, since you created this mod, can you please have a look? Sorry to sound so desperate, but I'm going in for surgery and I need this done today. If I have to pay someone then so be it.Let's be clear.. Kuroi didn't create the SBA version you are using.. The version you are using is based on his original SBA mod.. Since Kurois v1.47 release others have come along to "improve upon" Kurois mod, and IMO all of these "other" versions have been problematic. (a lott through this thread and the other SBA thread will confirm this)

To his credit Kuroi has been very generous by continuing to participate in a support thread which by and large discusses versions of this mod he had NOTHING to do with other than writing the underlying code upon which subsequent versions were based on..

My opinion has been consistent. NONE of these other versions works well enough in my book to be bothered with. I stick to the original 1.47 version written by Kuroi.

26 Feb 2010, 1:45 AM
#884
newagekat avatar

newagekat

Zen Follower

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

Re: Stocks by attributes

Thank you so much for your response. I did not intend any insult and I do appreciate the work that goes into the mod and more specifically, answering all these questions.

That said, on this add on download page, http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=310, are you refering to this version:
This is a maintenance release that incorporating changes made for Zen Cart 1.3.8. There are no functional enhancements.
Author: Kuroi
Version: 4.7
Zen Cart™ Version: v1.3.8
Update added on Dec 02 2007

Can you tell me if it works with 1.3.8a with security patches? If so, would you be able to tell me what would be involved in reverting back to this version? would I need to make changes to the db or just over right files?

Thank for your time.

26 Feb 2010, 4:23 AM
#885
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

newagekat:

Thank you so much for your response. I did not intend any insult and I do appreciate the work that goes into the mod and more specifically, answering all these questions.

That said, on this add on download page, http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=310, are you refering to this version:
This is a maintenance release that incorporating changes made for Zen Cart 1.3.8. There are no functional enhancements.
Author: Kuroi
Version: 4.7
Zen Cart™ Version: v1.3.8
Update added on Dec 02 2007

Can you tell me if it works with 1.3.8a with security patches? If so, would you be able to tell me what would be involved in reverting back to this version? would I need to make changes to the db or just over right files?

Thank for your time.I don't run Zen Cart without the latest security patches.. So the answer to your first question is yes.. I don't have an answer for your second question.. I've tested one of the "other" SBA versions on a test store and did not rollback when I was done testing (I simply reset my test store) So I have no real insight on what it would take to rollback.. If I had to guess it would be to compare the files between the two versions and delete any files which do not appear in the Kuroi version and replace any files from other versions with the one's from the Kuroi version..

26 Feb 2010, 3:30 PM
#886
newagekat avatar

newagekat

Zen Follower

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

Re: Stocks by attributes

Just wanted to give you an update. I reverted back to Kuroi's 1.4.7 version on both these sites. One of them now works like a charm. the other still has the same issue.

Here's a list of the mods also incorporated into the problem site. If you are aware of any conflict, I would really appreciate a head's up.

ZEN CART
Added XSS protection patch dated Nov 30/09
{ http://www.zen-cart.com/forum/showthread.php?t=142927}
Removed unused folders per security patch dated Nov 28/09
( http://www.zen-cart.com/forum/showthread.php?t=142784)
security_patch_v138_20090619
( http://www.zen-cart.com/forum/showthread.php?t=130161)
pci_patch_v13x_search.php Oct 13/09
( http://www.zen-cart.com/forum/showthread.php?t=130701)

Zen cart modules added to cherry template
Stock by Attributes v1.4.7
Contact us subject mod v2
Fedex module
Improved attributes controllers
Image handler 2 for 1.3.x
Ordered Step
Moneirs payment modules
Ultimate SEO v2.0.6
FCKeditor
Newsletter subscribe
Split tax lines
Admin Profiles v1.0.7.1

I rechecked each file against my install, merged them where necessary, and re-uploaded. I even checked the sql file for differences just in case. :no: Someone, please, HELP!

kp

3 Mar 2010, 9:07 PM
#887
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Stocks by attributes

Firstly can I say I have read as much as I can from both of these threads - **Stock For Product With Different Attributes (OLD)** and **Stock by Attribute v4.0 for Zen Cart 1.3.5+** but neither thread seems to have the answer to my problem (though the question has been asked many times I have yet to see a definitive answer)

Sorry to start a new thread about this, but when there are 4 or more threads about the mod and each with hundreds and hundreds of pages not even relevant to my question its not easy :frusty:

What I want to do is illustrated here - if you change the colour and/or sizes, the number of products in stock also changes

I understand after much reading of many threads (all which have 40 plus pages :huh: ) that this isn't possible when using mutiple attributes, when clearly it is somehow...

So... to cut to the chase... I have the STOCK BY ATTRIBUTES already working on this site and it's fine aside from the fact I would like for it to display the number of Blue Size SML T-shirts that are in stock without having to add it to the shopping cart and then only to find it is out of stock

9 Mar 2010, 7:56 PM
#888
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

Re: Stocks by attributes

This is exactly what iam after, i sell body jewellery and if i have say

5 x 1mm bars
10 x 2mm bars

It states i have 15 in stock but doesn't say how many of each, you can then add 6 of the 1mm bars to cart but then the cart says its out of stock, which in theory isn't very good for your customer, i think people would get confused.

Would be great if it said how much was in stock for anyone item, then also counts down say if someone brought 2 x 1mm bars it would show stock of 3 left, if then later someone brought the remaining 3 it would then go to out of stock just for that size.

Hope that makes sense :unsure:

9 Mar 2010, 8:08 PM
#889
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Stocks by attributes

I'm not sure I follow you here, or at least I don't understand the description of your stock, are you sure you have multiple attributes? Because if not then what you are after is possible to do.

It's only when you have multiple attributes that Zen-Cart has problems (ie, a choice of colours and sizes together, it can distinguish between one or the other, just not both).

9 Mar 2010, 8:22 PM
#890
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

Re: Stocks by attributes

I understand what your on about i do only have single attributes i only deal with different colours.

E.g

If i have a belly bar in 3 colours i.e

6 x red
4 x blue
2 x white

The stock showed up as me having 12 in stock, it allowed me to add 3 white to the cart then when viewing the cart i got an out of stock message.
It doesn't tell the customer i only have 2 white in stock and 6 red etc
Perhaps id done something wrong...:blush:

9 Mar 2010, 8:34 PM
#891
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Stocks by attributes

Okay, that IS possible then.

Check out the FAQ here - http://www.zen-cart.com/wiki/index.php/Contribution:Stock_by_Attributes#Frequently_Asked_Questions

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

9 Mar 2010, 9:47 PM
#892
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

Re: Stocks by attributes

Thanks for your help with this well iam totally lost know i followed the first part of the instruction -

check includes/classes/order.php
make sure line 8 has this

@version $Id: order.php 0000 2007-09-19 00:00:00Z kuroi $

which mine does so far so good, The as instructed i went to forum page

http://www.zen-cart.com/forum/showthread.php?t=25987&page=14

said i needed to edit -

includes/modules/pages/product_info/main_template_vars_attributes.php

but i don't have this file !! thought perhaps i didn't upload it so i re-uploaded all files again, but still the php file isn't there, so iam totally lost know.

Can you advise please :blink:

9 Mar 2010, 9:56 PM
#893
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Stocks by attributes

Sorry, the FAQ does read a bit vague when I look at i again, it took me an age and a day to figure all this out as to what is and what's not possible so apologies that I can't remember fully what I did get to work and what I didn't as it was never what I (or a million others actually wanted)

The mod you need I think is this one - stock by attributes - http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=310 - I managed to get it to work in one language, but most of my sites are multi lingual and never got that far as it wasn't what I was looking for. Pretty sure though it's the one you need.

9 Mar 2010, 10:03 PM
#894
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

Re: Stocks by attributes

thats the one i installed so very weird all this specialy to a newbie with limit experience, many thanks for trying to help me though, appricate your time :bigups: i might un-install it and see if i can get another version to work....

9 Mar 2010, 10:25 PM
#895
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Stocks by attributes

I wish I could remember what I did to get it to work. Unfortunately (for you) I tried so many things, in the end once I realised it wouldn't work for multiple attibutes I deleted all my test files and put back the original single attribute file

I also wish somebody could write a definitive guide/FAQ to this, it seems to be one of the biggest failings of Zen-Cart (there aren't many I admit and the support on here from members is excellent) - Zen-Cart v1.4 I have read time and time again is supposedly going to incorporate this feature, but I read this in posts from 3 years ago... and sadly still nothing on it.

Just as a side comment, it does seem to be a blatantly obvious feature that has been missing from ZC given the number of online stores that this feature is surely a must, clothing for a start with colours and sizes is just the first I can think of. Hopefully soon it will be addressed fully and released either as a mod or in an update.

10 Mar 2010, 2:53 PM
#896
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

Re: Stocks by attributes

I totally agree perhaps this mod could be included in the next u[pdated version of zancart, quite hard to follow when there is so many pages about this, does get confusing for a newbie.

Many thanks again thou for your efforts :bigups:

15 Mar 2010, 5:07 PM
#897
georgiebrown avatar

georgiebrown

New Zenner

Join Date:
Jan 2010
Posts:
8
Plugin Contributions:
0

Re: Stocks by attributes

Hi

Sorry if this is already answered in this thread - but I couldnt find it with the search.

The problem that I am having is that it is still possible for someone to add an item to basket without actually selecting an attribute/size.

Does anyone know how I can make sure this isnt possible.

Many thanks

15 Mar 2010, 5:57 PM
#898
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

GeorgieBrown:

Hi

Sorry if this is already answered in this thread - but I couldnt find it with the search.

The problem that I am having is that it is still possible for someone to add an item to basket without actually selecting an attribute/size.

Does anyone know how I can make sure this isnt possible.

Many thanksThis isn't an issue caused by this mod.. This is a basic attribute setup issue.. If you look under the "Setting Up Products and Attributes" category in the FAQs you will find your answer there..

16 Mar 2010, 11:54 AM
#899
georgiebrown avatar

georgiebrown

New Zenner

Join Date:
Jan 2010
Posts:
8
Plugin Contributions:
0

Re: Stocks by attributes

Thanks DivaVocals.

Adding a 'please select size' to the list and making it 'display only' and 'default value' worked perfectly.

Many thanks.

23 Mar 2010, 12:50 PM
#900
linnx avatar

linnx

Zen Follower

Join Date:
Jun 2009
Posts:
187
Plugin Contributions:
0

Re: Stocks by attributes

Sorry if this has been asked, but I notice you can click on the QTY and it reveals a box, which you can then change the number.. and do that for all your products... but how to make it save it in the database from there - Clicking edit quantity for each stock item would be tedious if we have thousand products.

I tried changing the numbers then clicking sync quantities but it had no effect.

Anyone know?

Thanks