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

Stocks by attributes

Locked

Views: 251,249

Results 1,001 to 1,020 of 1,126
This thread is locked. New replies are disabled.
03 Sep 2010, 21:54
#1001
divavocals avatar

divavocals

Totally Zenned

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

Stocks by attributes

MikeyG:

I think I need the dynamic drop downs working here and Divavocals may have hit on a point. Is it possible to show all drop downs in the first option and then when one is selected to show all the drop downs possible for that option but to have the in stock / out of stock showing as appropriate. At the moment it hides out of stock stuff, but I want to allow back orders , but at least tell the customer there may be a short wait as it is out of stock.

Can this be tweaked to work in this way?Is it possible?? Sure.. Is it available yet?? Not currently.. Ultimately all modules are volunteer powered..:smile: So while I appreciate creinold's work, if his final version of SBA does not include dynamic attributes, the work he's done on this module is still awesome. For that matter so is all --well most:laugh:-- of the work all the contributors have provided to this mod..

Fortunately for the majority of my clients, this (dynamic attributes) has been more of a "nice to have" than MUST have feature.. If SBA continues to not include dynamic attributes, and a client NEEDS it, I will simply hire a developer to create it for me (as I have done in the past for other client based "must haves")

03 Sep 2010, 22:28
#1002
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Stocks by attributes

Dynamic drop downs seems to be working and I am sure it must only be a small tweak to show the out of stock message rather than hide the option. Infact on the single drop downs it is showing all options with any out of stock options having the words out of stock after them. I am just getting a bit lost due to very limited php knowledge when I try to follow what is going on in the pad_sequence_dropdown.php file.

Am I right in thinking the answer is in their somewhere or have I been looking in the wrong place?

23 Sep 2010, 20:35
#1004
bear1728 avatar

bear1728

New Zenner

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

Re: Stocks by attributes

hello,
in admin, now the SBA page is ordered by product name, i want it by product model, what do i modify the codes ?

26 Sep 2010, 23:21
#1005
rodfarrell avatar

rodfarrell

New Zenner

Join Date:
Sep 2010
Posts:
3
Plugin Contributions:
0

Re: Stocks by attributes

OK, so I am a totally frustrated new user of zen cart so I am probably doing something stupid.

  1. I have installed zen cart 1.3.9d
  2. I have installed Stock by Attributes 1-4-10 (1-4-11 internally) which I downloaded from http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=310 and following the instructions in the download as far as possible.

I say as far as possible because the instructions refer to some files that don't exist in the download. eg. rename includes/modules/YOUR_TEMPLATE but this file doesn't exist.

I see no change in admin where I can add stock to products with attributes. Should there be a new menu item or should a form have changed?

29 Sep 2010, 23:41
#1006
p1lot avatar

p1lot

New Zenner

Join Date:
May 2009
Posts:
69
Plugin Contributions:
0

Re: Stocks by attributes

when upgrading from 139f to 139g, can i just keep the modded admin/inc/func/general.php? everything seems to work.

29 Sep 2010, 23:55
#1007
kuroi avatar

kuroi

Totally Zenned

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

Re: Stocks by attributes

p1lot:

when upgrading from 139f to 139g, can i just keep the modded admin/inc/func/general.php? everything seems to work.
That file has been changed in the 1.3.9g release. So you would be taking a risk.

30 Sep 2010, 00:06
#1008
p1lot avatar

p1lot

New Zenner

Join Date:
May 2009
Posts:
69
Plugin Contributions:
0

Re: Stocks by attributes

Thanks for the fast reply,

I just modded the original general.php, could you take a look if that's fine?

Basically only the function zen_remove_order gets modified in the general.php, right?

