News:

Looking for documentation? Take a look on our wiki

Main Menu

Custom Fields Ordering

Started by porscha, February 11, 2016, 10:03:16 AM

Previous topic - Next topic

porscha

HI,
I've realized that the only way to order custom fields is to put them in a Parent fields type Custom Group. After that you have the option to order i save the order in custom fields, which are in this custom group. BUT when you change the order of these custom fields, their order in the product has not changed at all. Why? Imaging that you have 800 products. You decide to change the order of two of your custom fileds, go to custom group fields and save the order. And then you expoect in every one from these 800 products the order to be changed, but it's not. What are you goin to do then?
is this code has something in common if($customfield->parentOrderable==0){
                  if($product->virtuemart_product_id==$customfield->virtuemart_product_id){
                     $product->orderable = false;
                     $product->product_in_stock = $parentStock;
                  }
               }

Please enlighten me :)