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: 660,384

Results 101 to 120 of 3,609
12 Dec 2006, 7:56 PM
#101
kuroi avatar

kuroi

Totally Zenned

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

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

Just ignore it. To upgrade you only need to overwrite the files. Your database is already patched from your earlier installation and so is rejecting the attempt to implement the patch a second time. Although the readme does say that you only need to replace the files, it doesn't say it in the installation section, so if there's another release I'll make this more clear, with apologies for not having done so to date.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

12 Dec 2006, 8:54 PM
#102
cmglade avatar

cmglade

New Zenner

Join Date:
Mar 2006
Posts:
11
Plugin Contributions:
0

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

whooohooo! THANK YOU! That seemed to do the trick!

12 Dec 2006, 11:54 PM
#103
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

cmglade:

whooohooo! THANK YOU! That seemed to do the trick!Pleased to be of help. Glad you stuck with it!

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

16 Dec 2006, 9:21 PM
#104
hexdust avatar

hexdust

New Zenner

Join Date:
Dec 2006
Posts:
3
Plugin Contributions:
0

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

Sorry to add another reply to what appears to be an already bursting thread but:

I have:
Zen Cart 1.3.6
Big Royal Mail Mod2.11 (or whatever the current value is)
Stock by Attribute 4.3.1

And yet again, I am one of those peoples who are trying to add a list of the available quantities to the attributes list, via radio/dropdown..

I have tried several methods to introduce this to my site, including the Grayson posts, but my knowledge of php and Sql is embarrasingly limited. It still does not work, in whatever method of attribute selection I try.

Here is a sample item listed for your perusal:

http://stock-wood.net/index.php?main_page=product_info&cPath=1&products_id=5

If there is a fix I have missed, I would prefer that. If not, is this feature going into the next release and if so, is there a release date scheduled?

16 Dec 2006, 10:05 PM
#105
svanis avatar

svanis

Zen Follower

Join Date:
May 2005
Location:
Sweden
Posts:
145
Plugin Contributions:
0

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

Implementing the following code into my /modules/custom_template/attributes.php

if  ($products_options->fields['quantity'] > 0) {
          $products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
                                           'text' => $products_options->fields['products_options_values_name'] .' [ '. TEXT_ATTRIBUTES_IN_STOCK . ' ]');
		} else {
		  $products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
											'text' => $products_options->fields['products_options_values_name'] .' [ '. TEXT_ATTRIBUTES_NOT_IN_STOCK . ' ]');
			}

Will generate my custom TEXT_ATTRIBUTES_NOT_IN_STOCK message on ALL attributes so I guess I'm halfway there but since it's ignoring the if telling it to use the TEXT_ATTRIBUTES_IN_STOCK message I'm totally lost.

The in/out of stock messages of course changes if editing the "['quantity'] > 0)" part.

Anyone who understands why this happens?

18 Dec 2006, 1:49 AM
#106
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

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

Svanis:

Implementing the following code into my /modules/custom_template/attributes.php

if ($products_options->fields['quantity'] > 0) {
$products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
'text' => $products_options->fields['products_options_values_name'] .' [ '. TEXT_ATTRIBUTES_IN_STOCK . ' ]');
} else {
$products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
'text' => $products_options->fields['products_options_values_name'] .' [ '. TEXT_ATTRIBUTES_NOT_IN_STOCK . ' ]');
}

>  
> Will generate my custom TEXT_ATTRIBUTES_NOT_IN_STOCK message on ALL attributes so I guess I'm halfway there but since it's ignoring the if telling it to use the TEXT_ATTRIBUTES_IN_STOCK message I'm totally lost.
>  
> The in/out of stock messages of course changes if editing the "['quantity'] > 0)" part.
>  
> Anyone who understands why this happens?
 
Hi there,
 
I had implemented the code modification myself and its working... I am not a coder myself (still learning though...:D ) but try to read the following post; <http://www.zen-cart.com/forum/showthread.php?t=47180&page=5> and I mean carefully! maybe you have missed something... :lamo:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

