I'd like to hide certain unused fields from the store product details field on the publish page. Is this possible?

Have a product channel with a store product details tag and like to hide the "min. order quantity" field as it is irrelevant in this particular situation and it only confuses the user.

  • Are you talking about the control panel, or in a Safecracker form? Either way, your only option would be to add some javascript or CSS to hide the fields you don't need. Jan 15 '13 at 18:34
  • I'm talking about the control panel. Jan 16 '13 at 7:20

There's no built in way to customize the look of the Store product details field in the control panel entry screen.

One option you have if you need to do this is create an extension which uses the cp_css_end hook to add your own CSS to the control panel, which hides the fields you don't need.

  • Adrian, has this changed since Jan'13? I am building a site with download ONLY products - width/length/height/weight and even handling surcharge & the free shipping checkbox are all irrelevant.
    – Nutmeg
    Jul 5 '14 at 0:55

Inside the channel:entries tag you can write conditionals based on the {channel_id} or {channel_short_name}. For example:

{if channel_id != "10"}SHOW "min. order quantity" field{/if}


{if channel_short_name != "big_products" OR channel_short_name != "small_products"}SHOW "min. order quantity" field{/if}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.