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,739

Results 181 to 200 of 3,609
1 Mar 2007, 11:17 PM
#181
tbrides avatar

tbrides

Zen Follower

Join Date:
Oct 2006
Posts:
198
Plugin Contributions:
0

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

we are currently trying to work on a solution that will use DHTML.

We'll keep everybody updated.

4 Mar 2007, 1:51 AM
#182
dumoti avatar

dumoti

New Zenner

Join Date:
Nov 2006
Location:
Columbus, OH
Posts:
16
Plugin Contributions:
0

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

This really isn't a feature request, but more of a "Is this possible?" question.

Say I have an attribute called 6.5 (for size 6.5) and a linked category called 6.5.

Is it possible to modify the product listing SQL such that it will only list products in category 6.5 where the stock by attribute quantity for 6.5 is greater than 0?

It seems simple enough, but i'm not too familiar with the Zen core functionality.

Any help or suggestions would be greatly appreciated. Thanks!

7 Mar 2007, 9:13 PM
#183
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

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

I am so confused by this mod...

I don't have all the stock levels entered yet and on some items if you try to order it, it tells you it's out of stock, on other's it doesn't say anything.

example 1
small= 1
large=2

so someone tries to order a medium (which isn't entered in yet), and sometimes the cart will let them checkout, other times it will say it's out of stock.

Doesn't make sense to me that it isn't doing the same thing everytime for every item.

8 Mar 2007, 1:11 AM
#184
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

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

kuroi:

You say that you are running Zen Cart 1.3.7 but not which version of the addon you are running.

Also do any of that long list of addons that you have also change any of the following files:
* admin/orders.php
* admin/includes/stylesheet.css
* includes/classes/order.php
* includes/functions/functions_lookups.php
* includes/modules/pages/checkout_shipping/header_php.php
* includes/modules/pages/shopping_cart/header_php.php
If so, did you merge both sets of changes into the core Zen Cart, or overwite one set with another?

Thanks for your reply Kuroi.

I have uninstalled the mod for the moment as it was causing me quite a few headaches but do think it is a great mod to have and if I could get it to work properly, would have it back up in flash.

I have double checked all of these file and found that the "includes/classes/order.php" is the only file that has had changes to the original).

I have attached all includes/classes/order.php files from 1. server, 2. original 1.3.7 and 3. SBA 4.4 (I have renamed them in the zip to identify files easily

File refs in zip!

order_on_server.php - file currently on the server, which is not the mod file or orginal file. Must have come from a different mod, not sure which one, but the changes note that you had something to do with it

**order_original137.php **- is obviously the original from the latest version of zen

order_sba.php - is the one from Stock_By_Attribute 4.4 version

I don't know a great deal about code and wouldn't know if any of these changes in the file would make the mod fall over. If you or someone wouldn't mind having a little look and compare, I would much appreciate it.

The code changes are in 2 sections of the file order_sba.php located around lines 694 (section 1) and 747 (section 2)

TIA and much appreciate any help!!

13 Mar 2007, 6:16 PM
#185
troy77 avatar

troy77

New Zenner

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

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

Hi im in need of a little help again :blush:

I want to take the weight off the drop down menu so customers cant see it.
Here is what i mean:
http://www.thefishkrib.com/ima.jpg

Its easier to show you a picture.

Thanks for your help.

:D

20 Mar 2007, 3:11 PM
#186
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

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

So I have following attributes fex. "small white", "medium black" and then we have different attributes for shippings fex. EU, Asia, Usa. We do not want to use shipping modules at all (btw is there a way to remove the whole page from checkout..?) and we want to display full prices including shippings with every product. So is there a way to use this mod with the size attributes only.. since now I need to set up like "small white" + Asia =qty which is totally absurd and doesn't obviously work in the long run.. many thanks

1 Apr 2007, 7:42 PM
#187
dry3210 avatar

dry3210

New Zenner

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

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

I am running 1.3.7 and installed this and ran the query but I get

Fatal error: Call to undefined function zen_get_index_filters_directory() in /store/includes/modules/pages/index/header_php.php on line **49

**How do I fix this?

8 Apr 2007, 2:49 PM
#188
intref avatar

intref

New Zenner

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

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

I just installed this Mod and seeing one issue. I tried searching this forum but can't find an answer.

I have one attribute 'size' for all of my products as radio button. When I add a product to the Cart it does not require the 'size' option to be chosen and thus I'm able to add a product to the Cart without size. How do I make the size attribute as required. I tried the Attribute flag 'required for text' but it did not work.

Any help on this would be great

10 Apr 2007, 3:04 PM
#189
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

intref:

How do I make the size attribute as required.

I don't know if is possible to make the attribute required, but you can force one of them to be "selected" which should cue your customers to select the appropriate value.

You may accomplish this by selecting or flagging one of the sizes (I recommend M) as the "default" value in your attributes controller.

12 Apr 2007, 6:48 AM
#190
vivaraquel avatar

vivaraquel

Zen Follower

Join Date:
Sep 2004
Location:
Australia
Posts:
305
Plugin Contributions:
0

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

I am having trouble with this bit. I found the section of code and simply copied and pasted. But I get an error when I go to my site. I have removed it for the time being. I didn't think to copy the error message but it was something about line 501.

tbrides:

  • I've changed the function "function zen_draw_pull_down_menu" in includes\functions\html_output.php

function zen_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {
$field = '<select name="' . zen_output_string($name) . '"';
$soldout = "";
if (zen_not_null($parameters)) $field .= ' ' . $parameters;

$field .= '>' . "\n";

if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);

for ($i=0, $n=sizeof($values); $i<$n; $i++) {
/* Added by TB on 16/2/2007 */
/*need to check if Sold Out occurs in the option tag for the dropdown*/
if(strpos($values[$i]['text'], "Sold Out")) $soldout = 'class ="red bold"';
else $soldout = "";
  $field .= '  <option '.$soldout.' value="' . zen_output_string($values[$i]['id']) . '"';
  if ($default == $values[$i]['id']) {
    $field .= ' selected="selected"';
  }

  $field .= '>' . zen_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>' . "\n";
}
$field .= '</select>' . "\n";

if ($required == true) $field .= TEXT_FIELD_REQUIRED;

return $field;

}


I've done everything else though. Would there be any problems if I don't undo what I've done without the html_output.php file?

Thank you.
18 Apr 2007, 12:10 AM
#191
bigdaddy13 avatar

bigdaddy13

New Zenner

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

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

I have read many many posts about the stock by attributes
Zen Cart 1.3.7
Database Patch Level: 1.3.7
I have mod v4.4.
I can't seem to get the quantities to display in the drop down box.
I was able to get it to partially work, it would only display items
in stock with a radio button.
Any input? I have followed and tested many ideas, but nothing
worked. Thanks in advance for the help!

BD

19 Apr 2007, 8:11 AM
#192
blushfashions avatar

blushfashions

Zen Follower

Join Date:
Jul 2006
Location:
South Shields - UK
Posts:
118
Plugin Contributions:
0

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

Hi i Have jusy upgraded to the latest version 1.3.7
Prior to this the stock sttributes was working a dream for me.
Afer upgrading it dissapeared form my admin, still showed on live site though??
Contacted the person who did upgrade and they sorted it but.... and this is abig but
it isn't actually doing the stock control.If I have say two t-shirts one in pink and one in white checkout will let me go through, and pay, for 10 t-shirts of each???
Any ideas what has gone wrong, please keep it in simple terms though I ain't technical minded!
I have a feeling I am going to have pay someone to tfix this if it is too complicated though.:(

20 Apr 2007, 12:05 PM
#193
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

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

there was a guide how to display quantity in to dropdown for attributes some posts ago.. it works fine but I'd need the same with radios or checkboxes.. is it possible to make? or just pull up a list in text format what attributes (sizes) are left so people wouldn't need to pull down the list to see if there's their size left...

22 Apr 2007, 9:00 PM
#194
tbrides avatar

tbrides

Zen Follower

Join Date:
Oct 2006
Posts:
198
Plugin Contributions:
0

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

Hi,
What I would love is when I'm in the admin page to add a quantitiy for product variant, I would like to stay on that page to add extra quanities and to know what quantities to each attribute I've already added to the product.

Is there any way of doing this with the current mod?

23 Apr 2007, 3:47 PM
#195
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

poosk:

there was a guide how to display quantity in to dropdown for attributes some posts ago.. it works fine but I'd need the same with radios or checkboxes.. is it possible to make? or just pull up a list in text format what attributes (sizes) are left so people wouldn't need to pull down the list to see if there's their size left...

I'm not sure I've seen the modification posted to this thread, but in the original stock by attribute for zencart 1.2x had a modification by Grayson that worked with radio buttons or checkboxes I believe.

23 Apr 2007, 3:48 PM
#196
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

tbrides:

Hi,
What I would love is when I'm in the admin page to add a quantitiy for product variant, I would like to stay on that page to add extra quanities and to know what quantities to each attribute I've already added to the product.

Is there any way of doing this with the current mod?

I don't believe this is possible, though I admit it would certainly make things easier and more convenient!

24 Apr 2007, 12:45 AM
#197
bradlawson avatar

bradlawson

New Zenner

Join Date:
Oct 2005
Posts:
71
Plugin Contributions:
0

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

Great Mod, only one thing i can't get around. If i have a LRG Green shirt and as a option they can buy a tie with it for 15 bucks. Will with the quanity i have to add 50 for Lrg Green with tie and 50 for Large Green without tie. Is there a way to make a attribute not part of the quanity selection.

Thanks,

Brad

26 Apr 2007, 1:34 AM
#198
bodybangles avatar

bodybangles

New Zenner

Join Date:
Jun 2005
Posts:
35
Plugin Contributions:
0

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

I downloaded and installed Stock By Attribute 4.4 and everything seems to be working. However, we are having issues with it allowing customers to check out with more items than are available without giving our "insufficient stock" message. Customers who try to check out with more than the total quantity of all the attributes get the usual error message. It may be easier to give an example.

I have an item at http://bodybangles.net/index.php?mai...oducts_id=2350

that has 5 colors - I have 4 in stock of each color - for a total quantity of 20. If a customer chooses 5 of any particular color, they do not get an "Insufficient Stock" message as they should, because there are only 4 in stock. It is only after I place 21 in the cart that I get an "insufficient stock" message. It appears that the program is not checking individual stock - only total.

7 May 2007, 10:43 AM
#199
acetate avatar

acetate

New Zenner

Join Date:
Feb 2006
Posts:
31
Plugin Contributions:
0

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

Just out of interest - earlier in this thread there was some discussion about the Grayson posts - does anyone know which archived thread these were posted in?

8 May 2007, 1:07 AM
#200
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

acetate:

Just out of interest - earlier in this thread there was some discussion about the Grayson posts - does anyone know which archived thread these were posted in?

They would be in the old discussion on the very original modification for stocks by attribute on version 1.2.x of Zencart.