18 Dec 2006, 1:31 PM
#107
svanis avatar

svanis

Zen Follower

Join Date:
May 2005
Location:
Sweden
Posts:
145
Plugin Contributions:
0

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

tajul_ashyqin:

Hi there,

I had implemented the code modification myself and its working... I am not a coder myself (still learning though...:D ) but try to read the following post; http://www.zen-cart.com/forum/showthread.php?t=47180&page=5 and I mean carefully! maybe you have missed something... :lamo:

Well.. Thank you for your input, it is working but not as I wan't it.
I would prefer not to show the actual quantity in stock, only wether it is available in stock or at distributor.

20 Dec 2006, 2:46 PM
#108
hexdust avatar

hexdust

New Zenner

Join Date:
Dec 2006
Posts:
3
Plugin Contributions:
0

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

hexdust:

Sorry to add another reply to what appears to be an already bursting thread but:

I have:
Zen Cart 1.3.6
Big Royal Mail Mod2.11 (or whatever the current value is)
Stock by Attribute 4.3.1

And yet again, I am one of those peoples who are trying to add a list of the available quantities to the attributes list, via radio/dropdown..

I have tried several methods to introduce this to my site, including the Grayson posts, but my knowledge of php and Sql is embarrasingly limited. It still does not work, in whatever method of attribute selection I try.

Here is a sample item listed for your perusal:

http://stock-wood.net/index.php?main_page=product_info&cPath=1&products_id=5

If there is a fix I have missed, I would prefer that. If not, is this feature going into the next release and if so, is there a release date scheduled?

Ok, my bad. :blush:Found out the web based ftp on my server was what I had the problem with. Um, thanks to Grayson et al. for the fixes I've been trying...

28 Dec 2006, 9:18 AM
#109
glowstar avatar

glowstar

New Zenner

Join Date:
Dec 2006
Posts:
2
Plugin Contributions:
0

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

Ok I am new to zen cart, and would really like to install this add-on
But I need baby steps on how to install this feature.....because I am totally clueless on how to do this....

any help would be appreciated :)

thanks!!!

28 Dec 2006, 11:24 AM
#110
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

glowstar:

would really like to install this add-on But I need baby steps on how to install this feature.....Have you read the installation section of the readme file that comes with the add-on? If so, could you be more specific about which bit you need help with.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

28 Dec 2006, 11:37 AM
#111
glowstar avatar

glowstar

New Zenner

Join Date:
Dec 2006
Posts:
2
Plugin Contributions:
0

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

yup read the readme file
made no sense at all lol

i just have no idea how to add stuff on to the zen cart

what should I be uploading?? where should i upload them to??

how am i meant to create a table???

i'm looking for step by step instructions on how to install this add-on

29 Dec 2006, 11:18 PM
#112
distancedemon avatar

distancedemon

New Zenner

Join Date:
Aug 2006
Posts:
65
Plugin Contributions:
0

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

Is there a quick way to remove this module? It probably will do what I want with a considerable amount of persuasion but I've decided that I have other priorities just now - removing it would save me having to re-build the test site ... again.

thanks

4 Jan 2007, 12:39 PM
#113
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

glowstar:

yup read the readme file
made no sense at all lol

i just have no idea how to add stuff on to the zen cart

what should I be uploading?? where should i upload them to??

how am i meant to create a table???

i'm looking for step by step instructions on how to install this add-on1. unzip the release package

  1. go to your site's Admin area, login and then select Tools > Install SQL Patches
  2. Click in the upload file box and browse to stock_attribute.sql file in the package you unzipped, then press the upload button
  3. edit the names of the two directories listed in the installation directions to have the name of the template that you are using instead
  4. copy the admin and includes directory to your site, placing them in the directory where the existing admin and includes are already located

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

4 Jan 2007, 12:43 PM
#114
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

distanceDemon:

