VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: dmb on September 22, 2015, 14:02:05 PM

Title: Prevent custom shopper fields from showing on Billing details ?
Post by: dmb on September 22, 2015, 14:02:05 PM
VM 3.0.9

I have some custom shopper fields (e.g. "Send me marketing ?" checkbox) that I want people to fill in at registration or account maintenance but not to display on orders/billing details/etc.

I've set them to Required=No, Published=Yes, Show in cart form=No, Show in shipment form=No but they still appear in the cart and on the order information.

Any easy way (configuration rather than code) to stop these displaying, or is this a bug ?

Thanks,

David
Title: Re: Prevent custom shopper fields from showing on Billing details ?
Post by: Milbo on September 24, 2015, 10:33:38 AM
It is not a bug, it is a missing configuration option. We just need another column "show on invoice".

So long you must do an override and use something like

if ($field['name']=='myfield') continue;
Title: Re: Prevent custom shopper fields from showing on Billing details ?
Post by: dmb on September 24, 2015, 17:20:21 PM
Hmm, I must respectfully disagree :)

When the option "Show in cart form" is set to No, I would expect the field not to be shown in the cart form :) This column on the custom shopper fields page does not appear to do anything right now.

I wouldn't want it on the invoice either, but that's a different issue.

Thanks anyway,

David
Title: Re: Prevent custom shopper fields from showing on Billing details ?
Post by: Milbo on September 24, 2015, 21:59:52 PM
in other cases it is vice versa. If you write a patch, I take it, not hard to write. I think it is the only solution to solve it for any body