Knowing where that mod came from, I would be surprised if it didn't work. So the problem is most likely in how the two mods interact. But there's a hitch there, since they don't appear to! However, product attribute grid does tweak the shopping cart directly, so it's possible that whatever it does upsets or passes data that isn't available to stock by attribute.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
I am having the same problem as above again
The cart owner is adding products and the table products_with_attributes_stock is showing that the stock_attributes column is being loaded with measurementID,quantityID where as the demo ones I put in where only being loaded with measurementID. None of the stock_by_attributes files have been modified from the original files, so I would have thought it should be working?
I have now fixed this so that Product Attribute Grid and Stock by Attributes work when the attribute grid is setup to use single attributes.
The file admin/products_with_attributes_stock.php needs this modification:
Original Code:
Fixed Code:PHP Code:foreach($product_attributes as $option_name => $options)
{
echo '<p><strong>'.$option_name.': </strong>';
echo zen_draw_pull_down_menu('attributes[]',$options).'</p>'."\n";
}
PHP Code:foreach($product_attributes as $option_name => $options)
{
// if the option isn't the attribute grids dummy quantity attribute
if($option_name != 'Quantity')
{
echo '<p><strong>'.$option_name.': </strong>';
echo zen_draw_pull_down_menu('attributes[]',$options).'</p>'."\n";
}
}
Hi all
I need a little help to install SBA 4.7. I'm reading installation instructions and I'm using ZC 1.3.8(a).
"Prepare the package for upload to your server by renaming the following folders to match your template name: includes/modules/YOUR_TEMPLATE and includes/templates/YOUR_TEMPLATE."
In SBA 4.7 package I can find and rename includes/templates/YOUR_TEMPLATE but there isn't includes/modules/YOUR_TEMPLATE
Incorrect instruction, or... ?
Left over from older versions. Changes have been made to minimise over-riding of files and over several releases, the number of files over-written and over-ridden has been reduced. The module file for which this instruction was originally written no longer needs to be changed, so you can safely ignore that part of the instructions.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Wow. I am sooooooo glad you posted your solution. I had the exact same problem and your fix worked, only the "echo '<p><strong>'.$option_name"... part was further under the foreach loop than I expected. After inserting your IF statement, the stock_attribute column stopped displaying the ",quantityID" and then stock started working correctly again.
The weird thing is I could have sworn the two modules (Attributes by stock and product grid) were working fine together. I have no idea what would have stopped them from working though, so I'll assume I just overlooked the issue in the beginning.
I just download this mod from the Zen-Cart site.
On the admin/products_with_attributes_stock.php and the admin/functions/extra_functions/functions_qty_attribute.php files I had to fix the table calls. Instead of calling the defined tables, the scrips were calling the actual table names.
Stock Attribute v3.01.1 is the version that was on Free Add On page. Obviously, this needs to be updated.
[FONT=Arial]Hi all,
[/FONT] [FONT=Arial]I have installed the products with attributes stock mod on my fresh ZenCart install. When i try to select it form the Catalog Menu i get the follwing errors...[/FONT]
[FONT=Arial][/FONT]
[FONT=Arial][/FONT]
[FONT=Arial]*Warning*: main(includes/classes/products_with_attributes_stock.php) [function.main (http://nutmegsjewellery.co.uk/newsto.../function.main)]: failed to open stream: No such file or directory in */home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php* on line *12*[/FONT]
[FONT=Arial][/FONT]
[FONT=Arial]*Warning*: main(includes/classes/products_with_attributes_stock.php) [function.main (http://nutmegsjewellery.co.uk/newsto.../function.main)]: failed to open stream: No such file or directory in */home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php* on line *12*[/FONT]
[FONT=Arial][/FONT]
[FONT=Arial]*Warning*: main(includes/classes/products_with_attributes_stock.php) [function.main (http://nutmegsjewellery.co.uk/newsto.../function.main)]: failed to open stream: No such file or directory in */home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php* on line *12*[/FONT]
[FONT=Arial][/FONT]
[FONT=Arial]*Fatal error*: main() [function.require (http://nutmegsjewellery.co.uk/newsto...nction.require)]: Failed opening required 'includes/classes/products_with_attributes_stock.php' (include_path='.:/usr/share/pear') in */home/sites/nutmegsjewellery.co.uk/public_html/newstore/admin/products_with_attributes_stock.php* on line *12[/FONT]
[FONT=Arial]*[/FONT]
[FONT=Arial]I followed the instructions ot the letter and I am using the latest release of the mod and a fresh install of the latest version of Zen Cart
[/FONT]
It could be that the user account used to deliver web pages to users on your server (typically IUSR_xxxxx on Windows) does not have read permissions to the folder/file
public_html/newstore/admin/products_with_attributes_stock.php
Login in to your server/control panel and check the permissions on this file/folder.
Kev