Is there a quick way to remove this module? It probably will do what I want with a considerable amount of persuasion but I've decided that I have other priorities just now - removing it would save me having to re-build the test site ... again.

thanksThere are six files in the package that amend core Zen Cart files. They are listed in the installation section of the readme file in the release package. If you replace these six files with the ones in the Zen Cart release package for the version you are using, Stock by Attributes will cease to have any effect.

You will still have a few orphaned files floating around, and some extra database configuration entries, but they will have no effect on your store.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Jan 2007, 7:46 AM
#115
distancedemon avatar

distancedemon

New Zenner

Join Date:
Aug 2006
Posts:
65
Plugin Contributions:
0

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

kuroi:

There are six files in the package that amend core Zen Cart files. They are listed in the installation section of the readme file in the release package. If you replace these six files with the ones in the Zen Cart release package for the version you are using, Stock by Attributes will cease to have any effect.

You will still have a few orphaned files floating around, and some extra database configuration entries, but they will have no effect on your store.

Thanks for that - and just for the record I was looking for dropdowns with multiple attributes and individual stock totals eg. colour/size.

W

6 Jan 2007, 8:34 AM
#116
kiltsrock_com avatar

kiltsrock_com

New Zenner

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

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

I've got a little problem. I've upgraded to the latest version of zencart, and everything worked great. I added this mod, and now I get a "

Fatal error: Cannot redeclare class httpclient in kiltsrock.com/shop/includes/classes/http_client.php on line 431"

error when trying to checkout.

Has anyone else run into this same problem, and have a fix for it?

the shop is at www.kiltsrock.com/shop/

thanks!
KT

6 Jan 2007, 11:51 AM
#117
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

KiltsRock.com:

I've got a little problem. I've upgraded to the latest version of zencart, and everything worked great. I added this mod, and now I get a "

Fatal error: Cannot redeclare class httpclient in kiltsrock.com/shop/includes/classes/http_client.php on line 431"

error when trying to checkout.This mod snuggles up real close to some of the code that is fundamental to the operation of a shopping cart. That makes it rather sensitive to changes in the underlying Zen Cart and very important to match Zen Cart and Stock by Attribute versions.

For Zen Cart 1.3.7 you need Stock by Attributes 4.4, which I have just uploaded to the downloads section where it is awaiting approval. If you want an immediate fix for your problem, go to includes/modules/pages/checkout_shipping/header.php and change line 14 to read ```php
require_once(DIR_WS_CLASSES . 'http_client.php');


When the new mod is approved and available you will need only to replace the whole of that file plus admin/orders.php and includes/classes/order.php from the relase package for your system to be in the same state as if you had installed 4.4 initially.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

7 Jan 2007, 4:45 PM
#118
sunabac avatar

sunabac

Zen Follower

Join Date:
Dec 2006
Location:
Summer:Ontaio, Winter:Texas
Posts:
211
Plugin Contributions:
0

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

silly question, where do I find the download section with all the possible add-on??

7 Jan 2007, 5:46 PM
#119
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

Sunabac:

silly question, where do I find the download section with all the possible add-on??At the very top of this page, third link from the left.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

14 Jan 2007, 2:49 AM
#120
hexdust avatar

hexdust

New Zenner

Join Date:
Dec 2006
Posts:
3
Plugin Contributions:
0

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

Greetings one and all:

Just a quick update to anyone using the new and improved Stock By Attribute 4.4 with ZC 1.3.7..

The original hack for this mod by Grayson has a few required differences to make it work with the new versions.

Firstly, the file named:
includes/modules/pages/product_info/main_template_vars_attributes.php

is now changed to:

includes/modules/CLASSIC/attributes.php

(where CLASSIC is the name of your template) and the second file to modify is now called:

includes/languages/ENGLISH/product_info.php

with the obvious language choices involved.

Or at least, thats how it was for me. Maybe its the same for you. Maybe not. I just hope this update can help someone besides me.

Much thanks to the ZenCart dev team, keep up the good work! :P