Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
The array in the ORIGINAL file looks like this:
PHP Code:
// echo $currencies->rateAdjusted($tmp);
$productArray[$i] = array('attributeHiddenField'=>$attributeHiddenField,
'flagStockCheck'=>$flagStockCheck,
'flagShowFixedQuantity'=>$showFixedQuantity,
'linkProductsImage'=>$linkProductsImage,
'linkProductsName'=>$linkProductsName,
'productsImage'=>$productsImage,
'productsName'=>$productsName,
'showFixedQuantity'=>$showFixedQuantity,
'showFixedQuantityAmount'=>$showFixedQuantityAmount,
'showMinUnits'=>$showMinUnits,
'quantityField'=>$quantityField,
'buttonUpdate'=>$buttonUpdate,
'productsPrice'=>$productsPriceTotal,
'productsPriceEach'=>$productsPriceEach,
'rowClass'=>$rowClass,
'buttonDelete'=>$buttonDelete,
'checkBoxDelete'=>$checkBoxDelete,
'id'=>$products[$i]['id'],
'attributes'=>$attrArray);
} // end FOR loop
Just ADD the element to the existing list: (see second listing in the code below...)
PHP Code:
// echo $currencies->rateAdjusted($tmp);
$productArray[$i] = array('attributeHiddenField'=>$attributeHiddenField,
'stockAvailable'=>$stockAvailable,
'flagStockCheck'=>$flagStockCheck,
'flagShowFixedQuantity'=>$showFixedQuantity,
'linkProductsImage'=>$linkProductsImage,
'linkProductsName'=>$linkProductsName,
'productsImage'=>$productsImage,
'productsName'=>$productsName,
'showFixedQuantity'=>$showFixedQuantity,
'showFixedQuantityAmount'=>$showFixedQuantityAmount,
'showMinUnits'=>$showMinUnits,
'quantityField'=>$quantityField,
'buttonUpdate'=>$buttonUpdate,
'productsPrice'=>$productsPriceTotal,
'productsPriceEach'=>$productsPriceEach,
'rowClass'=>$rowClass,
'buttonDelete'=>$buttonDelete,
'checkBoxDelete'=>$checkBoxDelete,
'id'=>$products[$i]['id'],
'attributes'=>$attrArray);
} // end FOR loop
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Thanks for the clarification (and the code.. :smile:)
Quote:
Originally Posted by
schoolboy
The array in the ORIGINAL file looks like this:
PHP Code:
// echo $currencies->rateAdjusted($tmp);
$productArray[$i] = array('attributeHiddenField'=>$attributeHiddenField,
'flagStockCheck'=>$flagStockCheck,
'flagShowFixedQuantity'=>$showFixedQuantity,
'linkProductsImage'=>$linkProductsImage,
'linkProductsName'=>$linkProductsName,
'productsImage'=>$productsImage,
'productsName'=>$productsName,
'showFixedQuantity'=>$showFixedQuantity,
'showFixedQuantityAmount'=>$showFixedQuantityAmount,
'showMinUnits'=>$showMinUnits,
'quantityField'=>$quantityField,
'buttonUpdate'=>$buttonUpdate,
'productsPrice'=>$productsPriceTotal,
'productsPriceEach'=>$productsPriceEach,
'rowClass'=>$rowClass,
'buttonDelete'=>$buttonDelete,
'checkBoxDelete'=>$checkBoxDelete,
'id'=>$products[$i]['id'],
'attributes'=>$attrArray);
} // end FOR loop
Just ADD the element to the existing list: (see second listing in the code below...)
PHP Code:
// echo $currencies->rateAdjusted($tmp);
$productArray[$i] = array('attributeHiddenField'=>$attributeHiddenField,
'stockAvailable'=>$stockAvailable,
'flagStockCheck'=>$flagStockCheck,
'flagShowFixedQuantity'=>$showFixedQuantity,
'linkProductsImage'=>$linkProductsImage,
'linkProductsName'=>$linkProductsName,
'productsImage'=>$productsImage,
'productsName'=>$productsName,
'showFixedQuantity'=>$showFixedQuantity,
'showFixedQuantityAmount'=>$showFixedQuantityAmount,
'showMinUnits'=>$showMinUnits,
'quantityField'=>$quantityField,
'buttonUpdate'=>$buttonUpdate,
'productsPrice'=>$productsPriceTotal,
'productsPriceEach'=>$productsPriceEach,
'rowClass'=>$rowClass,
'buttonDelete'=>$buttonDelete,
'checkBoxDelete'=>$checkBoxDelete,
'id'=>$products[$i]['id'],
'attributes'=>$attrArray);
} // end FOR loop
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Hi I have downloaded the files and unzipped etc but there is no
includes/modules/YOUR_TEMPLATE
instead there is only
includes/modules/pages
I have gone ahead and renamed this to estorenow and uploaded admin and includes to the root of my install but nothing seems to have happened. I've checked under catalog and there's nothing new...
Am I doing something wrong?
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
luke_pickering
Hi I have downloaded the files and unzipped etc but there is no
includes/modules/YOUR_TEMPLATE
instead there is only
includes/modules/pages
I have gone ahead and renamed this to estorenow and uploaded admin and includes to the root of my install but nothing seems to have happened. I've checked under catalog and there's nothing new...
Am I doing something wrong?
You should have an includes/modules/(your template name). In my case it's a folder called template_default.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
ChrisD24
You should have an includes/modules/(your template name). In my case it's a folder called template_default.
And you NEVER want to put ANY module files into or modify ANY files in the default_template folder.. Use a proper template override.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
DivaVocals
And you NEVER want to put ANY module files into or modify ANY files in the default_template folder.. Use a proper template override.
Why's that, because of updates?
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
ChrisD24
Why's that, because of updates?
Yes.. that is the purpose of the overrides system.. You make your changes in the override file. You NEVER modify any of the default_templates files.. There are a number of EXCELLENT tutorials in the Zen Cart FAQs which explain the overrides process..
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Hi,
I am very new to zen-cart (my store isn't finished yet) I have the latest version of zen cart and my host is justhost.com (not sure if that matters but since the cart is installed on there and not on my computer figured I'd mention it.) Anyhow I downloaded this mod (current version), did the sql patch and then from there I am completely lost!! I read the read me and it makes no sense. I don't have an option showing up in admin Catalog->Products with Attributes Stock so what am I doing wrong? PLEASE HELP! my site is balticcreations.net if that helps any? Thanks! Liana
Oh and I should mention what I am wanting to do is add quantities to colors...
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I would like some guidance with a attribute area. We have pants in various sizes and that have a velcro section and they can choose one of two patches to go with the pants. I want to have stock for the pants sizes ONLY not the patches as the patches are not dependent on the the pants size.
This issue is basically a "gift wrap" issue like discussed on this topic in 2006 and also in the archive http://www.zen-cart.com/forum/showth...=25987&page=21
But my need is I would like to put this flag of products_attributes_checkstock as indicated in this archive topic but I would like to know what I need to exactly do so I don't mess up my store.
Thanks
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
supersnow
I would like some guidance with a attribute area. We have pants in various sizes and that have a velcro section and they can choose one of two patches to go with the pants. I want to have stock for the pants sizes ONLY not the patches as the patches are not dependent on the the pants size.
This issue is basically a "gift wrap" issue like discussed on this topic in 2006 and also in the archive
http://www.zen-cart.com/forum/showth...=25987&page=21
But my need is I would like to put this flag of products_attributes_checkstock as indicated in this archive topic but I would like to know what I need to exactly do so I don't mess up my store.
Thanks
Does anyone have any idea? I know I am not the only one concerned about this. I just want to know the steps and the files I need to edit etc. Please help!