I just added this db query:
$db->Execute("delete from " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . "
where orders_id = '" . (int)$order_id . "'");

Here is the final version: http://pastie.org/1190205

I just found out that I used the stock general.php from 139f with the unmodded function, what exactly could have happened or did happen if I use the original zen_remove_order when using stocks by attributes?

19 Oct 2010, 18:33
#1009
rayring avatar

rayring

New Zenner

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

Re: Stocks by attributes

Just browsed from page 1 true a 100 on this topic. Installed all the versions of Stocks by attributes. None of them made it possible to put the quantity of stoch next to the attribute.
Search hours on the forum but can not seem to get it to work!
Backend works fine on all versions of Stocks by attributes but not het quantity! Also edited the attribute.php with suggested codes but no luck.

Can anyone help me with this? :lookaroun

20 Oct 2010, 00:26
#1010
simplelittlebaby avatar

simplelittlebaby

New Zenner

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

Re: Stocks by attributes

I tried to search for this but couldn't find anything. I'm sure it is somewhere. When a customer using Internet Explorer uses our site, the site does not use the attributes we have listed. i.e. someone buys a green diaper but when it gets added to the cart just a diaper shows up (sorry baby business).

This error does not occur in Chrome or Firefox. Which is why it has taken me 2 weeks to figure out.

Please point me in the right direction.

Thanks
Melanie

website - https://www.simplelittlebaby.com
version v1.3.9d

20 Oct 2010, 09:01
#1011
kuroi avatar

kuroi

Totally Zenned

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

Re: Stocks by attributes

rayring:

Just browsed from page 1 true a 100 on this topic. Installed all the versions of Stocks by attributes. None of them made it possible to put the quantity of stoch next to the attribute.
Search hours on the forum but can not seem to get it to work!
Backend works fine on all versions of Stocks by attributes but not het quantity! Also edited the attribute.php with suggested codes but no luck.

Can anyone help me with this? :lookarounSounds like you missed post 160 which refers you back to a limited solution from an older thread.

It's a limited solution because to show stock by attributes in the cart you would need to be able to display a table in as many dimensions as you have relevant attributes. So a product with size, colour and style would need a table in 3D. Tricky on a screen. This is why it was never added to the original mod.

However the "Grayson" solution referred to in post 160 gives code to add this functionality for cases where there is a single attribute.

More recently, AJAX offers the chance to filter the data needed according to the choices that a customer has already made, making it more comprehensible on screen, but we haven't used that version at Kuroi, so I can't advise as to how you might take advantage of that.

Stepping back though, most likely you can't find this functionality in the mod because it's just not there.

20 Oct 2010, 09:08
#1012
kuroi avatar

kuroi

Totally Zenned

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

Re: Stocks by attributes

simplelittlebaby:

I tried to search for this but couldn't find anything. I'm sure it is somewhere. When a customer using Internet Explorer uses our site, the site does not use the attributes we have listed. i.e. someone buys a green diaper but when it gets added to the cart just a diaper shows up (sorry baby business).

This error does not occur in Chrome or Firefox. Which is why it has taken me 2 weeks to figure out.

Please point me in the right direction.

Thanks
Melanie

website - https://www.simplelittlebaby.com
version v1.3.9dFor any cross browser problem, the first thing to check is whether you have validation errors in the core being output.

Nowadays browsers do a fairly good job of rendering correctly structured code consistently. So differences are almost always because of coding errors.

Applying this approach to your product page shows that you have nested a second form (wishpot) inside the main form and worse, the code isn't xhtml compatible so the browsers are seeing incomplete input fields. Some browsers are managing to make sense of this (probably by ignoring it completely, others not - hence the inconsistency that you're seeing).

So this is nothing to do with stock by attributes and instead is related to other changes that you have made to your product page.

20 Oct 2010, 18:43
#1013
simplelittlebaby avatar

simplelittlebaby

New Zenner

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

Re: Stocks by attributes

simplelittlebaby:

I tried to search for this but couldn't find anything. I'm sure it is somewhere. When a customer using Internet Explorer uses our site, the site does not use the attributes we have listed. i.e. someone buys a green diaper but when it gets added to the cart just a diaper shows up (sorry baby business).

This error does not occur in Chrome or Firefox. Which is why it has taken me 2 weeks to figure out.

Please point me in the right direction.

Thanks
Melanie

website - https://www.simplelittlebaby.com
version v1.3.9d

Found my answer accidentally in this post
http://www.zen-cart.com/forum/showthread.php?t=72719 - it was actually the wishpot addin on this one.

28 Oct 2010, 09:39
#1014
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: Stocks by attributes

I have two sites one using this SBA ajax mod and the other using the other SBA mod.

After upgrading to 1.39h yesterday i alerted the other mod creator that there are issues with the modules/pages/shopping_cart/header_php.php file which are replaced by new files in 1.39h.

Having changed my other site this morning over to 1.39h which runs on this ajax version of SBA the same issue remains on this ajax version of SBA.

I have tried merging the SBA Alax mod header_php.php with the 1.39h version without sucess.

At checkout now there is no ability to prevent customers from purchasing out of stock items.

28 Oct 2010, 13:41
#1015
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: Stocks by attributes

Did you try the code I posted in the other post you have made? I also updated the mod yesterday. My version is the only really updated version the other one have nit been supported in like forever. It's user supported only. Try the codes I posted.

28 Oct 2010, 13:52
#1016
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: Stocks by attributes

creinold:

Did you try the code I posted in the other post you have made? I also updated the mod yesterday. My version is the only really updated version the other one have nit been supported in like forever. It's user supported only. Try the codes I posted.

Hi

Thanks for the reply. Yes your file working on your SBA mod but not on this Ajax one which i have on another site which was updated last by Numinix.

Same problem, at checkout out of stock items are being displayed with no warning advising customers the items selected are not available.

28 Oct 2010, 17:24
#1017
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: Stocks by attributes

Its probably missing an attribute query in the header.php file.

Look for in the header.php files

$flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);

and change to:

$flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity'],$attributes);
29 Oct 2010, 10:37
#1018
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: Stocks by attributes

creinold:

Its probably missing an attribute query in the header.php file.

Look for in the header.php files

$flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);

> ```
$flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity'],$attributes);

Many thanks, that did it! By merging the SBA header and the new 1.39h header_php file and making that one line change it appears to have fixed the issue.

29 Oct 2010, 15:58
#1019
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: Stocks by attributes

Glad to hear it works. =)

31 Oct 2010, 08:39
#1020
weber avatar

weber

Zen Follower

Join Date:
Nov 2005
Posts:
157
Plugin Contributions:
0

Re: Stocks by attributes

after SBA installed, the original zen cart sales report can not show the actual sales...