News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

No "notify me" - out of stock with Child variant

Started by Daniel Sjöstrand, March 13, 2015, 00:35:39 AM

Previous topic - Next topic

ifs-net

Hello,

I have a similar problem and need help pls.

I have textile items with sizes like; S(parent item), M(child item), L(child item)

When the parent is out of stock but the children are still existing, at the category view I am having out of stock (notify me) button.

How can I fix that pls ?


What I want is to have notify me or out of stock only ifs all sizes are out of stock.

Milbo

Quote from: GJC Web Design on May 03, 2015, 23:05:59 PM
indeed - would need to be replaced every up grade - but pretty sure I told Max about this so maybe fixed in 3.0.10


foreach ($attribs as $k=> $v) {
if (strpos($k, "\0")===0) continue;
if ('product_in_stock' != $k and 'product_ordered' != $k) {// Do not copy parent stock into child
if (strpos ($k, '_') !== 0 and empty($child->$k)) {
$child->$k = $v;
// vmdebug($child->product_parent_id.' $child->$k',$child->$k);
}
}
}


I think, I fixed it this way, right?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

#32
Quote from: ifs-net on August 07, 2016, 23:57:55 PM
I have textile items with sizes like; S(parent item), M(child item), L(child item)

When the parent is out of stock but the children are still existing, at the category view I am having out of stock (notify me) button.

We need a screenshot of your stock config, else we cannot help. Try also always the standard template. the virtuemart version, joomla version, a link to the page, and so on.

Please join us here http://forum.virtuemart.net/index.php?topic=135049.0
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ifs-net

Hi Milbo,
I can send you my login details if needed.
I have the same problem with standart template too.

Do you want a backend screen shot or front end pls ?