Author Topic: No "notify me" - out of stock with Child variant  (Read 9259 times)

ifs-net

  • Jr. Member
  • **
  • Posts: 76
Re: No "notify me" - out of stock with Child variant
« Reply #30 on: August 07, 2016, 23:57:55 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10530
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: No "notify me" - out of stock with Child variant
« Reply #31 on: August 08, 2016, 09:34:45 am »
indeed - would need to be replaced every up grade - but pretty sure I told Max about this so maybe fixed in 3.0.10

Code: [Select]
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10530
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: No "notify me" - out of stock with Child variant
« Reply #32 on: August 08, 2016, 09:36:15 am »
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

  • Jr. Member
  • **
  • Posts: 76
Re: No "notify me" - out of stock with Child variant
« Reply #33 on: August 08, 2016, 21:22:24 pm »
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 ?