توضیحات
This plugin requires WooCommerce. It allows the site owner to prevent a product from being purchased by enabling a checkbox. It also allows you to override the message on a per-product basis. This will be useful for when you want to let customers know a product is only available in-store but still have the product listed on your website.
How does it work?
This is a very simple plugin that hooks into WooCommerce’s woocommerce_is_purchasable filter. When a product is deemed unpurchasable the “add to cart” button on the main product listing is replaced with a “read more” button. When the customer views the single product page they are shown a message that the product is not available for purchase and the add to cart buttons are removed.
نصب
- Unpack the entire contents of this plugin zip file into your
wp-content/plugins/folder locally - Upload to your site
- Navigate to
wp-admin/plugins.phpon your site (your WP Admin plugin page) - Activate this plugin
OR you can just install it with WordPress by going to Plugins >> Add New >> and type this plugin’s name
Go to a product’s edit/publish screen and enable the “Prevent Purchase” checkbox. Optionally you can enter in a custom message which is shown on the single product page.
1.1.0
- Plugin renamed to comply with WooCommerce trademark requirements
- Added nonce verification and security improvements
- Improved input sanitization and output escaping
1.0
- Initial release
نقد و بررسیها
توسعه دهندگان و همکاران
“Prevent Purchase for WooCommerce” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کردهاند.
مشارکت کنندگانترجمه “Prevent Purchase for WooCommerce” به زبان شما.
علاقه مند به توسعه هستید؟
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.