<div dir="ltr"><div class="gmail_extra"><span style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Sounds interesting, looking forward to see a demo! When will the demo be available? </span><div style="font-size:12.8000001907349px"><br></div></span><div style="font-size:12.8000001907349px"><span>A couple of questions...<div>- What do you mean with quantity? Isn't that a feature of vtiger already?</div><div>- I did the price calculations with a workflow and a custom function, did you do it any other way?</div><div>- What do you mean by notifications of product bundles?</div><div>- Can you tell me how you got the "Select Product" button back on the UI in products that already belong to a bundle? Would be great if you could share what you achieved.</div><div><br></div><div>Best regards</div></span><div>Tim<br><div class="gmail_extra"><br><div class="gmail_quote"><span>2015-08-25 22:35 GMT+08:00 Matteo Baranzoni <span dir="ltr"><<a href="mailto:info@greenbitweb.com" target="_blank">info@greenbitweb.com</a>></span>:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><div dir="ltr">we extend bundle with some extra features:<div>- quantity</div><div>- price calculation </div><div>- nidification bundle of product bundle.</div><div>- popup for bundle product </div><div> </div><div>Demo will be ready in few days.</div><div><br></div></div></span><div><div class="gmail_extra"><br><div class="gmail_quote"><span>2015-08-25 11:55 GMT+02:00 Preexo <span dir="ltr"><<a href="mailto:preexo@googlemail.com" target="_blank">preexo@googlemail.com</a>></span>:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px">We need bundles of bundles. Anyone got an idea how to activate the "Select Product" button in the bundle tab of a product that is already part of bundle? </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px"><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px">I did some changes to achieve the bundles of bundles: </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px">- include\utils\EditViewUtils.php replace line 215-234 with this: </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px"></span><pre style="white-space:pre-wrap;color:rgb(0,0,0)">            $subprodid_str='';
                $subprodname_str='';
                $subProductArray = array();
                $subProductPrepArray = array();
                getSubProducts($i, $focus->id, $focus->mode, $seid, $subProductPrepArray, 0);
                $j = 0;
                foreach($subProductPrepArray as $subproduct){
                    $sprod_id = $subproduct[0];
                    $pArray['name'] = getProductName($sprod_id);
                    $pArray['level'] = str_repeat("-", $subproduct[1]);
                    $subProductArray[] = $pArray;
                        $sprod_name = $pArray['name'];
                        $str_sep = "";
                        if($j>0){
                            $str_sep = ":";
                        }
                        if($subproduct[1] == 1){
                            $subprodid_str .= $str_sep.$sprod_id;
                        }
                        if(isset($sprod_name)){
                                $subprodname_str .= $str_sep." ".str_repeat("-", $subproduct[1])." ".$sprod_name;
                        }
                        $j++;
                }
</pre><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px"><span><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px">- include\utils\EditViewUtils.php add this function to code </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px"></span><pre style="white-space:pre-wrap;color:rgb(0,0,0)">function getSubProducts($rowConstant, $parentId, $focusMode, $seId, &$subProductArray, $level){
    global $adb;
    if(empty($focusMode) && $seId!=''){
        $sub_prod_query = $adb->pquery("SELECT crmid as prod_id from vtiger_seproductsrel WHERE productid=? AND setype='Products'",array($parentId));
    } else {
        $sub_prod_query = $adb->pquery("SELECT productid as prod_id from vtiger_inventorysubproductrel WHERE id=? AND sequence_no=?",array($parentId,$rowConstant));
    }
    $subProductCount = $adb->num_rows($sub_prod_query);
    if($subProductCount>0){
        $level++;
        $focusMode = array();
        $seId = '1';
        for($j=0;$j<$subProductCount;$j++){
            $sprod_id = $adb->query_result($sub_prod_query,$j,'prod_id');
            $subsub_prod_query = $adb->pquery("SELECT crmid as prod_id from vtiger_seproductsrel WHERE productid=? AND setype='Products'",array($sprod_id));
            $subsubProductCount = $adb->num_rows($subsub_prod_query);
            if($subsubProductCount>0){
                getSubProducts($rowConstant, $sprod_id, $focusMode, $seId, $subProductArray, $level);
            }
            $subProductArray[] = array($sprod_id,$level);
        }
    }
}
</pre><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px"><span><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px">- layouts\vlayout\modules\Inventory\LineItemsDetail.tpl replace line 63 - 65 with this: </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px"></span><pre style="white-space:pre-wrap;color:rgb(0,0,0)">{if !empty($SUB_PRODUCT_NAME.name)}
  {$SUB_PRODUCT_NAME.level} &nbsp; <em>{$SUB_PRODUCT_NAME.name}</em>
{/if}
</pre><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px"><span><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px">Now I just need to activate the "Select Product" button in the bundle tab all the time and then I'm pretty much done, any idea on this would be so helpful! </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.4399995803833px">Thanks in advance, best regards</span><br><br>--<br>View this message in context: <a href="http://vtiger-crm.2324883.n4.nabble.com/bundles-of-bundles-customizations-tp17160.html" rel="noreferrer" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/bundles-of-bundles-customizations-tp17160.html</a><br>Sent from the vtigercrm-developers mailing list archive at Nabble.com.<br>_______________________________________________<br><a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br></span></blockquote></div><br></div></div><br>_______________________________________________<br><a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div></div></div></div></div></div>