Author Topic: Custom field in cart?  (Read 202 times)

mailblade

  • Jr. Member
  • **
  • Posts: 56
  • A beginner
Custom field in cart?
« on: October 09, 2017, 17:01:55 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7655
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Custom field in cart?
« Reply #1 on: October 09, 2017, 23:52:28 pm »
echo $this->customfieldsModel->CustomsFieldCartDisplay ($prow);

is that products custom field/s
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

mailblade

  • Jr. Member
  • **
  • Posts: 56
  • A beginner
Re: Custom field in cart?
« Reply #2 on: October 10, 2017, 08:01:03 am »
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?