Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Here is my question has anyone developed a script that will automatically disable the attribute (such as Size 4) when the item is sold out?
So example: Size 2 (+4)
Size 4 (+2)
Size 6 (sold out) or remove the attribute all together
Size 8 (+2)
~Renee
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Ok, I know this has already been covered in this thread somewhere, but I can't read through 50 pages to find it.
I am having trouble installing the mod. I think the problem comes from the renaming files portion or possibly the uploading. So, I will ask about both.
In the instructions is says to rename 2 files. Now, the second one was easy the name of the file was YOUR_CART just like in the instructions. The first was not. It says to rename includes/modules/YOUR_TEMPLATE but the file path is includes/modules/pages. Why would I rename "pages" which is in my directory to the name of my template (which is custom, btw)?
This does not make sense to me.
Second, I am using a net Ftp to make changes. Can anyone do a basic run through of the best way to upload this mod?
Thank you
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
wonderfull contribution but there is one problem....I cant delete a variant
So when i use multiple options the stock will be count double...
How can i delete a variant?
*Problem solved*
In english the product variant can be deleted. in my default language not...so i will check my default language
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
ldop
Fatal error: Cannot redeclare class order in /home/www/slune.eu/subdomeny/www/includes/classes/order.php on line 1069
Can you give a hint where can be the problem?
Either you, or your FTP program have left a backup copy of the orders class alongside your amended version. There are a number of posts earlier in the thread that explain the problems that this can cause.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
naturalolive
Hi there,
I too, am having a problem. I am running 1.3.6 and have just added a product with 6 attribute variables.
http://www.naturalpod.com/shop/index...roducts_id=926
Each attribute has approx 6-7 options. Does someone know a fast way to set the quantity to say 999 for each variable. The amount of combinations/permutations to do it one by one would take forever.
I'm puzzled. If you're going to set the stock to a high value for all variants, I can't see any benefit in setting it at all at attribute level. Why not just put a high value on the product and "manage" stock at product level.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
Redcinamn
Here is my question has anyone developed a script that will automatically disable the attribute (such as Size 4) when the item is sold out?
I doubt it. This would be of limited use beyond the case where every product had just one attribute, and heaps more complicated to generalize to multiple attributes per product. This is the sort of thing that would normally be written for a specific situation where the limitations of what is needed are well-defined and understood.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
raimond
*Problem solved*
well done. :thumbsup:
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Hiya,
First of all this looks like a great product, thanks for developing and supporting it!
My Query:
Is it possible for customised attributes to be automatically applied to all products in a specific category?
For example
I have a category of hats
within this category every product i create will have a custom attribute of size with a drop down choice from 53 to 60.
I will also have a second attribute setup for hat colour with options red green blue etc...
All hat manufacturers will use this size scheme and colour scheme going forward so I will need to copy these attributes to any product i create in a certain cattegory.
Is there a way to make it so that when you add a new product within the hats category, that the two attributes above are automatically added to them?
I can then go in and ammend stock for each size/colour combination after bulk adding a number of different products under the hat category.
I have found the manual way to copy attributes to already created products via category.. but as I am giving end users a cut down admin interface to add their own products, i didnt want them to have this ability for obvious reasons of them accidentally applying attributes in bulk to all their stock...
Thanks
Martin
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
megadood
Is it possible for customised attributes to be automatically applied to all products in a specific category?
You're giving this mod way too much credit. All it does is manage stock for product variants. It has no involvement in creating products and adding attributes to them.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I am trying to do my first custom adon and when I import in the mysql file into phpmyadmin it is naming the table using the database name (c-Panel), not just zen_ and therefore I am getting this error.
1146 Table 'sabrina_zc1.zen_products_with_attributes_stock' doesn't exist
in:
[select * from zen_products_with_attributes_stock where products_id="7"]
I have no idea how to edit the sql so that it does not use the database name.
This is the table for the database.
CREATE TABLE products_with_attributes_stock (
`stock_id` INT NOT NULL AUTO_INCREMENT ,
`products_id` INT NOT NULL ,
`stock_attributes` VARCHAR( 255 ) NOT NULL ,
`quantity` INT NOT NULL ,
PRIMARY KEY ( `stock_id` )
)
;
INSERT INTO configuration (configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order,
last_modified, date_added, use_function, set_function)
VALUES ('Show Attributes Stock', 'PRODUCT_STOCK_ATTRIBUTE_SHOW', 'true',
'Show the stock of items that have stock set by attributes?', '1', '500', NULL,
now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
UPDATE configuration SET configuration_value = "false" WHERE configuration_key = "STOCK_ALLOW_CHECKOUT";
Any input would be appreciated, thanks.