London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Disable or hide 'Tax Category' dropdown on specific Type. (v.11.8.3.0)

Vote:
 

Hi all!

I'm looking for a way to diverse from Epi standard behaviour in the Catalog. If content of a specific type, let's say 'Package', is created/edited I want to set a default tax value and hide or disable (grey out) the 'Tax Category' dropdown.

Is this possible? (I'm new to Epi so please be gentle smile)

Thx in advance!

#195970
Edited, Aug 14, 2018 14:23
Vote:
 

First of all - welcome. And don't worry, we aim to create a friendly and welcome community for anyone, newcomers or veterans. Not everyone is gentle, but the mods will ensure discussions are civilized and polite. 

For your question, I think you can add a new content type like this

[CatalogContentType(
GUID = "9568BD9F-FC9B-4004-A02C-5C0C90B68C43",
DisplayName = "Fashion Package",
MetaClassName = "FashionPackage",
Description = "Displays a package, which is comparable to an individual SKU because Package item must be purchased as a whole.")]
public class FashionPackage : PackageContent
{
[ScaffoldColumn(false)]
public override int? TaxCategoryId { get; set; }
}

And then create your packages with this new type. 

#195972
Aug 14, 2018 15:27
Vote:
 

Thank you very much sir! Worked like a charm!

#195977
Aug 14, 2018 16:20
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.