Title: Hide Variations
Last modified: May 16, 2021

---

# Hide Variations

 *  Resolved [liulausemaus95](https://wordpress.org/support/users/liulausemaus95/)
 * (@liulausemaus95)
 * [5 years ago](https://wordpress.org/support/topic/hide-variations/)
 * Hello everybody..
    I have a little question. Using Woocommerce .. I imported 
   all my articles via WP All Import. Sometimes I offer products that can be bought
   in packs of 1, and sometimes also in packs of 10 or 20… Now my problem is that
   for products that I only sell as a pack of 1, for example, but in different colors,
   I also have to select the 1 pack as a variant in the frontend. At first it didn’t
   bother me, but now it does.. Sure, the products were imported that way, that’s
   why i have this issue… It would of course be a lot of work to delete the “1-Pack”
   Attribute for every Product, i dont need it..
 * [⌊Useless⌉⌊Useless⌉[<br />[картинки png скачать](https://imgbb.com/)<br />
 * Is there a snippet or something similar that hides the variant if there is no
   other property to choose anyway?
    Or can I somehow get this resolved by importing
   again without destroying my products?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhide-variations%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years ago](https://wordpress.org/support/topic/hide-variations/#post-14477659)
 * Hi [@liulausemaus95](https://wordpress.org/support/users/liulausemaus95/),
 * Do you have control over your import file? If so, you should add a new column
   to it: “Pack In Variations”. This column should contain “yes” if there are multiple
   pack options for the product, or “no” if there’s only 1 pack selection. You’ll
   use the column in the _Attributes › Advanced › In Variations › Set with XPath_
   field: [https://d.pr/i/d5MWB7](https://d.pr/i/d5MWB7).
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/hide-variations/#post-14572259)
 * Hey [@liulausemaus95](https://wordpress.org/support/users/liulausemaus95/),
 * I am going to mark this thread as resolved since it’s been inactive. Please open
   a new topic if you still have questions.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hide Variations’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-import/assets/icon-256x256.png?rev=2570179)
 * [WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets](https://wordpress.org/plugins/wp-all-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-import/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/hide-variations/#post-14572259)
 * Status: resolved