-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
whooohooo! THANK YOU! That seemed to do the trick!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
cmglade
whooohooo! THANK YOU! That seemed to do the trick!
Pleased to be of help. Glad you stuck with it!
-
Re: Stock by Attribute v4.3.1 for Zen Cart 1.3.6
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...&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?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Implementing the following code into my /modules/custom_template/attributes.php
Code:
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?
-
Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
Svanis
Implementing the following code into my /modules/custom_template/attributes.php
Code:
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/showth...t=47180&page=5 and I mean carefully! maybe you have missed something... :lamo:
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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/showth...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.
-
Re: Stock by Attribute v4.3.1 for Zen Cart 1.3.6
Quote:
Originally Posted by
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...&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...
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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!!!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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-on
- unzip the release package
- go to your site's Admin area, login and then select Tools > Install SQL Patches
- Click in the upload file box and browse to stock_attribute.sql file in the package you unzipped, then press the upload button
- edit the names of the two directories listed in the installation directions to have the name of the template that you are using instead
- copy the admin and includes directory to your site, placing them in the directory where the existing admin and includes are already located
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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.
thanks
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.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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 Code:
require[COLOR="Red"]_once[/COLOR](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.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
silly question, where do I find the download section with all the possible add-on??
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hello, I have a problem with this addon.
I am using V4.31 of the addon and version 3.16 of Zencart.
I have installed it and then set up stock values for each attribute, however you can still checkout with variations which are out of stock, for example;
Army Camo Jacket
10 Total
5 Medium
5 Large
I can't checkout with more than 10, thats fine.
But I can checkout with 6 Medium.
How can I Fix this?
Stock config:
Check stock level- True
Subtract stock- True
Allow Checkout- False
Show stock when low- True
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hello, problem here.
ZC 1.3.7 fresh (test installation with demo data)
Stock by Attributes 4.4
Admin config:
allow checkout false
show stock when low true
I set up a product with 1 attribute (checkbox) with 3 values, assigned each of them quantity 1, so total quantity is 3.
My product:
Product Qty Minimum: 1
Product Qty Maximum: 0
Product Qty Units: 1
Product Qty Min/Unit Mix: yes
When I buy the product, if I select only 1 attribute, everything is ok. If I select 2 attributes, I obtain the low level alert and quantity available 0.
If I select 1st attribute, then go back to product page, select the second, then go back to product page and select the third, I've three products in my cart, one for each attribute and this would be ok, but selecting all the attributes in one step cause the alert to come out.
What's happening?
Unfortunately no url, just testing at office.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
It seems to me that there's a problem with checkbox attributes.
in functions_lookups.php
function zen_get_products_stock processes the $attributes variable passed as argument in this way:
if(is_array($attributes) and sizeof($attributes) > 0){
....
then
$query = 'select products_attributes_id from '.TABLE_PRODUCTS_ATTRIBUTES.' '.$first_search.' and products_id="'.$products_id.'" order by products_attributes_id';
$attributes_new = $db->Execute($query);
at this point we have an array with products_attributes_id
then
while(!$attributes_new->EOF){
$stock_attributes[] = $attributes_new->fields['products_attributes_id'];
$attributes_new->MoveNext();
}
if(sizeof($stock_attributes) > 1){
$stock_attributes = implode(',',$stock_attributes);
} else {
$stock_attributes = $stock_attributes[0];
}
$stock_query = 'select quantity as products_quantity from '.TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK.' where products_id = "'.(int)$products_id.'" and stock_attributes="'.$stock_attributes.'"';
the problem is $stock_attributes = implode(',',$stock_attributes);
because this code is executed even if I selected only 2 values of the same checkbox attribute and when this occurs, $stock_attributes value is something like '14,15' but of course if they're 2 values of the same checkbox attribute they won't be stored in TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK in this way.
So the result of the last query will be 0, and the quantity will be 0- product_quantity, --> always marked as out of stock.
Ok, discovered the problem, now searching the solution. Any help is appreciated.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I totally changed the approach to what I was trying to achieve: possibility to manage product with sub-products, so customers may buy the whole product or some sub-products (if bought some subproducts, then next customer would have the possibility to buy the 'whole' product but without sub-products already bought).
I achieved this by implementing some mods in categories management in admin (already heavily modified for other functionalities) and just 1 extra function and some mods in tpl_modules_product_listing.php.
Of course sub-products must have no attributes.
The 'whole' product in effect doesn't exist, it's a category containing all sub-products. But if the customer access this kind of category, he will find both products list and a "buy all available products" button which puts all products of that category in the cart (with max quantity available for each product, since this was asked to me).
For these reasons I stop working on checkbox issue.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Has anybody else had any issues with this on v1.3.7. Need to know before I install it!
Thought I read somewhere that it was going to be packaged as part of 1.3.6
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Something like it is scheduled to be part of the v1.4 release. See the Roadmap up in Announcements.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Ok so currently i have the product installed and adding each stock you know green xl I have 1 yada yada yada. If I dont have say White XXL when someone selects the color is there a way to not show XXL in the other drop down?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
[FONT=Century Gothic]Hi guys, [/FONT]
[FONT=Century Gothic]I have a need to control stock by attributes, but my requirement is a little different to most others in that I need to control one ‘pool’ of stock, with various attributes..[/FONT]
[FONT=Century Gothic]I sell grain in my shop which I buy in 25Kg sacks. My attributes are set in a drop-down so that you could by 0.25kg, 1Kg, 0.5Kg etc. [/FONT]
[FONT=Century Gothic]So if someone came and bought that lot, my stock level would need to show 23.75Kg left in stock based on stock from just one sack (i.e. not separate sources for each product in the drop down)[/FONT]
[FONT=Century Gothic]Will this module deal with this?[/FONT]
[FONT=Century Gothic]Cheers[/FONT]
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
DJDex , do u have this installed on v1.3.7, if so is everything working ok for you?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
Beer_man
[FONT=Century Gothic]Hi guys, [/FONT]
[FONT=Century Gothic]I have a need to control stock by attributes, but my requirement is a little different to most others in that I need to control one ‘pool’ of stock, with various attributes..[/FONT]
[FONT=Century Gothic]I sell grain in my shop which I buy in 25Kg sacks. My attributes are set in a drop-down so that you could by 0.25kg, 1Kg, 0.5Kg etc. [/FONT]
[FONT=Century Gothic]So if someone came and bought that lot, my stock level would need to show 23.75Kg left in stock based on stock from just one sack (i.e. not separate sources for each product in the drop down)[/FONT]
[FONT=Century Gothic]Will this module deal with this?[/FONT]
[FONT=Century Gothic]Cheers[/FONT]
BeerMan
Someone else may come and have a better answer, but I would set it up so people can buy by .25 kg quantities, and if you are offering a price break for higher volume, you can set it up for volume pricing.
that way if someone wants 1 kg, they purchase 4 .25kg "units"
For your total stock, you would enter the units available - I suspect that would be 100 x .25kg
Not sure if it is smart enough to do it as cleanly as you would like - I know there was someone on here a while back looking to sell bulk tea, but I don't for the life of me recall if they posted in the stock by attribute family of threads.
Good Luck to you.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
woodlandsprite
BeerMan
Someone else may come and have a better answer, but I would set it up so people can buy by .25 kg quantities, and if you are offering a price break for higher volume, you can set it up for volume pricing.
that way if someone wants 1 kg, they purchase 4 .25kg "units"
For your total stock, you would enter the units available - I suspect that would be 100 x .25kg
Not sure if it is smart enough to do it as cleanly as you would like - I know there was someone on here a while back looking to sell bulk tea, but I don't for the life of me recall if they posted in the stock by attribute family of threads.
Good Luck to you.
Woodlandsprite,
Thanks for taking the time to reply. What you are saying is set up the product so you buy products in decimal places, so a 'add to basket' quantity of 1.25 would get you 1.25Kg of grain.
That is great, and it solves my stock control issue too! Thanks for taking the time to reply.:D
For ref, this thread details how you set up ZC to deal with quantities being sold to a certain number of decimal places...
..http://www.zen-cart.com/forum/showth...t=0.1+quantity
Thanks!!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
DJDex
Ok so currently i have the product installed and adding each stock you know green xl I have 1 yada yada yada. If I dont have say White XXL when someone selects the color is there a way to not show XXL in the other drop down?
no can't do...not for the time being but i think it will be handle upon the release v1.4 soon! :D
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
OK - thanks to all concerned for this mod. However, I must be thick because I cannot get it to work.
I've been a good boy and done a WinMerge with all of the affected files and copied over the changes. Also copied up all new files. Loaded SQL and . . . . . ho hum!
What is happening is the items with attributes are showing out of stock when selecting. Also the Attrributes page for the item (in site admin) has no fields for entering different stock numbers for the items.
I am sure that tis should not be so . . . .
I am also slightly convinced that its something about the template files as well (or not!!)
Can anybody help with this please? - This mod is key to my site!
(PS - rolled all of the changes back to at least have a working site).
Thanks - but PLEASE HELP!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Pardon for jumping in here, but I've got a question about installing Sock by Attribute on ZC 1.3.7.
This mod's Readme says that it was prepared for 1.3.6, and most of the files it replaces have been updated in 1.3.7.
I'd like to have this feature in the store I'm setting up, but should I wait for its author to update the mod before installing it?
Thanks!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Ok, I'm tripping. The mod is version 4.4 for 1.3.7, and the Readme file was the one from 4.3 (ZC 1.3.6), hence it was the Readme that was out of date, not the mod. The author of this mod probably should update that.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Please can someone help me out with this, I'm going crazy reading through all the threads/posts trying to find the answer :cry:
I guess something isn't set up right, it is supposed work right?
If it isn't - can someone put me out of my misery and tell me, please.
Below is my original post.
Quote:
Originally Posted by
hostilerecords
Hello, I have a problem with this addon.
I am using V4.31 of the addon and version 3.16 of Zencart.
I have installed it and then set up stock values for each attribute, however you can still checkout with variations which are out of stock, for example;
Army Camo Jacket
10 Total
5 Medium
5 Large
I can't checkout with more than 10, thats fine.
But I can checkout with 6 Medium.
How can I Fix this?
Stock config:
Check stock level- True
Subtract stock- True
Allow Checkout- False
Show stock when low- True
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Dear all - please see below:
OK - for the terminally stupid (which I must be) - what have I done wrong on the install? - Did anybody find any differences in the instructions and the reality for example? -
Where does the quantity box appear for the stock options? - Is it the normal attributes tab? - perhaps a screen print would be useful?
Thanks
Quote:
Originally Posted by
crabacle
OK - thanks to all concerned for this mod. However, I must be thick because I cannot get it to work.
I've been a good boy and done a WinMerge with all of the affected files and copied over the changes. Also copied up all new files. Loaded SQL and . . . . . ho hum!
What is happening is the items with attributes are showing out of stock when selecting. Also the Attrributes page for the item (in site admin) has no fields for entering different stock numbers for the items.
I am sure that tis should not be so . . . .
I am also slightly convinced that its something about the template files as well (or not!!)
Can anybody help with this please? - This mod is key to my site!
(PS - rolled all of the changes back to at least have a working site).
Thanks - but PLEASE HELP!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
crabacle,
In the admin panel, pull down Catalog. You will find a new option entitled Products With Attributes Stock. This is where you set the quantities.
If I misunderstood your question, I apologize.
HTH,
Audra
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
HI.. I am running version 1.3.7 and have installed the latest of stock by attributes(4.4). When I go through admin->catalog->product with attributes stock
I 've added a product that has attributes both for size and color. When I go to the product with attributes stock manager the only option that shows in the color, I don't get the size option.
for example:
1 Size 5 shirt in red quantity in stock = 3
1 Size 8 shirt in blue quantity in stock =4
and so forth.
Did I perhaps download the wrong mod?
Thanks in advance!
~Renee:lamo:
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I have figured out my problem!!!!!!! NOT ENOUGH COFFEE. I am so sorry and now that I have actually added the sizes to my product in the attribute panel everything works properly. :wink2:
Wonderful add on buy the way!!
As always Thank you!!
~Renee
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I read through the posts and I'm not quite clear on this: If I install the latest version on 1.3.7 must all current products with attributes have stock for each attribute?
Or can I select individually which products with attributes are affected by this mod?
Thanks
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Ok 1 quick question :) When copying one product with attributes by stock added to it to another category and duplicating attributes does everything carry over?
For instance if I order a product from the copied item listing, does it detract the quantity from the original item listing that I added the stock by attributes to ?
Thanks!
~Renee
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
crabacle
Dear all - please see below:
OK - for the terminally stupid (which I must be) - what have I done wrong on the install? - Did anybody find any differences in the instructions and the reality for example? -
Where does the quantity box appear for the stock options? - Is it the normal attributes tab? - perhaps a screen print would be useful?
Thanks
Hello Crabacle.
I have just installed this mod and wanted to let you know that I am having the same problem as you are. Were you able to find resolution to this and if not, can someone please help us with this issue.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
If you go to admin->catalog->then at the very bottom you will see Product with attributes stock. Click that and you will see what you need to get started!
Also be sure you add all of your normal attributes to each product as normal before doing this step :) Hope that helps!!
~Renee
~*See coffee really does help*~
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
Redcinamn
If you go to admin->catalog->then at the very bottom you will see Product with attributes stock. Click that and you will see what you need to get started!
Also be sure you add all of your normal attributes to each product as normal before doing this step :) Hope that helps!!
~Renee
~*See coffee really does help*~
Hi Recinamn
Thank you for your suggestion, but I have to apologize, as I quoted the wrong statement.
The problem that I face is
Quote:
by crabacle in a previous post
What is happening is the items with attributes are showing out of stock when selecting. Also the Attrributes page for the item (in site admin) has no fields for entering different stock numbers for the items.
Whenever I place an item in the cart that has attributes by stock it shows up as being out of stock even though it is stated in both admin>catalogue/product and admin>catalogue>Product with attributes stock as having the correct amount of stock that I have.
I have temporarily fixed this problem by changing the admin>stock>check stock level to false.
I don't in particular like this fix as now when I place more of a particular item in the cart than I actually have in stock it will proceed with the checkout even though there is insufficent stock to cover the order, and what is worse is that there is no indication to the customers, telling them that is only x amount of product in stock.
eg;
I may have 12 of a particular product in stock
3x white - small
3x white - medium
6x white - large
If a person adds 4 x white - small, then I have insuffient stock to cover order, yet the cart will allow the order to go through even I have set admin>stock>allow checkout to false and this is because the backend is not recognising the stock attributes for some reason. It is still treating stock as though this mod isn't installed.
Now because I have the check stock level set to false the other setting below in bold don't even enter into the equation I may as well not have them there.
below are my setting in admin for stock
Check stock level false (this used to set to true before mod install)
Subtract stock true
Allow Checkout false
Mark product out of stock ***
Stock Re-order level 2
Show stock when low false
Products status in Catalog when out of stock should be set to 1
Show Sold Out Image in place of Add to Cart 1
Product Quantity Decimals 0
Show Shopping Cart - Delete Checkboxes or Delete Button 3
Show Shopping Cart - Update Cart Button Location 3
Show New Products on empty Shopping Cart Page 1
Show Featured Products on empty Shopping Cart Page 2
Show Special Products on empty Shopping Cart Page 3
Show Upcoming Products on empty Shopping Cart Page 4
Sorry for the long winded explanation but hopefully someone will be able to understand and suggest a better resolution as this mod is an excellent concept and would be better appreciated if I could get it to work properly.
BTW, I am running Zen 1.3.7
Thanks a bunch for any assistance!!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
:down: Sorry to bump this, but I really could do with some help here. :sadwalk:
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Very strange I don't have that problem at all with the addon for 1.3.7. But I have run into this problem: I have disabled the show product inventory and it is still showing the number that I have added to each size in the stock by attributes add on section. Is there a way to turn this off when using the add on?
Thanks!
~Renee
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Fixed mine by doing this:
This one is in admin > catalog > product types > general > at the right is "edit layout" > select this and then find the weight entry and set to off "0"\
Thanks again. ~Renee
heavenlynights post the url so someone can look a the problem as well :)
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
How do I get the product Quantity in Stock value to show by attribute on the product pages. I have search the for this with no luck.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
frogster,
i dont think this module can do that.
maybe somebody can recommend how to extract these amounts to display for you.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
frogster
How do I get the product Quantity in Stock value to show by attribute on the product pages. I have search the for this with no luck.
it requires additional modifications.
you if you cheeck previous version (stock by attribute for zencart 1.3) there should be some info available in the original stock by attribute thread.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
Redcinamn
heavenlynights post the url so someone can look a the problem as well :)
Thanks for the prompt Red. The url is at the following
my store
The following url is of a product that has the stock by attribute activated on it.
Beautiful Bridal Babydoll
Colour: White
Size: Small
3 Quantity
Colour: White
Size: Medium
6 Quantity
Colour: White
Size: Large
3 Quantity
My settings in admin>stock are still
Quote:
Check stock level false (this used to set to true before mod install)
Subtract stock true
Allow Checkout false
Mark product out of stock ***
I would like to change the "check stock level" back to true, but if I do this then every item that has the stock by attribute activated shows up as "out of stock" and cannot be ordered.
I could leave it as it is, but this won't work for me as there are products in store that I do not intend on restocking which is why I have the "check stock level" active normally
other mods that I am using are:
IH2
Links Manager 1
Aus Direct Deposit
Shipping Insurance
Recover Cart Sales
Cross Sell Products
referrals
News Box Manager
User Tracking
Off Site Payment
Western Union Money (disabled)
DRM Delivery (local delivery)
Paypal Verified
Login Box
Ask A Question
Aus Shipping (disabled)
Better Categories
Returns
Scrolling Specials
Improved Attributes Controller
Ez Pages on Site Map (which i think maybe incorporated into the 1.3.7 edition)
shopping cart with images (sidebox)
testimonials (disabled)
css flyout menu
There may be more, I can't quite remember but as you can see she is pretty much loaded with mods. I am wondering if one of the above mods is conflicking with this mod
Any assistance from anyone would be really appreciated.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I've asked this in another tread. I was referred to the middle of this tread, but the answer is only partially complete and I'm not great with PHP.
What i need to do is add Sold out beside the attribute if its stock level is 0.
So thats for radiobuttons, check boxes or dropdowns.
I know somebody in here has been able to do it :yes:
If so can you please PM me your attributes file, because I cant get my head around it.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
woodlandsprite
Thanks for the info. Found a fix at wiki but the fills they say to modify do not match the new files in zen-cart so could not get it to work at all. Some one must have gotten the stock amount to show in the product pages for this new version. Hope someone can steer me in the righ direction.
-
Re: Stock by Attribute v4.3 for Zen Cart 1.3.6
[QUOTE=frank_lyy;293871]First, a little bug that I found in your new release by using beyond compare with older ones.
In functions_lookups.php on line 163:
should've been:
Next, I applied a fix by Grayson posted in archived threads to show qty of attributes on product info page. For those who still having trouble with this fix, I am including the attributes.php file here. You may drop it in includes/modules/your_template/ folder.
I am also including another alternative version of this fix (I take no credit whatsoever on this), which shows attribute stock after price_fix and weight etc. display, which makes more sense to myself, becasue this way customer won't confuse stock level with quantity discounts/surcharges. This alternative file is called attributes_Alternative.php. You need to rename it to attributes.php to overwrite the existing one when using.
Don't forget to add a define to the product_info.php in includes/languages/english/your_template folder, such as:
Quote:
[define('TEXT_ATTRIBUTES_PIECES','pieces');/QUOTE]. I use 'in stock' instead of 'pieces', for it makes more sense.
Now, I need help for myself!! I tried hard to set a "display only" option value such as " select from below" to NOT show stock level, which is a conditional undone of the above fix in attributes.php. I tried codes as follows, but no luck:
This block of codes were applied after the "// prepare product options details" section and before "//radio buttons" section.
Any help on this would be greatly appreciated!
I found the fix I was looking for post # 46 Thanks Frank for the great post the patch file did just what i wanted it to and that was to add product stock to the product pages.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
This should be in the same spot as well underneth I believe ?:) ~Renee
-
1 Attachment(s)
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hello,
I've a solution for adding Sold Out on the attribute if the stock of it is 0.
It works for dropdown boxes, radio buttons and checkboxes.
I've modified kuroi's attributes.php file, adding the suggestions of other people and figuring it out for dropdowns.
- First you need to add this to:
includes\languages\english\custom\product_info.php
if product_info.php is not there it will be in
includes\languages\english\product_info.php
Once you have added the below move the file to your custom directory
PHP Code:
define('TEXT_ATTRIBUTES_NOT_IN_STOCK',' Sold Out');
- I've changed the function "function zen_draw_pull_down_menu" in includes\functions\html_output.php
PHP Code:
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;
}
- Then I modified kuroi's attributes.php file. Located in
includes\modules\custom\attributes.php.
See attached. Rename your old one to something like attributes.php-old and upload this one.
- Then I added the class .red to my stylesheet, which just sets color:red
If anybody cares to try this in a test environment for me after they have installed the stock by attributes module.
Please let me know how it goes. It should work, works for me, but no guarantees.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Then I added the class .red to my stylesheet, which just sets color:red
Wow, I've been wanting this feature for a long time. I followed all of these steps and the "Sold Out" displays correctly. The only thing is that my text isn't red or bold.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
hi,
have you added the style to your custom stylesheet and for the radio buttons and check boxes i wrapped TEXT_ATTRIBUTES_NOT_IN_STOCK in attributes.php in span tags with the class red and bold
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I actually spoke too soon. I checked some other pages and noticed that adding this mod knocks out my color dropdown choices. It just returns a blank dropdown so I had to revert back.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
So is this mod supposed to show the stock levels on the product listing page?
Otherwise, how is a customer going to know if their size is available?
Will it automatically hide an attribute when stock is at 0?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
hi,
all this mod does is show sold out beside and attribute when its stock level reaches 0.
I'd be interested in finding out what went wrong with in your case digitalrust.
i hope it doenst mess up on my store.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
it's not working properly for me either :(
i'll have to figure out what has gone wrong.
Is anybody interested in helping me?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hi,
Frank_Ivy did say
Quote:
Keep in mind, these fix will only work for products have one attribute, and product attribute display style is radio buttons or check boxes.
so it must have something to do with the SQL.
I've got products with more than one attribute and attribute stock mixes.
best thing to do would not be to show the attributes at all if they are sold out.
There must be a way to fix this!!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
OK so I have a probles...
It DOESN'T show Sold Out on items that i don't have.
I just input the info yesterday, and had an order today for something I do not have in stock. I checked the site and it doesn't say sold out.
I need help fixing this asap!
Thanks guys!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
s_p_ike
It seems to me that there's a problem with checkbox attributes.
...
the problem is $stock_attributes = implode(',',$stock_attributes);
You are absolutely right. This mod has a terrible database structure going way back in time to I suspect (for it is long before my time) the osCommerce mod from which it was originally derived. As a result, for precisely the reason that you give, it doesn't play nicely with multi-value form fields (radio buttons and check boxes to you and me).
I have no doubt that when the Zen Cart team integrate this function into version 1.4 (as per the Zen Cart roadmap) they will do a much better job. Until then sadly, we need to accept this as a limitation of the mod.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
DJDex
Ok so currently i have the product installed and adding each stock you know green xl I have 1 yada yada yada. If I dont have say White XXL when someone selects the color is there a way to not show XXL in the other drop down?
There's quite a bit of discussion about this on one of the archive threads and even some code in an older version of the mod that seemed to be trying to achieve this AJAX-type functionality (which certainly would be very cool).
However, it doesn't seem to have come to anything. I suspect that it floundered on trying to work with the mod's existing database structure and hope that with a better structure, properly integrated in Zen Cart (rather than bolted on the side) this functionality will become easier to develop.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
richcon
Ok, I'm tripping. The mod is version 4.4 for 1.3.7, and the Readme file was the one from 4.3 (ZC 1.3.6), hence it was the Readme that was out of date, not the mod. The author of this mod probably should update that.
The readme was updated for 4.4. You'll find an amendments section for it part way down the document.
Unfortunately, in my haste to make it available, I forgot to amend the header and first paragraph. My apologies for the confusion.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
It's still a great mod - even though it has its foibles. :yes:
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hi Crabacle
Many thanks for the encouraging words. Most mods slowly die when when the original developer gives up on them. A few of the more important ones get picked up by a second developer and taken forward, or by Dr Byte who keeps them in line with Zen Cart.
This one has had an unprecedented 4-5 developers, one after another, plus significant contributions from others. That it eats developers like this shows how difficult it is. That it nevertheless keeps getting picked up and carried forward shows how important it is (though you could make a case for it actually being evidence of how daft some developers can be - I wouldn't argue). I will therefore be very pleased to see it properly integrated into Zen Cart, after which we'll be able to concentrate on doing the really flashy stuff! :thumbsup:
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
hostilerecords
Please can someone help me out with this, I'm going crazy reading through all the threads/posts trying to find the answer :cry:
I guess something isn't set up right, it is supposed work right?
If it isn't - can someone put me out of my misery and tell me, please.
Below is my original post.
I've been trying to reproduce this but have not been able to. In a test environment with the settings exactly as you have them, and a product set up as you have it, it all works perfectly for me.
Do you still have a site with this problem where I can look at the problem at source?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
Ben_86
I also have a problem with the contribution. I tried to install it on several installations but I still keep the following error.
When I add (for example) 10 pieces of attribute A and 10 pieces of attribute B, I get to see for the product 20 total in stock. This is correct! When I order 5 pieces of attribute A and I go to -> Catalog -> Categories / Products and I click to the product, I see at quantity 15 (10 + 10 = 20 - 5 = 15). Also this is correct.
When I enter catalog -> Products with attributes stock and I navigate to the product, I still see at attribute A 10 and attribute B 10! So only at Catalog-> Categories/Products -> Product I see the correct (total)quantity!
Does anyone knows how to solve this?
Hi Ben
I think that you've stated this the wrong way around. When products with attribute stock are purchased the attribute stock is reduced (provided Configuration > Stock > Subtract Stock is set to true), but the overall product total isn't.
So if you look at Catalog > Categories / Products you should see 20, whilst Catalog > Products with attributes stock should show 15.
You can manually sync the two by clicking on the Sync Quantities link in Catalog > Products with attributes. Quite why this wasn't automated when the addon was originally written escapes me. Maybe it is because attribute stock levels have taken over from product stock levels and so product stock levels no longer mean much, and it just wasn't considered to be important.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
13moons
I read through the posts and I'm not quite clear on this: If I install the latest version on 1.3.7 must all current products with attributes have stock for each attribute?
Or can I select individually which products with attributes are affected by this mod?
Thanks
You choose whether to add attribute stock to a product. If you do any attributes to which you don't add stock will be treated as having none. If you don't the stock control will continue to be done at the product level.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
heavenlynights
Whenever I place an item in the cart that has attributes by stock it shows up as being out of stock even though it is stated in both admin>catalogue/product and admin>catalogue>Product with attributes stock as having the correct amount of stock that I have.
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?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
frogster
How do I get the product Quantity in Stock value to show by attribute on the product pages. I have search the for this with no luck.
TBrides is right. The mod doesn't do this. Happily I now see that you have found and implemented the revised Grayson solution - well done.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
tbrides
best thing to do would not be to show the attributes at all if they are sold out.
There must be a way to fix this!!
Frank should have said
Quote:
Keep in mind, these fix will only work for products have one attribute, and product attribute display style is NOT radio buttons or check boxes.
The mod doesn't work on attributes as such, but on combinations of attributes. To not show the attribute, you would need to ensure that all of the combinations in which it occurs had no stock. And do that for all attributes. This would be easy if your products have just one attribute, but exponentially difficult for every additional attribute that they have. So it can be done, and would be much more feasible than trying to come up with a way of displaying the stock available for every combination in a way that would be meaningful to a customer.
Nevertheless it would be a relatively complex and potentially page-slowing piece of work that scarcely seems justified for a mod whose life will come to an end with the next major release of Zen Cart.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
khopek
OK so I have a probles...
It DOESN'T show Sold Out on items that i don't have.
I just input the info yesterday, and had an order today for something I do not have in stock. I checked the site and it doesn't say sold out.
I need help fixing this asap!
Thanks guys!
Do you have the following values set?
Admin > Configuration > Stock >
Check stock level = true
Subtract stock = true
Allow Checkout = false
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
kuroi
TBrides is right. The mod doesn't do this. Happily I now see that you have found and implemented the revised Grayson solution - well done.
This sounds a little like the problem im having.
The mod works great but what i need is it to show (to the customer) the quantity of each attribute instead of them finding out after they click the add to cart button.
Is this possible?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I think this is a problem for quite a few people. I know for me it is. The customer should defintely be given the information on the Product Info page, not at check out.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
troy77
what i need is it to show (to the customer) the quantity of each attribute instead of them finding out after they click the add to cart button.
Quote:
Originally Posted by
Sickerstore
one problem we are running into using something that only gives the stock information on the admin side only.
Quote:
Originally Posted by
khopek
The customer should defintely be given the information on the Product Info page, not at check out.
I agree with all of you, and I have pages of notes about the really whizzy things that could be done, some of which people have offered me money to do. But they're unlikely to happen with this mod as the base, and certainly not by my hand. The reasons have been explained many times before on this and other threads, but I'll run through them one final time:
- There is a solution (the Grayson solution with revisions) that works if you have just one attribute per product
- However, as you define stock for each combination of attributes, to this as a php solution when you have more than one attribute but avoid giving out misleading aggregated information, your server needs to know before the data leaves it, which combination of attributes your visitor is going to choose - which is a bit difficult to do.
- Alternatively you could pass data for every combination to the visitor's browser together with code that can be executed on the browser (most likely DHTML) but alas the original data structure is so poor as to make this very difficult to do
- And since a different, better integrated approach to stock by attributes is scheduled for inclusion in the next major release of Zen Cart, there is little point to producing complex code that will soon be made redundant
Quote:
Originally Posted by
kuroi
This [mod] has had an unprecedented 4-5 developers, one after another, plus significant contributions from others. That it eats developers like this shows how difficult it is.
And I'm now going to join the list of retirees. The time I have to donate to supporting people through the forum is limited and better used on things other than keep answering the same point over and over for a mod for which I have no personal use. I'll let somebody else pick up the baton, until the mod draws its last breath. Any volunteers?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
we are currently trying to work on a solution that will use DHTML.
We'll keep everybody updated.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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.
-
1 Attachment(s)
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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!!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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.
Quote:
Originally Posted by
tbrides
- I've changed the function "function zen_draw_pull_down_menu" in includes\functions\html_output.php
PHP Code:
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.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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.:(
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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...
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
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?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
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.