{"id":27228,"date":"2014-01-13T22:09:01","date_gmt":"2014-01-13T22:09:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/woocommerce-product-dependencies\/"},"modified":"2024-09-19T06:49:11","modified_gmt":"2024-09-19T06:49:11","slug":"woocommerce-product-dependencies","status":"publish","type":"plugin","link":"https:\/\/roh.wordpress.org\/plugins\/woocommerce-product-dependencies\/","author":8539092,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.1","stable_tag":"2.0.1","tested":"6.6.5","requires":"6.2","requires_php":"","requires_plugins":null,"header_name":"WooCommerce Product Dependencies","header_author":"WooCommerce","header_description":"","assets_banners_color":"9f65ff","last_updated":"2024-09-19 06:49:11","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/woocommerce.com\/","header_author_uri":"https:\/\/woocommerce.com\/","rating":5,"author_block_rating":0,"active_installs":3000,"downloads":64392,"num_ratings":16,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.3":{"tag":"1.0.3","author":"franticpsyx","date":"2014-06-09 11:25:40"},"1.0.4":{"tag":"1.0.4","author":"franticpsyx","date":"2014-06-09 11:25:40"},"1.0.5":{"tag":"1.0.5","author":"franticpsyx","date":"2015-03-05 10:50:36"},"1.0.6":{"tag":"1.0.6","author":"franticpsyx","date":"2015-05-21 07:11:38"},"1.0.7":{"tag":"1.0.7","author":"franticpsyx","date":"2016-08-16 10:52:54"},"1.1.0":{"tag":"1.1.0","author":"franticpsyx","date":"2017-03-13 14:05:38"},"1.1.1":{"tag":"1.1.1","author":"franticpsyx","date":"2017-03-17 17:11:09"},"1.1.2":{"tag":"1.1.2","author":"franticpsyx","date":"2017-06-22 12:29:14"},"1.1.3":{"tag":"1.1.3","author":"franticpsyx","date":"2017-12-04 08:58:58"},"1.2.0":{"tag":"1.2.0","author":"franticpsyx","date":"2018-01-31 09:49:01"},"1.2.1":{"tag":"1.2.1","author":"franticpsyx","date":"2018-02-25 12:17:32"},"1.2.3":{"tag":"1.2.3","author":"franticpsyx","date":"2020-02-03 12:34:05"},"1.2.4":{"tag":"1.2.4","author":"franticpsyx","date":"2020-05-06 09:43:47"},"1.2.5":{"tag":"1.2.5","author":"franticpsyx","date":"2020-05-21 11:53:48"},"1.2.6":{"tag":"1.2.6","author":"SomewhereWarm","date":"2021-02-11 15:36:54"},"1.2.7":{"tag":"1.2.7","author":"franticpsyx","date":"2021-06-17 12:07:23"},"1.2.8":{"tag":"1.2.8","author":"jasonkytros","date":"2023-08-16 09:35:42"},"2.0.0":{"tag":"2.0.0","author":"jasonkytros","date":"2024-07-30 06:55:09"},"2.0.1":{"tag":"2.0.1","author":"jasonkytros","date":"2024-09-19 06:49:11"}},"upgrade_notice":{"1.2.7":"<p>Prevent products from satisfying their own dependencies.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":16},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3243288,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3243288,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3243288,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3243288,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.1.0","1.1.1","1.1.2","1.1.3","1.2.0","1.2.1","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.2.8","2.0.0","2.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1812580,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1812580,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Product dependencies can be created from the <strong>Dependencies<\/strong> tab, found under <strong>Product Data<\/strong>, and adding products\/variations to the <strong>Product Dependencies<\/strong> field.","2":"If the ownership and\/or purchase conditions are not met, products with dependencies cannot be added to the cart and a notification is displayed."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[23027,66486,702,1914,286],"plugin_category":[45],"plugin_contributors":[77494,85925,142155],"plugin_business_model":[],"class_list":["post-27228","plugin","type-plugin","status-publish","hentry","plugin_tags-dependencies","plugin_tags-prerequisite","plugin_tags-products","plugin_tags-restrict","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-automattic","plugin_contributors-somewherewarm","plugin_contributors-woocommerce","plugin_committers-jasonkytros","plugin_committers-woocommerce"],"banners":{"banner":"https:\/\/ps.w.org\/woocommerce-product-dependencies\/assets\/banner-772x250.png?rev=3243288","banner_2x":"https:\/\/ps.w.org\/woocommerce-product-dependencies\/assets\/banner-1544x500.png?rev=3243288","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/woocommerce-product-dependencies\/assets\/icon-128x128.png?rev=3243288","icon_2x":"https:\/\/ps.w.org\/woocommerce-product-dependencies\/assets\/icon-256x256.png?rev=3243288","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/woocommerce-product-dependencies\/assets\/screenshot-1.png?rev=1812580","caption":"Product dependencies can be created from the <strong>Dependencies<\/strong> tab, found under <strong>Product Data<\/strong>, and adding products\/variations to the <strong>Product Dependencies<\/strong> field."},{"src":"https:\/\/ps.w.org\/woocommerce-product-dependencies\/assets\/screenshot-2.png?rev=1812580","caption":"If the ownership and\/or purchase conditions are not met, products with dependencies cannot be added to the cart and a notification is displayed."}],"raw_content":"<!--section=description-->\n<p>Looking for a way to restrict product access in WooCommerce? Don't want to set up a full-fledged <a href=\"https:\/\/woocommerce.com\/products\/woocommerce-memberships\/\">memberships<\/a> site?<\/p>\n\n<p>This tiny plugin allows you to restrict access to any WooCommerce product, depending on the ownership or purchase of other, required products.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li><strong>Conditional product access<\/strong> based on the ownership and\/or purchase of other required products.<\/li>\n<li>Support for \"ownership\", \"purchase\" and \"ownership\/purchase\" dependency types.<\/li>\n<\/ul>\n\n<p>Developers can checkout and contribute to the source code on the plugin's <a href=\"https:\/\/github.com\/woocommerce\/woocommerce-product-dependencies\/\">GitHub Repository<\/a>.<\/p>\n\n<p><strong>Important<\/strong>: Requires WooCommerce 2.2+. WooCommerce 3.0+ or higher recommended.<\/p>\n\n<p>Like this plugin? You'll love our official WooCommerce Extensions:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/woocommerce.com\/products\/product-bundles\/\">WooCommerce Product Bundles<\/a><\/li>\n<li><a href=\"https:\/\/woocommerce.com\/products\/composite-products\/\">WooCommerce Composite Products<\/a><\/li>\n<li><a href=\"https:\/\/woocommerce.com\/products\/conditional-shipping-and-payments\/\">WooCommerce Conditional Shipping and Payments<\/a><\/li>\n<li><a href=\"https:\/\/woocommerce.com\/products\/product-recommendations\/\">WooCommerce Product Recommendations<\/a><\/li>\n<li><a href=\"https:\/\/woocommerce.com\/products\/all-products-for-woocommerce-subscriptions\/\">All Products for WooCommerce Subscriptions<\/a><\/li>\n<\/ul>\n\n<h3>Documentation<\/h3>\n\n<p>Dependencies are evaluated when customers attempt to add a product to their cart. If validation fails, the product cannot be added to the cart and a notice is displayed. In order to evaluate \"Ownership\"-type dependencies, customers are prompted to log in.<\/p>\n\n<h4>Creating Dependencies<\/h4>\n\n<p>To add dependencies to a product:<\/p>\n\n<ul>\n<li>Go to the <strong>Product Data &gt; Dependencies<\/strong> tab.<\/li>\n<li>Use the <strong>Product Dependencies<\/strong> field to search for and add some products and\/or variations.<\/li>\n<li>Choose a <strong>Dependency Type<\/strong>.<\/li>\n<li><strong>Update<\/strong> to save your changes.<\/li>\n<\/ul>\n\n<p>The \"Ownership\" dependency type is evaluated by checking if the customer has purchased a required product in a previous order. The \"Purchase\" dependency type requires the customer to have a required product in the cart in order to purchase the dependent one.<\/p>\n\n<h4>Ownership vs Purchase<\/h4>\n\n<p>The plugin allows you to select between 3 different dependency types:<\/p>\n\n<ul>\n<li><strong>Ownership<\/strong>: Access is granted only to customers that already own any of the products added to the Product Dependencies field.<\/li>\n<li><strong>Purchase<\/strong>: The product can be purchased only in combination with any of the items added to the Product Dependencies field. Ownership is not taken into account.<\/li>\n<li><strong>Either<\/strong>: Access is granted with ownership or purchase of any item added to the Product Dependencies field.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Download the plugin.<\/li>\n<li>Go to your WordPress Dashboard and then click <strong>Plugins &gt; Add New<\/strong>.<\/li>\n<li>Click <strong>Upload Plugin<\/strong> at the top.<\/li>\n<li>Click <strong>Choose File<\/strong> and select the .zip file you downloaded in <strong>Step 1<\/strong>.<\/li>\n<li>Click <strong>Install Now<\/strong> and <strong>Activate<\/strong> the plugin.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Tweak - Updated author links.<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Important - New: PHP 7.4+ is now required.<\/li>\n<li>Important - New: WooCommerce 8.2+ is now required.<\/li>\n<li>Important - New: WordPress 6.2+ is now required.<\/li>\n<\/ul>\n\n<h4>1.2.8<\/h4>\n\n<ul>\n<li>Feature - Declared compatibility with the new High-Performance Order Tables.<\/li>\n<\/ul>\n\n<h4>1.2.7<\/h4>\n\n<ul>\n<li>Fix - Prevent products from satisfying their own dependencies.<\/li>\n<\/ul>\n\n<h4>1.2.6<\/h4>\n\n<ul>\n<li>Tweak - Declared support for WooCommerce 5.0.<\/li>\n<\/ul>\n\n<h4>1.2.5<\/h4>\n\n<ul>\n<li>Tweak - Declared support for WooCommerce 4.2.<\/li>\n<\/ul>\n\n<h4>1.2.4<\/h4>\n\n<ul>\n<li>Tweak - Declared support for WC 4.1 and WP 5.4.<\/li>\n<\/ul>\n\n<h4>1.2.3<\/h4>\n\n<ul>\n<li>Tweak - Updated plugin headers to declare support for WC 3.9 and WP 5.3.<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Fix - Remove esc_html when rendering custom notices.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fix - Products with \"Purchase\"-type category dependencies cannot be added to the cart although a variation of a product that belongs to the required category has been added to the cart.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Feature - Introduced category-based dependencies.<\/li>\n<li>Feature - Added custom dependency notices.<\/li>\n<li>Feature - Added AND\/OR dependency relationship. Can be activated for specific products using the 'wc_pd_dependency_relationship' filter.<\/li>\n<li>Tweak - Tweaked default notices.<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Tweak - Updated description.<\/li>\n<li>Tweak - Added WooCommerce version headers.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Fix - Variable product dependencies not validated correctly in the cart.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Fix - Dependencies not working under WC &lt; 3.0 after last update. Fixed!<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Refactored and cleaned up plugin.<\/li>\n<li>Fix - Added support for WooCommerce 3.0.<\/li>\n<li>Tweak - Add links to dependent products in notices.<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>Fix - Stray \"or\" in dependent products list when only one dependency is present.<\/li>\n<li>Localization - Added Brazilian Portuguese translation.<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Fix - PHP array_values warning.<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Fix - WC 2.3 support.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Localization - Added Brazilian translation (robertopc)<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Fix - Saving bug<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Fix - WC detection fix<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Tweak - Styling support for WooCommerce v2 write-panels<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Restrict access to any WooCommerce product, depending on the ownership and\/or purchase of other required products.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27228"}],"author":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/woocommerce"}],"wp:attachment":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27228"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27228"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27228"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27228"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27228"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}