Hi,
I have an order custom field (so display in "my order" detail for each products).
I need to display that custom field in a custom page (full PHP).
I thought about using :
$item['virtuemart_product_id']=$infoss->virtuemart_product_id;
$item['product_attribute']=$infoss->product_attribute;
if(!class_exists('VirtueMartModelCustomfields')) {
require(VMPATH_ADMIN.DS.'models'.DS.'customfields.php');
}
$product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE');
echo $product_attribute;
But it doesn't work. Maybe I have to add more info in the $item ? Or maybe it is just impossible to use the VirtueMartModelCustomfields::CustomsFieldOrderDisplay anywhere else than in the order page ?
I'd appreciate any clue :)
Thanks !
QuoteI have an order custom field
shopper field or custom field?
versions?
Custom field (it is a plugin). It can be displayed on both product detail and order view; but I display it only on the order view.
why not just select if from DB>?
Quote from: PRO on November 17, 2016, 14:47:37 PM
why not just select if from DB>?
Why not, but how to do that ?
Pro means write a standard joomla db query to select and display in your order templates etc
Any customfield in cart should be displayed in order too. SO perhaps your code is not complete.
Check textinput in /plugins/vmcustom how it work.
hi. whats the name of the plugin to have custom fields in order?
thank you