VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: mailblade on October 09, 2017, 17:01:55 PM

Title: Custom field in cart?
Post by: mailblade 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
Title: Re: Custom field in cart?
Post by: GJC Web Design on October 09, 2017, 23:52:28 PM
echo $this->customfieldsModel->CustomsFieldCartDisplay ($prow);

is that products custom field/s
Title: Re: Custom field in cart?
Post by: mailblade 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?