Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Using 1.3.8a and latest SbA and have a small error.
Admin > catalog > products with attributes stock
Click > 'Add quantity for product variant'
Size (only attribute) - 'All'
Quantity - Any number
Hit 'Submit'
I then get this error:
att: 41|42|43|44|45|46
Warning: Cannot modify header information - headers already sent by (output started at /home/path/to/products_with_attributes_stock.php:193) in /home/path/to/admin/includes/functions/general.php on line 21
Line 193 - echo "att: $attributes<bR>\n";
Line 21 - header('Location: ' . $url);
I thought maybe the R in bR was wrong (line break?) but changing it made no difference.
Thing is, although this error occurs hitting back button and accessing 'Admin > catalog > products with attributes stock' again shows the options updated correctly.
Other than that everything works perfect.
Any suggestions to get rid of the error before I show to the client?
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Just as an update ...
I think the error might be caused by the fact that I have an attribute:
'Size: Select Size:' <- This attribute is read only but still gets assigned a stock level.
Just a thought.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I just want to say how good i have found this mod but only problem i have is updating the stock levels.
I have seen question about not being able to update than quantity a time.
I am now currently writing my first mod to be able to mass update quantity and stock attributes.
I have not writing a mod before so am asking for best advice how to go about it.
I know that this feature will be incorporated in new version of Zencart but I need this now as I sell stock more that 1 venue and have to update stock regularly.
Any help and advice would appreciated.
Once done I will gladly upload for all to use.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
jdimaging
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"]
It's absolutely normal for the database name to be used as well as the table name, otherwise your MySQL server would be unable to differentiate between Zen Carts on the same server.
The problem would be either than your configure files point to a non-existent database (which seems unlikely) or that you didn't edit your database prefix into the installation SQL before running it as per the installation instructions, so that the table has been created with the wrong name. You will be able to see and correct this via phpMyAdmin.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
bigbadboy
Using 1.3.8a and latest SbA and have a small error.
Admin > catalog > products with attributes stock
Click > 'Add quantity for product variant'
Size (only attribute) - 'All'
Quantity - Any number
Hit 'Submit'
I then get this error:
att: 41|42|43|44|45|46
Warning: Cannot modify header information - headers already sent by (output started at /home/path/to/products_with_attributes_stock.php:193) in /home/path/to/admin/includes/functions/general.php on line 21
Answered a little earlier in this thread.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
thanks kuroi I missed that reply.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
bigbadboy
thanks kuroi I missed that reply.
Easy to do given the length of the thread. I find that searching via Google on error messages is a quick way of cutting through the tons of info to finding answers when there are error messages.
The trick is to identify information that is specific to the problem, but not your setup. In this case the following search string would take you there very quickly
Quote:
site:zen-cart.com products_with_attributes_stock.php:193
Re: Stock by Attribute v4.0: Hide Out-of-Stock Items
I was hoping there was a simple solution to what I hope is a simple problem.
- "Stock by Attribute" module is installed and working fine on a Zen-Cart clothing store site.
- We'd like it if a products out-of-stock options were not displayed on the product page -- we'd like the customer to not see a temporarily out of stock option listed.
I believe the option stock check would happen during the option array formation.
Any suggestions would be very appreciated! :smile:
Re: Stock by Attribute v4.0: Hide Out-of-Stock Items
Quote:
Originally Posted by
InternetKev
[*]We'd like it if a products out-of-stock options were not displayed on the product page -- we'd like the customer to not see a temporarily out of stock option listed.
What settings do you have on your Admin > Configuration > Stock page?
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Thanks for a great mod!
I'm using drop downs for my attributes, in this case 4 options for different coloured card.
If one particular colour of card is out of stock is it possible to display this next to the attribute in the drop down menu, eg:
Please Select Your Colour
Red
Orange (OUT OF STOCK)
Green
Pink
Thanks in advance!
Dunc