-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Found it:
http://www.zen-cart.com/forum/showth...=25987&page=11
It details code that displays the actual stock amounts for each attribute next to the attribute name. Want to mod my site to create a custom stock level chart - this post is a good place for me to start. Cheers.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
acetate
Found it:
http://www.zen-cart.com/forum/showth...=25987&page=11
It details code that displays the actual stock amounts for each attribute next to the attribute name. Want to mod my site to create a custom stock level chart - this post is a good place for me to start. Cheers.
There are no version for zencart 1.3.7 ? . I have no the includes/modules/pages/product_info/main_template_vars_attributes.php file in zencart 137 with stock by attributes 4.4
Any idea?. Thanks.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
pacorl2
There are no version for zencart 1.3.7 ? . I have no the includes/modules/pages/product_info/main_template_vars_attributes.php file in zencart 137 with stock by attributes 4.4
Any idea?. Thanks.
http://www.zen-cart.com/forum/showth...204#post227204
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
woodlandsprite
Thank you, but after three hours wasted, it don't works to me :cry:. The steps I'm doing is:
- Install zencart 1.3.7
- Install stock by attributes 4.3 by kuroi
At this point all works ok.
Modify includes/modules/your template/attributes.php (my template is "classic"), instead of /modules/pages/product_info/main_template_vars_attributes.php that is not present in zencart 1.3.7
with the grayson mod:
http://www.zen-cart.com/forum/showth...=25987&page=11
And I can't see any change. It appears the attribs, with the total number in stock, but without detailing sizes in the dropdown list (M 2 units , XL 3 units, etc.)
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
For Zen Cart 1.3.7 you should use Stock by Attributes 4.4 rather than 4.3 (which was for 1.3.6).
The Grayson solution is quite old now and has limited applicability. To make it work in 1.3.7 you should also review the steps recommended in post 46 of this thread.
I've not tried this myself, but several other people appear to have it working.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
kuroi
For Zen Cart 1.3.7 you should use Stock by Attributes 4.4 rather than 4.3 (which was for 1.3.6).
I am using 4.4 , but in the readme file apeears "stock by attributes v4.3". It confused me, but it's an error in the readme file.
Quote:
Originally Posted by
kuroi
The Grayson solution is quite old now and has limited applicability. To make it work in 1.3.7 you should also review the steps recommended in
post 46 of this thread.
I've not tried this myself, but several other people appear to have it working.
Thank you very much, it works OK :clap:
It's a mess this kind of large threads with a lot of conversations, versions, and mods about one thing :wacko: (all oscommerce and zencart are very messy, I use a lot phbpbb for example, and its very clean and simple the updates, but with oscommerce/zencart... uffff)
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hi,
My client is running a shop with ZC v1.3.7 and Stock by Attributes v4.3.1. All has been fine for several months. But suddenly, it is showing items as out of stock that are *not* out of stock. In fact, 998 are in stock. I re-uploaded all the Stock by Attributes v4.3.1 files, in case something had gotten corrupted on the server. No change - the problem persists. Has anyone else had this problem? Is there a fix??
Thanks!
~anne
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Ever since I installed this I been getting this kinda message when i delete products from my catalog. I hit the back button and cancel and it deletes products. But now I got it when trying to delete a sub category and it won't let me. Any ideas where I gotta fix it? The message is as follows:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(products_attributes_id, products_id, options_id, options_values_id, options_val' at line 1
in:
[delete from zen_products_attributes (products_attributes_id, products_id, options_id, options_values_id, options_values_price, price_prefix, products_options_sort_order, product_attribute_is_free, products_attributes_weight, products_attributes_weight_prefix, attributes_display_only, attributes_default, attributes_discounted, attributes_image, attributes_price_base_included, attributes_price_onetime, attributes_price_factor, attributes_price_factor_offset, attributes_price_factor_onetime, attributes_price_factor_onetime_offset, attributes_qty_prices, attributes_qty_prices_onetime, attributes_price_words, attributes_price_words_free, attributes_price_letters, attributes_price_letters_free, attributes_required) where products_id = '57']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
kuroi
For Zen Cart 1.3.7 you should use Stock by Attributes 4.4 rather than 4.3 (which was for 1.3.6).
The Grayson solution is quite old now and has limited applicability. To make it work in 1.3.7 you should also review the steps recommended in
post 46 of this thread.
I've not tried this myself, but several other people appear to have it working.
Hi, this is my first post on this forum.
I am also running Zen Cart 1.3.7 and Stock by Attributes 4.4.
I managed to install it and it seemed to work fine, until I tried to checkout (when logged in)
Indeed, an error message "Fatal error: Cannot redeclare class order in order.php on line 20" appeared on page http://www.mysite.com/index.php?main...ckout_shipping.
This occurs even if I try to buy an item with or without any attributes.
Does anyone know how to fix this ?
I tried to add a line prior to line 20 (as explained on wiki) :
if ( class_exists('order') )
{
return;
}
but the same error occured !
Fwed
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
fwed
Hi, this is my first post on this forum.
I am also running Zen Cart 1.3.7 and Stock by Attributes 4.4.
I managed to install it and it seemed to work fine, until I tried to checkout (when logged in)
Indeed, an error message "
Fatal error: Cannot redeclare class order in
order.php on line
20" appeared on page
http://www.mysite.com/index.php?main...ckout_shipping.
This occurs even if I try to buy an item with or without any attributes.
Does anyone know how to fix this ?
i have uninstalled the mod, and now I can check out.
I will try to re-install it and see what happens !
Fwed
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
fwed
i have uninstalled the mod, and now I can check out.
I will try to re-install it and see what happens !
Fwed
OK, I have re installed the mod as mentionned above, and it works perfectly now :clap:.
I don't know why it didn't work in the first place :blink: ! Maybe I did it more properly (i used to leave for example the new order.php file and order_OLD.php file in the same directory, maybe this is why all went wrong)
I hope this will help anyone who gets into the same error message !
Fwed
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
fwed
i used to leave for example the new order.php file and order_OLD.php file in the same directory, maybe this is why all went wrong
You are exactly right. Both the new and old files contained classes called order and Zen Cart would have tried to load them both, which PHP doesn't allow. It's good to keep backups of changed files, but personally I would always recommend doing so offline and not mixing them with your live files. Glad you got to the bottom of the problem.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
seattleannie
My client is running a shop with ZC v1.3.7 and Stock by Attributes v4.3.1. All has been fine for several months. But suddenly, it is showing items as out of stock that are *not* out of stock. In fact, 998 are in stock. I re-uploaded all the Stock by Attributes v4.3.1 files, in case something had gotten corrupted on the server. No change - the problem persists. Has anyone else had this problem? Is there a fix??
Have you tried upgrading to Stock by Attributes v4.4, which is the correct version when you are running ZC 1.3.7?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
vivaraquel
Ever since I installed this I been getting this kinda message when i delete products from my catalog. I hit the back button and cancel and it deletes products. But now I got it when trying to delete a sub category and it won't let me. Any ideas where I gotta fix it? The message is as follows:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(products_attributes_id, products_id, options_id, options_values_id, options_val' at line 1
in:
[delete from zen_products_attributes (products_attributes_id, products_id, options_id, options_values_id, options_values_price, price_prefix, products_options_sort_order, product_attribute_is_free, products_attributes_weight, products_attributes_weight_prefix, attributes_display_only, attributes_default, attributes_discounted, attributes_image, attributes_price_base_included, attributes_price_onetime, attributes_price_factor, attributes_price_factor_offset, attributes_price_factor_onetime, attributes_price_factor_onetime_offset, attributes_qty_prices, attributes_qty_prices_onetime, attributes_price_words, attributes_price_words_free, attributes_price_letters, attributes_price_letters_free, attributes_required) where products_id = '57']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
The SQL code being generated there is just plain wrong. But I have reviewed every access to the products attributes table in both core Zen Cart and Stock by Attributes and can see nothing that would generate this SQL. Do you have any other mods installed?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hi guys,
I'm quite new at this (never done SQL stuff before) and tried to follow the instructions to install this mod.
The instructions said to create a new database table etc by running stock_attribute.sql, but I wasn't sure how to do this. I first went to the admin tools -> Install SQL patches, and tried uploading the file. When that didn't seem to do anything, I opened the file in a text editor, copied the code, and pasted it into the SQL Query Executor. This resulted in an error.
1062 Duplicate entry 'STOCK_SHOW_LOW_IN_CART' for key 2
Undaunted, I tried copying the files into the proper folders in my offline site, and renamed the template folder name accordingly. It did create a new option in the Catalog called "Products with Attributes Stock," but when I choose it, I get another error:
Warning: main(includes/classes/products_with_attributes_stock.php): failed to open stream: No such file or directory in /home/wk/public_html/zc/admin/products_with_attributes_stock.php on line 12
Warning: main(includes/classes/products_with_attributes_stock.php): failed to open stream: No such file or directory in /home/wk/public_html/zc/admin/products_with_attributes_stock.php on line 12
Fatal error: main(): Failed opening required 'includes/classes/products_with_attributes_stock.php' (include_path='.:/usr/local/lib/php') in /home/wk/public_html/zc/admin/products_with_attributes_stock.php on line 12
I must have done something wrong... though the file in question is indeed in the folder it mentions. Any help?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Wingkong
Your first attempt to install the database patch worked. The second is failing because you can't do it twice - but you don't need to.
The warning messages that you are getting suggest that the files are not in the right places. That reference to includes/classes/products_with_attributes_stock.php is from a file located in your admin directory, so a more complete path would be admin/includes/classes/products_with_attributes_stock.php. This file is certainly in the current stock by attributes release package, but not, according to your warnings, in the right place on your server.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
kuroi
Wingkong
Your first attempt to install the database patch worked. The second is failing because you can't do it twice - but you don't need to.
The warning messages that you are getting suggest that the files are not in the right places. That reference to includes/classes/products_with_attributes_stock.php is from a file located in your admin directory, so a more complete path would be admin/includes/classes/products_with_attributes_stock.php. This file is certainly in the current stock by attributes release package, but not, according to your warnings, in the right place on your server.
Thanks Kuroi! Sure enough, I forgot to upload the file to the admin/includes/classes folder. Works now! :)
-
Stock by Attribute discounts for bulk
I didn't realise that this thread existed, so I am now posting a new 'reply' here, because it's a more appropriate location. The post is my original with a reply from Kuroi ( his replies are indicated in red italicised text)
Quote:
Originally Posted by blag http://www.zen-cart.com/forum/images...s/viewpost.gif
I have some questions about the Stock by Attributes module, and wondered if anyone can assist, please.
Firstly: lets say I have an item with two attributes, one is colour and the other is size. Now, if I have in stock (and the stock is finite and cannot be re-stocked) 6 large, green; 4 medium, brown; and 3 small, green.
The item is showing that there are 13 items available, but let's say that one customer wanted 4 small green, and ordered them, does the module prevent him ordering four, OR does it allow the order for 4 small green items?
Are ordered items deducted from the individual attributes and the grand total or from the total only?
Items are deducted from the stock for individual attribute combinations. Whether or not the visitor would be stopped from checking out in the example that you give above, would depend on whether you had selected that option in the switches that the Stock by Attributes mod inserts into your Admin.
Quote:
Originally Posted by blag http://www.zen-cart.com/forum/images...s/viewpost.gif
A further question about the module: how do I offer a discount for bulk purchase of at items? Using my example above, I want to offer a discount if the customer buys six of a specific item, thus discount would apply to a purchase of all 6 of the large green items, but of course, no discount will apply for the other items nor for any combination of these items that may equal or exceed 6 - the discount applies to the 6 large green items only. (If there were 6 medium brown items, then a discount would apply to a purchase of all six of them.) Is this possible, and if so how?
I'm afraid that I've never used the discount facilities, let alone in tandem with Stock by Attributes. I can see ways of programming it both ways, so you would need to test it to see which way it actually works. Or you could try posting in the Stock by Attributes support thread to see if one of the mod's other users has already tried this.
So does anyone know how to implement the specific discount for bulk with a sba set-up?
##############################_
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I have been through every post in this thread and can't see that anyone has asked the question as to what the 'Sync quantities' facility actually does. Can anyone out there advise, please?
(I don't want to try it just in case it screws up the data that I have painstakingly uploaded!!)
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Sync quantities applies the sum of the stocks for a product's attribute combinations to the overall stock total for that product.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
kuroi
Sync quantities applies the sum of the stocks for a product's attribute combinations to the overall stock total for that product.
Thanks, kuroi, that's cleared that up for me.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Is there a way to assign a different SKU/model for each product variant using this mod? Or is there a hack for this mod? I need this functionality to sync quantities with existing, brick and mortar database. Thanks!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
moltar
Is there a way to assign a different SKU/model for each product variant using this mod? Or is there a hack for this mod?
No the mod doesn't support this. But it is planned for the next major release (1.4) of Zen Cart. I'm not aware of any hack that does it now.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Holy crap you are fast :))
When is the next release coming out? :shocking:
p.s. there is a contribution that supposedly does this, but it's all in german and it's basically a whole bunch of file edits. Not very elegant...
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
moltar
When is the next release coming out? :shocking:
I'm afraid the Zen Cart Dev Team don't give out release dates.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hi, i have been reading through all the threads and still cant work out a solution to be able to have 2 attributes to a product but only use one f them for stock levels.
e.g.
The product is a theatre show. It has 20 screenings.
1st Attribute = Date i want to have 70 products for each date
2nd Attribute = Ticket level...concession, adult etc. I dont want to use quantity for this attribute as they refer to the 70 on the date.
Can someone please help?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
OK, so I've added this module, got it working, and updated all my stock.
Because the stock levels of each variant are not clear at the time of ordering, I can see that, in the case of my store, there are almost certainly going to be occasions when a customer may decide that he/she fancies an item in Size a in Colour B, which is a variant that isn't available, and it may be the case that the customer has to just keep trying until they get the right combinations. So in many ways, the customer is working 'blind'.
So to overcome this problem, I have provided the customer with a 'stock availability' table which shows the variants that are available, with stock levels.
I've added the table in the product details text, but, as things stand, I will have to manually update the stock levels in these tables when purchases are made or stock replenished.
FINALLY... my question can anyone advise me as to what code I would need to incorporate in my text so as to make the the stock level update automatically?
I am quite happy to add a different line of code for each variant, if necessary, because this would save me time in the long run.
I realise that the way to do this is to 'look-up' the stock level for the variant, using the variant's unique 'id', but I have no idea as to how I could do that from within the html in my 'stock availabilty' table. (Ideally, I would like to be able to re-present a filtered by product version of the 'Stock by Attributes' data entry page, because that would mean that the whole table would be automatic!!)
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Sorry if this was covered allready. Its such a long thread I couldnt find my answer.
I have the Stock by attribute mod installed, And it shows a total of how many I have regardless of Size. I wanted to know if there was a way, Perhaps in the actual drop down menu options if I can put how many I have in stock for each item.
Thanks.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
milobloom
I wanted to know if there was a way, Perhaps in the actual drop down menu options if I can put how many I have in stock for each item.
That is rather the point of the module :smile:
Providing it's properly installed, attribute stocks are entered via Admin > Catalog > Products with Attributes Stock
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Maybe I dont have it installed right then.
I get a count on the top on how many I have in total.
However in the drop down it (or anywhere for that matter ) I dont see where it shows 1 in size large 2 in medium 4 in small
The drop down menu just shows size not how many there are...
What am i doing wrong???
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Sorry. Misunderstood. Thought that you were referring to entering data via the Admin.
What you want to do is not included in the mod and there's an explanation of why in the wiki entry for the mod. There is a way of doing it (though it may need some adapting to your particular requirement) and there are multiple posts about it earlier in this thread and in the other support thread. If you search for "Grayson", that's usually a good starting point.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Oy. Ok. I am very confused. So any help would really be appreciated.
There are many versions of Stock by attributes around, And I dont know which one I am running.
I am running the current version of zencart. I just spent alot of time entering stock levels by going into Catalog -> Products with Attribute Stock.
Now here is my delema... I think I found some edits to make the drop downs as you mentioned.
Quote:
If you go this archive thread and seek out post #110 by Grayson, and her correction in #132. She shares code that she uses to show quantities for each attribute (though it will only work when there is at most one attribute per product), which could easily be adapted to supress display instead when the quantity is 0.
So I went there and saw the first edit to:
Quote:
Open includes/modules/pages/product_info/main_template_vars_attributes.php and make the following changes:
And the funny thing was there was no such file.
Now this is getting me a little scared. I wouldnt want to type in all those Stock Levels all over again. Did I jave the wrong version installed? But this does sound like the way we were talking about how to enter the stock...
Sigh...
What would you make of this???
Milo
www.timeofyear.com
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
milobloom
There are many versions of Stock by attributes around, And I dont know which one I am running.
That's kind of important. Although Stock by Attributes now touches as few core Zen Cart files as possible. The ones it does touch have a habit of changing with each release. That's why there are so many versions of Stock by Attributes - they match versions of Zen Cart. Thank goodness this functionality will be incorporated into core Zen Cart in release 1.4.
Quote:
Originally Posted by
milobloom
And the funny thing was there was no such file.
Grayson's solution was designed for Zen Cart 1.2.x. The Zen Cart structure changed for 1.3, and the adaptations for this solution are explained in later posts. Try searching for "Frank" in the support threads for this mod. I believe that one of them will yield what you're looking for.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I'm looking for a way to combine attributes controller to the stock by attributes...
So basicly stock by attributes' "Add Quantity For Product Variant" thing would display all the attribute values (I use only one attribute..size) and user wouldn't have to go through attributes controller at all..
If anyone has ideas on this, let me know. thanks
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I did a search of this thread, but nothing came up. Is there anyone to have each attribute assign a unique model number?
Example.
Design1, Black, Large = DESIGN-BLKL
Design1, Black, Small = DESIGN-BLKS
So on and so on. Thanks.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
poosk
I'm looking for a way to combine attributes controller to the stock by attributes...
I'd recommend patience on this. Stock by Attributes is scheduled to be incorporated into Zen Cart 1.4, so making code changes (which is what this would require) would simply be lost.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
titter
I did a search of this thread, but nothing came up. Is there anyone to have each attribute assign a unique model number?
Example.
Design1, Black, Large = DESIGN-BLKL
Design1, Black, Small = DESIGN-BLKS
This functionality is not present in the existing mod, but is scheduled for inclusion in core code for Zen Cart 1.4.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Any suggestions on how to setup the inventory ... do the extra attributes show on a order?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Is there any way to be notified when something is out of stock???
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
milobloom
Is there any way to be notified when something is out of stock???
Yes. You would enable the low stock emails and set the threshold to zero.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I have a problem with my store.
I can add a product to the shopping cart when the product has no attributes, but if the product has attributes, it is not possible to click on the 'add to cart' button. (I have sba v4.4 installed using Zen Cart 1.3.7.1, and, as far as I can tell, all the relevant files for the mod are in the correct places)
The button appears to be disabled when the customer wishes to add a product to the cart, and since this seems to be the case only for products with attributes, I am assuming that the problem is related to sba.
I have double-checked everything, as far as I can, but I don't seem to be able to fix the problem - can anyone shed some light on what might be causing this critical phenomenon, PLEASE?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hello,
I installed the "Stock by Attributes" mod, and everything seemed to work fine until I made a purchase in my cart using one of the modded products.
When I arrived in my cart at the "main_page=checkout" page, it came up with the following error:
"Fatal error: Call to undefined function: zen_get_advertizer_list() in /home/xmanhos/public_html/shop/includes/templates/xman/templates/tpl_checkout_default.php on line 215"
Has anyone had experience with this error before ?
Kind regards,
Anthony
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Does any one know if you can assign different codes to your attributes with this contribution?
For example...
Main product (code 1234)
- size small (code 1234s)
- size medium (code 1234m)
- size large (code 1234l)
Thanks in advance! :)
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
Alex Clarke
Does any one know if you can assign different codes to your attributes with this contribution?
Alas not. Attribute level SKUs are scheduled for inclusion in Zen Cart 1.4.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
kuroi
Alas not. Attribute level SKUs are scheduled for inclusion in Zen Cart 1.4.
That was going to be my next question!! Thanks for the quick reply. :)
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
BUMP! (only because I didn't receive a reply to the earlier thread in this post, and have been unable to resolve this problem- at present it's crippling my progress in making the store go live)
I have a problem with my store.
I can add a product to the shopping cart when the product has no attributes, but if the product has attributes, it is not possible to click on the 'add to cart' button. (I have sba v4.4 installed using Zen Cart 1.3.7.1, and, as far as I can tell, all the relevant files for the mod are in the correct places)
The button appears to be disabled when the customer wishes to add a product to the cart, and since this seems to be the case only for products with attributes, I am assuming that the problem is related to sba.
I have double-checked everything, as far as I can, but I don't seem to be able to fix the problem - can anyone shed some light on what might be causing this critical phenomenon, PLEASE?
Here's the generated html code for the 'dead' button, but as far as I can tell, it appears to be an active 'input' item which actually identifies the products ID:
HTML Code:
<!--bof Add to Cart Box -->
<div id="cartAdd">
Add to Cart:
<input name="cart_quantity" value="1" maxlength="6" size="4" type="text">
<br><br><input name="products_id" value="330" type="hidden">
<input src="includes/templates/template_default/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " type="image">
</div>
<!--eof Add to Cart Box-->
The products ID value is correct, but there doesn't seem to be any value for the Stock ID created by sba.
Now here's the code for an add to cart button for an item that doesn't have any attribute 'variants':
HTML Code:
<!--bof Add to Cart Box -->
<div id="cartAdd">
Add to Cart:
<input name="cart_quantity" value="1" maxlength="6" size="4" type="text">
<br><br><input name="products_id" value="276" type="hidden">
<input src="includes/templates/template_default/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " type="image">
</div>
<!--eof Add to Cart Box-->
Now, since the code for these buttons appears to be identical, withe exception of the products ID, can anyone cast any light as to why one working and the other NOT?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
xman888
Hello,
I installed the "Stock by Attributes" mod, and everything seemed to work fine until I made a purchase in my cart using one of the modded products.
When I arrived in my cart at the "main_page=checkout" page, it came up with the following error:
"Fatal error: Call to undefined function: zen_get_advertizer_list() in /home/xmanhos/public_html/shop/includes/templates/xman/templates/tpl_checkout_default.php on line 215"
Has anyone had experience with this error before ?
Kind regards,
Anthony
Anthony, you didn't just install Stock by Attributes, did you? You also installed One Step Checkout.
The error that you are getting refers to a non-existent function, zen_get_advertizer_list(). Not just one that it can't find, but one that is not even part of Zen Cart, or Stock by Attributes.
Moreover, the file that is calling it, tpl_checkout_default.php, doesn't exist in Zen Cart or Stock by Attributes either.
The latter does exist in the One Page Checkout mod which until today I had not looked at. Having now reviewed, I strongly recommend that you delete it and run. Happily it doesn't overwrite any of your core files, so there's no damage done to your underlying Zen Cart. In addition to missing code such as that which you are tripping over, this mod seems to have references to other undocumented add-ons that were presumably part of his install when he put this mod together (and may be the cause of your problem) as well as hard-coded references to his template.
The forum moderators have put a warning on this mod. I've never seen them do that before, so I guess that's a strong indication that they agree that it's not up to the usual quality.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
@blag
The code for your add to cart buttons with attribute and without are correctly identical apart from the product id. No stock id is added or needed at that point.
To jump from noticing that the problem occurs only with products who have attributes to assuming that it must therefore be a problem with stock by attributes is too big a leap. Stock by Attributes is just a small part of the attributes processing and setup and I wouldn't rule out other possibilities based on what you've told us.
That said Stock by Attributes would be the first place I'd look too. The reason is because there isn't a Stock by Attributes for Zen Cart 1.3.7.1. The last version 4.4 was re-tooled specifically for Zen Cart 1.3.7 and because it affects six core files that tend to change in every release, needs to be re-tooled each tool. Three of those six files changed in between 1.3.7 and 1.3.7.1, so there's a fair chance that's what's causing your problem.
I haven't reviewed those changes, and you haven't told us specifically what happens when you try to use the button or provided a link, but if I had to guess, I would suggest looking first at the includes/modules/pages/shopping_cart/header_php.php file.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
kuroi
Thanks for the response. Of course you are right, I may be wrongly assigning the blame to sba, and I had failed to understand that the version was 1.3.7 specific, but is it possible/likely that a file that is NOT included in the sba mod, but which IS included in the 1.3.7.1 update is causing this problem?
The add-to-cart button for a product with attributes appears to be dead: the cursor does not change to a hand, and the button is not clickable, but the 'quantity' box directly above the add-to-cart button IS editable.
BTW I have found a significant difference earlier in the html pages' output from my store, which be relevant.
If I examine the entire source for a page for a product which has no attributes I find this piece of html:
Quote:
<!--bof Form start-->
<form name="cart_quantity" action="http://www.hohose.exphoster.com/store/bbb001-p-242.html?action=add_product" method="post" enctype="multipart/form-data">
<!--eof Form start-->
The 'same' snippet of code for a page for a product WITH attributes (but, obviously, for a different product) is:
Quote:
<!--bof Form start-->
<form name="cart_quantity" action="http://www.hohose.exphoster.com/store/babette-micromesh-p-230.html?action=add_product&number_of_uploads=0" method="post" enctype="multipart/form-data">
<!--eof Form start-->
I have no downloadable products, and AFAIK I have disallowed uploads/downloads in my admin, but the file with attributes appears to make a reference to uploads, even though, presumably, there shouldn't be any such reference!!
BTW by asking WinMerge to compare the full files of 1.3.7.1 unmodified, and those contained in the most recent version of sba (in the downloads section of ZC), the following files differ:
admin/includes/stylesheet.css - the difference is that the sba 'version' makes a call to makes a call to import the stock_attributes.css, otherwise files are identical
admin/orders.php - the sba version adds two lines of code, otherwise files are identical
includes/classes/order.php - apart from various lines added by sba, there are four lines which differ; i.e. 912; 915; 918; & 956
includes/functions/functions_lookups.php all changes are made by sba, otherwise files are identical
includes/modules/pages/checkout_shipping/header_php.php additional code by sba, otherwise files are identical
includes/modules/pages/shopping_cart/header_php.php there are five additional lines in the sba file at approx line 71/72, but these same lines are to be found at line 111; line 106 of the 1.3.7.1 differs from line 113 of the sba version; other than that there are additional lines in the sba version.
By comparing the 1.3.7 and the 1.3.7.1 full filesets, I find the following differences:
admin/includes/stylesheet.css - - the files are identical
admin/orders.php - lines 457 and 813 differ.
includes/classes/order.php - lines 912; 915; 918; & 956 differ.
includes/functions/functions_lookups.php files are identical
includes/modules/pages/checkout_shipping/header_php.php files are identical
includes/modules/pages/shopping_cart/header_php.php line 106 differs
It seems to me, therefore, if the difference between the two versions is causing the problems, the culprit(s) MAY POSSIBLY lie in the elements defined in red, above. Unfortunatlely that gets me no further forward, because I wouldn't know how to fix these, unless, of course reverting to original 1.3.7 version has no consequences other than fixing my problem!!
BTW: My store can be found here
Any ideas, suggestions or help, please??
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
@blag
Always useful to give a URl and say which browser you're using. The button works perfectly in IE7. In fact it probably works perfectly in all browsers, except that when there are attributes some dodgy layout comes into play (and although it works in IE, it's actually IE that gets it wrong :shocking:).
Basically you have extended the DIV that contains your product attributes right across the screen and it is sitting on top of your add to cart button. The add to cart button is perfectly coded and working properly, you just can't get to it as it's behind an invisible barrier.
You need to tweak your stylesheet so that the button is on top, or the errant div does not take up the whole width.
BTW if you're using Firefox on PC, then you can just sneak a click at the very, very top of the button.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
kuroi
That was a fantastically fast response.
I know that I have extensively hacked the css (although I am not an expert in css: most of my css hacks are the result of divine intervention or trial-and-error), and I felt that this might be the source/cause of the problem.
I use SeaFox as my main browser, and haven't tested the site in IE - or any other browser for that matter. I can't get a response anywhere on the button in my browser. I have tried to bring the button 'forward' by giving the div a big 'z' value in the css, but that didn't seem to work. I'll try restricting its width, but many many thanks for this insight. I was beginning to despair, because I have spent (literally, honestly) months working on the store. I'll report back soon
Secondary question - I initially included my products in secondary/linked categories, primarily for the size of my products, btu got realy weird results due to what ajeh said was a bug due to be fixed in 1.3.8. Unfortunately, because size is included as an attribute (in most cases) the search funsction doesn't find the size. Are there, to your knowledge, any improved 'search' modules - I've looked and looked but can't see anything.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
@blag
z-index only works on elements that have been positioned (e.g. have styles like position:absolute).
I'm not aware of any other search modules. This post from a few hours ago about how to create a custom search, will probably give a big clue as to why.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
kuroi
Thanks for the insight on custom searches!
I am really struggling to find which div is overlapping, because I can't see the overlap or a graphical 'representation' of the div!!
Are you able to determine (somehow or other) which div is causing the overlap? If so I would really apprecaite it
a) if you could advise which div it is, and
b) how you are able to determine this?
TIA
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
You actually have three elements extending right the way across: the productAttributes DIV and inside that the h3 tag and the WrapperAttribsOptions DIVs.
Three way to identify these, and they're all extensions to Firefox: CSS Viewer which lets you move round a page, giving you details of the elements that you're hovering over, the outline facility in the web developer extension and the inspect function in the firebug extension (my favourite). The web developer toolbar for Internet Explorer also has both outline find by click functions which would highlight this and the WebDev toolkit that can be used by those prefering Safari. There's also a web developer equivalent for Opera, but I haven't used that for a few months, so can't remember what facilities it has.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
kuroi
Ho-hum!! Specifying the width of the productAttributes DIV did the job. Thank you SO much - brilliant sleuthing by you.
I think it would have taken me several months of Sundays to figure that one out, and thanks for the additional info on tools to assist in identifying the overlaps etc. I have found and successfully installed a similar one for my browser!!
First class, and give yourself a HUGE pat on the back!!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
kuroi
Just thought I'd let you know - I found a problem with specifying the width of the productAttributes DIV, so I've 'positioned' the productAttributes DIV removed the width restriction and gave the div a 'z' value, and, of course, similarly, gave the addcart DIV a greater 'z' value so that the button 'floats' over the other DIVS!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
For some reazon E cannot Delete Variant's in stock by attribute latest version
The page asking for confirmation appears, and I press YES to confirm, when it returns to first page the variation is still there
The only remedy for my is to go to phpmyadmin and delete it directly from the DB table.
Using:
Zen Cart 1.3.7.1
Database Patch Level: 1.3.7.1
One Attribut per product
and IE. 7.0
Any ideas?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Sorry if this is asked before. I tried but couldnt find any answer.. So I'd need to automatically remove attributes (size) from the product page dropdowns if the size is soldout... or atleast display sold out if attribute is out of stock.
is it possible?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
hi,
that is only possible if you have one attribute on a product. it will not work if its more than one.
there's a solution somewhere.
I've heard that attributes will be sorted in v 1.4
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
tbrides
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.
Ok I've tried this like a million times and can't get it to work..
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/ctr/public_html/store/includes/functions/html_output.php on line 510
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Has anyone had this to work like asked above? I really need that for my site.
I dont want to run into the same problem.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5/edit orders.
Hi there,
I am trying to combine the Edit orders module and this one. there is no function for just looking up a products_with_attributes_stock.stock_id in the check out is there?
I have been having trouble extracting the syntax for this from the admin/orders.php for this purpose. suggestions?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
imm
For some reazon E cannot Delete Variant's in stock by attribute latest version
The page asking for confirmation appears, and I press YES to confirm, when it returns to first page the variation is still there
The only remedy for my is to go to phpmyadmin and delete it directly from the DB table.
Using:
Zen Cart 1.3.7.1
Database Patch Level: 1.3.7.1
One Attribut per product
and IE. 7.0
Any ideas?
Hello.... What can be wrong?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hi, This is what I've been looking for.
After I had installed the ad on last night, every thing went fine! But this morning I get the folowing error message (and I can not reach the shop):
0 DB_ERROR_NOT_CONNECTED
in:
[db_cache table]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
---
I dont know what it can be? Mabie this ad on is not that sable?
Best regards,
Pär Westerlind
www.mariawesterlind.com/shop
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
is there a way to just list all the possible combinations? or how would I use to figure that out w/ out manually creating each variant.
JOsh
-
1 Attachment(s)
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I apologize in advance if my questions have been asked before. This is such a long thread that it was hard to find certain answers.
We are using this on our site and it works great! Thanks for all your hard work!
My questions are:
1. We really would love to have an attribute grid similar to the attached image for the product info page. This screen shot was from the Multi Dimensional Quantities Module. (this module has not been uploaded completely and the author doesn't seem to be supporting it - the module in the downloads is screen shots only). Do you think this is possible and has anyone done this?
2. Will there be an update to be able to exclude certain attributes from the stocktake i.e. giftwrapping etc. This is available now on the StockAttribute by danielcor. (I am asking for this module since I have Stock by Attribute installed and not danielcor version)
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
imm
Hello.... What can be wrong?
Possibly that there isn't a stock by attributes tailored to Zen Cart 1.3.7.1, so there may be some niggling problems if you're using a version of the mod tailored to a different version of Zen Cart.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
westerlind
After I had installed the ad on last night, every thing went fine! But this morning I get the folowing error message (and I can not reach the shop):
0 DB_ERROR_NOT_CONNECTED
in:
[db_cache table]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
---
I dont know what it can be? Mabie this ad on is not that sable?
It's your connection to your database that isn't stable. That you were unable to get a good connection after installing this is simply a co-incidence.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
##########################
is there a way to just list all the possible combinations? or how would I use to figure that out w/ out manually creating each variant.
JOsh
Not currently Josh. This mod is used by some sites with large numbers of products and many attributes, sparsely populated, for whom a combinations would represent an absolutely overwhelming amount of data.
So its original authors (sensibly in my view) defaulted their thinking towards displaying individual combinations. As shown elsewhere in this thread, this really doesn't suit everybody and I predict that once attribute stock is taken into core code in Zen Cart 1.4 there will be an small explosion of ways to enter and display stock (I can say this with confidence as I have several interface and display designs already mapped out!).
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
@supersnow
1. It's certainly possible. The data is all there in the database and the screenshots suggest that somebody has already done it. However, I don't know of anywhere from which a ready-made solution is available.
2. There are no updates planned (by me at least) to the functionality in this mod for the reasons explained in the first post of this thread. However, this is built on the Danielcor version, with some small enhancements and the odd bug fix - no functionality was removed. So if it was in the Danielcor version, it's in this one too (though I've never seen it).
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
kuroi
@supersnow
1. It's certainly possible. The data is all there in the database and the screenshots suggest that somebody has already done it. However, I don't know of anywhere from which a ready-made solution is available.
Yes someone has done it with their own module but they have not uploaded the module except for the screenshots and he is not contactable either via the forum or by other means. So My question is is there any possibility for you to have this added to your module in the future?
Quote:
Originally Posted by
kuroi
2. There are no updates planned (by me at least) to the functionality in this mod for the reasons explained in the first post of this thread. However, this is built on the Danielcor version, with some small enhancements and the odd bug fix - no functionality was removed. So if it was in the Danielcor version, it's in this one too (though I've never seen it).
It looks like Danielcor has had this functionality in his latest release Aug 31 2007 Version: 3.01.1. So is this possible in your version? As I have said before I would like to have it in your version as I already have yours installed.
One other note I am thinking of upgrading to zencart 1.3.7.1. I saw in previous post there you mentioned a bit of an issue with this new version. Before I upgrade what should I do to make this mod work in it.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hey, if there's a mod to show a grid of available stock, why don't we get a few guys out there to track the code down so that we can use this. If Kuroi's version is based on danielcor's, and danielcor's now includes this feature, I would beg that kuroi perhaps try to include it. It would save such a lot of time and effort (I manually compile an 'availability' grid) and would make this mod truly useful. (I am of the opinion that whilst it is probably an essential mod, it doesn't go far enough)
Teasing us with the future capabalities of v1.4 is cruel, because we need this feature now, not at some unspecified time in the future. I feel that the argument that users with multitudes of products and combinations would have difficulties with such a facility within the mod would have problems is somewhat specious - if it's an OPTION, they don't have to use it!!
PLEASE, PLEASE kuroi, if you can do this, I would beseech you to do so!!
PLEASE
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
supersnow
Yes someone has done it with their own module but they have not uploaded the module except for the screenshots and he is not contactable either via the forum or by other means. So My question is is there any possibility for you to have this added to your module in the future?
My answer to this was made clear in the very first post of this thread to which I directed you in my previous post.
Quote:
Originally Posted by
supersnow
It looks like Danielcor has had this functionality in his latest release Aug 31 2007 Version: 3.01.1. So is this possible in your version? As I have said before I would like to have it in your version as I already have yours installed.
This has been added to Danielcor's version by jstephens. I've done a quick review of the code and it looks like a very competent job, with several of the bugs that I fixed also being fixed by this update. However, its main focus is adding some nice additional features. The problem is that they have been added to a version of the mod that was only compatible with Zen Cart versions 1.3.0 - 1.3.0.2, and although I haven't actually tested it, I rather suspect that there would be problems running it on Zen Cart 1.3.5 or later (if anybody knows otherwise please share your knowledge or experiences). So I understand your dilemma. If you need this functionality urgently, I recommend that you do a code comparison between Danielcor's version and jstephen's version and then apply the differences to my version.
Quote:
Originally Posted by
supersnow
One other note I am thinking of upgrading to zencart 1.3.7.1. I saw in previous post there you mentioned a bit of an issue with this new version. Before I upgrade what should I do to make this mod work in it.
There may or may not be an issue. This mod is very sensitive to changes in the underlying Zen Cart core code - the reason why I welcome the functionality being incorporated into core code - and I am not aware of anybody having checked whether any tweaks are needed to make it compatible with 1.3.7.1. HOWEVER, I have a client who needs this functionality for 1.3.7.1, and so I will be doing those checks ... probably later today.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
supersnow
One other note I am thinking of upgrading to zencart 1.3.7.1. I saw in previous post there you mentioned a bit of an issue with this new version. Before I upgrade what should I do to make this mod work in it.
No issue with Stock by Attribute 4.4. and Zen Cart 1.3.7.1 - you'd just be missing a couple of security patches. Alternatively you will very shortly (as soon as it's enabled in the downloads area) be able to download version 4.5 which includes the security patches and does some minor tidying up of the mod - detailed explanations are available in the readme file in the release package and in the wiki entry for this mod.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
kuroi
No issue with Stock by Attribute 4.4. and Zen Cart 1.3.7.1 - you'd just be missing a couple of security patches. Alternatively you will very shortly (as soon as it's enabled in the downloads area) be able to download version 4.5 which includes the security patches and does some minor tidying up of the mod - detailed explanations are available in the readme file in the release package and in the wiki entry for this mod.
thanx mate. just give us one more post as soon as its released.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
##########################
thanx mate. just give us one more post as soon as its released.
It is released. It just hasn't been activated in the Zen Cart downloads area yet.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
kuroi
It is released. It just hasn't been activated in the Zen Cart downloads area yet.
Oh yes activated that is what I meant.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
##########################
Oh yes activated that is what I meant.
It's just been activated.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hope this is the right place to be asking this as i have Stocks by attributes 4.4 installed because i need it for selling shoes ie ..
UK5 stock 1pair
Uk6 Stock 1 pair
Uk7 Stock 2pair
and so on ..
But now here's the thing...
I have a product i sell its a skateboard deck, now this items comes with a product called griptape, we do a FREE Grip but also want to offer 1/2 price up grade to 2 others one at £2.50 and one at £3.00 also an option to have it applied or loose.
so that five attributes ...
Free
Applied
Loose
Upgrade 1
Upgrade 2
with Stocks by attributes i have to set a stock level for each attribute so that's x5 but i only have 1 of the product in stock.
i hope that makes some sort of sense to someone and you can point me to the right way or add on i need.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
@Big_Woody
Stock by Attribute allows to you attach a stock level to each combination of attributes for a given product.
If that product has attributes that have stock of their own, they are probably not really attributes of the original product, but rather products in their own right.
You might be better off treating them as products and using one the three or four cross-sell modules available from the downloads area. There's also a hide categories add-in that you may be able to use to prevent them from being listed elsewhere.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
kuroi
@Big_Woody
Stock by Attribute allows to you attach a stock level to each combination of attributes for a given product.
If that product has attributes that have stock of their own, they are probably not really attributes of the original product, but rather products in their own right.
You might be better off treating them as products and using one the three or four cross-sell modules available from the downloads area. There's also a hide categories add-in that you may be able to use to prevent them from being listed elsewhere.
Thanks for that have installed Cross Sell and Cross Sell Adnvanced no having problems with Cross Sell Advanced so have post on that thread :(
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I have this mod installed and aside from a problem when I delete an item from my inventory, it is working fine. But I have items which are one of items. Handcrafted necklaces and I just want to add an option for buyers to include a free gift bag or extension chain if they reuire it. But because of this mod it will show that there are 2 items available s opposed to only 1 because of the gift bag and extension chain option. But if I add it to my cart with those 2 options ticked it says there in ot enough stock.
Is ther a way around this? Thank you.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
vivaraquel
I have this mod installed and aside from a problem when I delete an item from my inventory, it is working fine. But I have items which are one of items. Handcrafted necklaces and I just want to add an option for buyers to include a free gift bag or extension chain if they reuire it. But because of this mod it will show that there are 2 items available s opposed to only 1 because of the gift bag and extension chain option. But if I add it to my cart with those 2 options ticked it says there in ot enough stock.
Is ther a way around this? Thank you.
Sound just like my problem ... i need a way of have some attributes so they can be of value 0
I like you some items which i only have 1 in stock but wish to give customers options to go with this item , 6 or 6 items , but when i use Stock By Attributes it then wants to add each item so i can end up with it thinking i have 6 of the main items in stock. Searched and searched for the answer nop joy so if you find it please make it public.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
@vivaraquel
Let's step back a bit here. The options that you want to offer as additions to products are not attributes in the sense of variations in the intrinsic nature of your products (such as size, color or style) but rather are distinct products with their own (even if you don't intend to sell them separately). So the way to solve your problem is to treat them as such, setting them up as products, but giving them a price of zero if needed, and hiding them from the listings if necessary, and then offer them for the specific products to which they apply by way of the cross-sell add-in. You may also wish to add a check in "extra cart actions" to ensure that nobody tries to put one of your special offers in their cart without one of the products to which it applies.
@Big_Woody
I'm not sure whether the above also answers your issue. If not could you provide more details of the situation with which you are trying to cope.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Hello I have 2 questions:
1. When is ZenCart version 1.4 expected to be released? :)
2. I have installed Kuroi's Stock By Attribute 4.5 into my zencart 1.3.7.1 successfully. I then wanted to be able to show stock quantities in the product page. I only have one attribute for my products: colour. I am using a drop-down list with my colours. I would really like to see stock quantities listed alongside each colour value, eg. red (3 in stock), blue (12 in stock)....
I followed Kuroi's suggestion and went to the #1 FAQ in the Wiki for Stock By Attributes, and followed the instructions for Grayson's mod.
For some reason, nothing has changed! Help! I still don't see any stock quantities by attribute (even though I have entered them). I do see the global "you have 20 items in stock" for the entire product line, but not for each individual attribute.
Thank you for any help!
Liz
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
bigmom
1. When is ZenCart version 1.4 expected to be released?
The Zen Cart team don't give out dates for future releases. They have to fit them around their other work and would rather deliver software that works than meet a deadline.
Quote:
Originally Posted by
bigmom
2. I have installed Kuroi's Stock By Attribute 4.5 into my zencart 1.3.7.1 successfully. I then wanted to be able to show stock quantities in the product page. I only have one attribute for my products: colour. I am using a drop-down list with my colours. I would really like to see stock quantities listed alongside each colour value, eg. red (3 in stock), blue (12 in stock)....
I followed Kuroi's suggestion and went to the #1 FAQ in the Wiki for Stock By Attributes, and followed the instructions for Grayson's mod.
For some reason, nothing has changed! Help! I still don't see any stock quantities by attribute (even though I have entered them). I do see the global "you have 20 items in stock" for the entire product line, but not for each individual attribute.
I'm afraid that I've never actually installed this solution myself, but there are posts in this and other stock attribute threads from people who have explaining what problems they faced and how they overcome them.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
bigmom
Hello I have 2 questions:
1. When is ZenCart version 1.4 expected to be released? :)
2. I have installed Kuroi's Stock By Attribute 4.5 into my zencart 1.3.7.1 successfully. I then wanted to be able to show stock quantities in the product page. I only have one attribute for my products: colour. I am using a drop-down list with my colours. I would really like to see stock quantities listed alongside each colour value, eg. red (3 in stock), blue (12 in stock)....
I followed Kuroi's suggestion and went to the #1 FAQ in the Wiki for Stock By Attributes, and followed the instructions for Grayson's mod.
For some reason, nothing has changed! Help! I still don't see any stock quantities by attribute (even though I have entered them). I do see the global "you have 20 items in stock" for the entire product line, but not for each individual attribute.
Thank you for any help!
Liz
Isn't Grayson's mod intended for use when you have only one attribute per product?
-
stock_by_attributes_v4_5
I hope this is the correct place for this. I am using stock_by_attributes_v4_5
with Zen Cart 1.3.7.1.
I have colors as attributes (added as colors) and facts as attributes (added as features)
When I try to assign a stock level ( for example 12 red) it wants me to choose from a second dropdown that lists the features (for example plastic, made in China, etc)
Every red product is plastic AND made in China, however I can only pick plastic OR made in China. I don't wish to choose any of this, I just need to be able to choose red.
Then when I pick red and plastic, the item shows as out of stock even if this is not the case.
What am I missing here, should I be using a different add on, not listing plastic and made in China as features or what.
My site is on a local server, so I can't post a link. Anyone out there who can point out my error?
Thank you
-
Re: stock_by_attributes_v4_5
Quote:
Originally Posted by
member
I hope this is the correct place for this. I am using stock_by_attributes_v4_5
with Zen Cart 1.3.7.1.
I have colors as attributes (added as colors) and facts as attributes (added as features)
When I try to assign a stock level ( for example 12 red) it wants me to choose from a second dropdown that lists the features (for example plastic, made in China, etc)
Every red product is plastic AND made in China, however I can only pick plastic OR made in China. I don't wish to choose any of this, I just need to be able to choose red.
Then when I pick red and plastic, the item shows as out of stock even if this is not the case.
What am I missing here, should I be using a different add on, not listing plastic and made in China as features or what.
My site is on a local server, so I can't post a link. Anyone out there who can point out my error?
Thank you
To get your preferences to work, you would have to further refine the attributes that you have deignated features. You need to separate these into two (or maybe more depending on the 'range' of features) attributes, one being 'Material' and the other being 'Country of Manufacture' and thereafter assign these attributes to the product. (You can create new attribute types in Zen Cart)
The point of an attribute is to further define the product, therefore each attribute allows only one item to be selected at a time.
But why bother with assigning attributes to a product where is no alternative attribute for 'Country of Manufacture' or 'Material', why not include it it the description of the Product? (OIf course if every blue product isn't plastic, or isn't made in china then you have a slightly different problem)
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
I wanted to choose the appropriate descriptons for each product because it would be faster than using the description area in html, for describing a large quanity of similar items.
I could use the three or four descriptions that apply for each particular item (for example some products are metal instead of plastic).
I thought that was what features were. I just don't understand why stock by attributes even cares what the features are. I just want it to know I have 12 red, 3 blue, etc.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
member
I wanted to choose the appropriate descriptons for each product because it would be faster than using the description area in html, for describing a large quanity of similar items.
I could use the three or four descriptions that apply for each particular item (for example some products are metal instead of plastic).
I thought that was what features were. I just don't understand why stock by attributes even cares what the features are. I just want it to know I have 12 red, 3 blue, etc.
Hi
I think I understand what it is that you are trying to achieve. You don't want the user to be able to select an alternative for the place of manufacture etc. i.e your 'Features'.
In this case you would need to set the Option Name to be a 'Read Only' option. Or so you would think, wouldn't you? I have tried this, and I don't seem to be able to add Option values to a 'Read Only' Option Type. This would be such a useful feature, if it worked - or maybe it does, but I am not using it correctly.
Even though the Read Only Type for Option Names doesn't appear to work, you can specify as many of the Option Values that you like for a given option Name, but the visitor will be able to select from these option values, because the Option Type will be either 'Dropdown'; 'Check box'; or 'Radio' (button).
This is of course, confusing, but effectively the user appars to be able to select the features as alternatives, and the very nature of the drop down, radio buttons allows only one option value at any time.
I found a clunky workaround: I use the mod short_description_1.1 and have all the 'fixed' unique-option-per-product item preformatted in a list in a text file, which I then edit in the Product's description. If you go to my inactive web site and slect a product you will see that these items appear as a bulleted list sfter the blurb about the product.
I hope this helps!
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
kuroi
@Big_Woody
I'm not sure whether the above also answers your issue. If not could you provide more details of the situation with which you are trying to cope.
Thanks for taking the time to ask.
What i was trying to do is this.
I sell skateboard parts. The deck is the wooden top piece (sorry if you know dont want to sound like your stupid) well they have griptape fitted tot he top. When we sell one we give free griptae with each order, cheap stuff but free all the same.
What i want to do is have a drop down selection giving the user chance to upgrade there tape at a minimal cost.
SO
Deck <Free Tape Loose
< Free Tape Fitted
< Upgrade Option 1 + £2.50 Fitted
< Upgrade Option 1 + £2.50 Loose
< Upgrade Option 2 +£3.00 Fitted
< Upgrade Option 2 + £3.00 Loose
Now if i use these options in a drop down menu "Stock by Attributes" wants a value for each option making 6 in total but i may only have 1 deck of that type in stock.
Want i need is a way of tell SBA that the option are 0 value does that make sense and is it possible ?
Cheers for taking the time to read this.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
[QUOTE=blag;443833]
I found a clunky workaround: I use the mod short_description_1.1 and have all the 'fixed' unique-option-per-product item preformatted in a list in a text file, which I then edit in the Product's description. If you go to my inactive web site and slect a product you will see that these items appear as a bulleted list sfter the blurb about the product.
QUOTE]
I used this and it works pretty good except I am getting double of everything when I choose to go into the category page.
I then got to thinking more clearly. I turned off the wysiwyg. I can now list the features with <li> between them without getting dirty html (which is why I was not using the description area).
I added the last line to the stylesheet.css
/*.content,*/ #productDescription, .shippingEstimatorWrapper {
/*font-size: 1.2em;*/
line-height: 1.5em;
You could change the color, etc. also if desired. I was so frustrated with the wysiwyg, but if it can be done more cleanly, I think I can live with it. Thanks for getting me thinking correctly. Now my Stock by Attribute works as desired.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
[QUOTE=member;444156]
Quote:
Originally Posted by
blag
I found a clunky workaround: I use the mod
short_description_1.1 and have all the 'fixed' unique-option-per-product item preformatted in a list in a text file, which I then edit in the Product's description. If you go to
my inactive web site and slect a product you will see that these items appear as a bulleted list sfter the blurb about the product.
QUOTE]
I used this and it works pretty good except I am getting double of everything when I choose to go into the category page.
I then got to thinking more clearly. I turned off the wysiwyg. I can now list the features with <li> between them without getting dirty html (which is why I was not using the description area).
I added the last line to the stylesheet.css
/*.content,*/ #productDescription, .shippingEstimatorWrapper {
/*font-size: 1.2em;*/
line-height: 1.5em;
You could change the color, etc. also if desired. I was so frustrated with the wysiwyg, but if it can be done more cleanly, I think I can live with it. Thanks for getting me thinking correctly. Now my Stock by Attribute works as desired.
It's a pleasure to have been of assistance.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
tbrides
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.
This was posted in Feburary, I made the changes and it seems to work with Zen Cart 1.3.7.1. I can't get the dropdown to say sold out in red (it says sold out, I just can't get it to be red).
Can anyone explain exactly what the following instructions require.
Then I added the class .red to my stylesheet, which just sets color:red
Someone else asked the same thing and was told
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
That is not specific enough could someone post exactly what I need to put in the stylesheet. I am very new to this.
Thanks
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
member
This was posted in Feburary, I made the changes and it seems to work with Zen Cart 1.3.7.1. I can't get the dropdown to say sold out in red (it says sold out, I just can't get it to be red).
Can anyone explain exactly what the following instructions require.
Then I added the class .red to my stylesheet, which just sets color:red
Someone else asked the same thing and was told
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
That is not specific enough could someone post exactly what I need to put in the stylesheet. I am very new to this.
Thanks
I was wrong, .red {color: #FF0000; } works in the css.
It works if I use checkboxes or radio buttons. The problem only happens for dropdowns. I guess that I misunderstood.
Post #165 says Keep in mind, these fix will only work for products that have one attribute, and product attribute display style is radio buttons or check boxes.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
After reading through most of this thread, I'm thinking this may not be the solution I was looking for.
Here's the situation: We are silling motorcycle coasters (kick stand supports) that come in six colors. Customers can order various quantities of the colors to add together to equal our minimum quantity of 250. As I've currently set it up, they have to order each color separately and eventually it will come up to the minimum quantity. However, we also offer less-than-minimum (down to absolute minimum of 125) with a one-time charge of $50.00 additional. I have this LTM set-up as a separate product "Plastic colors - Less than minimum". I would like to be able to switch the customers over to this LTM product if they order under 250 from the main product page. However, I don't want this switch of they are still selecting colors to meet the 250 minimum.
The ideal solution would be to be able to select quantities of each color all on one page to meet the 250 minimum, then if they "Add to Cart" and it's under the minimum they would be shunted to the LTM page.
Any ideas?
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
Big_Woody
Thanks for taking the time to ask.
What i was trying to do is this.
I sell skateboard parts. The deck is the wooden top piece (sorry if you know dont want to sound like your stupid) well they have griptape fitted tot he top. When we sell one we give free griptae with each order, cheap stuff but free all the same.
What i want to do is have a drop down selection giving the user chance to upgrade there tape at a minimal cost.
SO
Deck <Free Tape Loose
< Free Tape Fitted
< Upgrade Option 1 + £2.50 Fitted
< Upgrade Option 1 + £2.50 Loose
< Upgrade Option 2 +£3.00 Fitted
< Upgrade Option 2 + £3.00 Loose
Now if i use these options in a drop down menu "Stock by Attributes" wants a value for each option making 6 in total but i may only have 1 deck of that type in stock.
Want i need is a way of tell SBA that the option are 0 value does that make sense and is it possible ?
Cheers for taking the time to read this.
Hi Big_Woody
I may finally have an answer for you, though you will have to work out if it will work for you. Version 4.6 of Stock by Attribute allows you to decide for each individual product whether stock will be managed at product level or attribute level.
In the above case this would mean that you could have stock by attributes installed, but not create stock records for any of the attributes you listed above. This would mean that you would enter the product quantity for the deck as 1 and that's what would be used for calculating stock at checkout.
This does however, assume that you would always have tape available, but since you need tape for all your options, that doesn't seem unreasonable.
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
JimCrown
After reading through most of this thread, I'm thinking this may not be the solution I was looking for.
Here's the situation: We are silling motorcycle coasters (kick stand supports) that come in six colors. Customers can order various quantities of the colors to add together to equal our minimum quantity of 250. As I've currently set it up, they have to order each color separately and eventually it will come up to the minimum quantity. However, we also offer less-than-minimum (down to absolute minimum of 125) with a one-time charge of $50.00 additional. I have this LTM set-up as a separate product "Plastic colors - Less than minimum". I would like to be able to switch the customers over to this LTM product if they order under 250 from the main product page. However, I don't want this switch of they are still selecting colors to meet the 250 minimum.
The ideal solution would be to be able to select quantities of each color all on one page to meet the 250 minimum, then if they "Add to Cart" and it's under the minimum they would be shunted to the LTM page.
Any ideas?
This seems to be all about order quantities and very little about stock by attributes. I recommend a forum search on "extra cart actions".
-
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Sounds interesting ... where do i get this new version its not on the download page ?
thanks