Display Conditions: Showing Giftship’s Options Only on Certain Products or Collections
Depending on your needs, you can show or hide Giftship’s features based on conditions you define. This can be accomplished in a few ways.
Jump to content:
- Use the product options feature
- Hiding Giftship’s standard message, datepicker, and upsell inputs
- Hide features based on cart contents
Add Display Conditions Using Giftship’s Product Options Feature
With Giftship’s Product Options tool, individual feature configurations can be set up to display only on certain products or collections.
Using the Display Options tool within Product Options, this can all be set up within the app. Please see this video for a quick walkthrough.
Conditionally Display Giftship’s Standard Inputs
If you need to manually ‘hide’ options, this can be quite easily accomplished with a small snippet of Liquid and CSS in your theme. For example, if you have the product type of all of your gifts set to “Gift Product”, you can add the following to your theme.liquid file right before the closing
Hide features on your cart page based on cart contents
If you would like to hide certain features on your cart page, based on the contents of your cart, similar concepts to the above apply, which are outlined in the following tutorials: