News:

Support the VirtueMart project and become a member

Main Menu

Custom field in cart?

Started by mailblade, October 09, 2017, 17:01:55 PM

Previous topic - Next topic

mailblade

Hello.

Is there any way you can add one custom field value to the cart for the product in the cart?

So then the cart will be:

Description - SKU - Custom Field -  Price - Quantity

I reckon you'd have to add the $product variable, but how do you assign that in the "default_pricelist.php" file? Currently it has the $prow and $pkey for the products in the cart.

I hope someone can help me.

Thanks

GJC Web Design

echo $this->customfieldsModel->CustomsFieldCartDisplay ($prow);

is that products custom field/s
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

mailblade

Thanks for the help GJC.

How can I add only one customfield ID? For example if customfield_ID is "5".

Do I use a WHERE clause?