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

display order custom fields anywhere

Started by kiwee, November 17, 2016, 12:30:48 PM

Previous topic - Next topic

kiwee

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 !


GJC Web Design

QuoteI have an order custom field

shopper field or custom field?

versions?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kiwee

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.

PRO


kiwee


GJC Web Design

Pro means write a standard joomla db query to select and display in your order templates etc
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

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.

jankoo

hi. whats the name of the plugin to have custom fields in order?
thank you