VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: yuewupostbox on December 14, 2013, 19:05:36 PM

Title: Product Custom Fields on Add to Cart Popup
Post by: yuewupostbox on December 14, 2013, 19:05:36 PM
Hello there,

I am now facing an issue about displaying product custom fields on add to cart popup,

does anyone have solution or approaches about this?

Thanks! :)
Title: Re: Product Custom Fields on Add to Cart Popup
Post by: balai on December 16, 2013, 10:17:43 AM
Quote from: yuewupostbox on December 14, 2013, 19:05:36 PM
I am now facing an issue about displaying product custom fields on add to cart popup,

What you mean?
Title: Re: Product Custom Fields on Add to Cart Popup
Post by: yuewupostbox on December 16, 2013, 15:18:53 PM
Hello balai,

As i have enabled the feature "Display modal popup upon 'Add to cart'" from Configuration > Checkout,

when i am adding an item to cart (the item have custom fields, let say color and i have selected RED), it will pop up a white box with the item name with quantity, continue shopping & checkout button, but it's not with the custom fields with RED color.

In file level, the filename should be padded.php.

Do you have any ideas? ;)
Title: Re: Product Custom Fields on Add to Cart Popup
Post by: yuewupostbox on December 16, 2013, 20:00:02 PM
Hi,

I have tried to uncomment the following lines from cart.php but it's empty, any ideas?

$product -> customfields = empty($tmpProduct -> customfields) ? array() : $tmpProduct->customfields;
Title: Re: Product Custom Fields on Add to Cart Popup
Post by: balai on December 17, 2013, 10:01:46 AM
I am not sure if the custom field should be displayed there.

Is it displayed in your cart page?
Title: Re: Product Custom Fields on Add to Cart Popup
Post by: yuewupostbox on December 17, 2013, 10:17:43 AM
Hello balai,

yes , cart is showing the correct custom fields.