{"id":136782,"date":"2021-02-21T08:33:34","date_gmt":"2021-02-21T08:33:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/simple-product-sample-for-woocommerce\/"},"modified":"2025-12-03T09:32:53","modified_gmt":"2025-12-03T09:32:53","slug":"simple-product-sample-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/simple-product-sample-for-woocommerce\/","author":17931512,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.4.2","stable_tag":"2.4.2","tested":"6.9.4","requires":"4.6","requires_php":"7.0","requires_plugins":null,"header_name":"Simple Product Sample for WooCommerce","header_author":"MCI Desarrollo","header_description":"Add a button to \"Request sample\" on the WooCommerce product page. It is possible to activate the sample and configure its price for each product.","assets_banners_color":"c7d0cd","last_updated":"2025-12-03 09:32:53","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/mci-desarrollo.es\/","header_plugin_uri":"https:\/\/mci-desarrollo.es\/simple-product-sample-pro\/?lang=en","header_author_uri":"https:\/\/mci-desarrollo.es","rating":3,"author_block_rating":0,"active_installs":70,"downloads":7230,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.6":{"tag":"1.0.6","author":"mcidesarrollo","date":"2021-02-21 08:36:51"},"1.0.7":{"tag":"1.0.7","author":"mcidesarrollo","date":"2021-02-21 08:59:19"},"1.0.8":{"tag":"1.0.8","author":"mcidesarrollo","date":"2021-02-22 19:23:30"},"1.0.9":{"tag":"1.0.9","author":"mcidesarrollo","date":"2021-07-28 09:30:23"},"1.1.0":{"tag":"1.1.0","author":"mcidesarrollo","date":"2021-09-13 16:43:31"},"1.2.0":{"tag":"1.2.0","author":"mcidesarrollo","date":"2021-10-04 10:04:08"},"1.2.1":{"tag":"1.2.1","author":"mcidesarrollo","date":"2021-10-04 11:34:46"},"1.2.2":{"tag":"1.2.2","author":"mcidesarrollo","date":"2021-10-04 16:46:14"},"1.2.3":{"tag":"1.2.3","author":"mcidesarrollo","date":"2021-10-04 17:05:47"},"1.2.4":{"tag":"1.2.4","author":"mcidesarrollo","date":"2021-10-05 08:25:28"},"1.2.5":{"tag":"1.2.5","author":"mcidesarrollo","date":"2021-10-05 08:41:38"},"1.2.6":{"tag":"1.2.6","author":"mcidesarrollo","date":"2021-10-20 10:40:05"},"1.2.7":{"tag":"1.2.7","author":"mcidesarrollo","date":"2021-10-20 11:00:36"},"1.2.8":{"tag":"1.2.8","author":"mcidesarrollo","date":"2021-10-20 11:27:10"},"1.2.9":{"tag":"1.2.9","author":"mcidesarrollo","date":"2022-05-30 15:46:24"},"1.3.0":{"tag":"1.3.0","author":"mcidesarrollo","date":"2022-07-04 12:43:06"},"1.3.1":{"tag":"1.3.1","author":"mcidesarrollo","date":"2022-07-18 09:17:11"},"2.0.0":{"tag":"2.0.0","author":"mcidesarrollo","date":"2022-10-27 13:14:01"},"2.1.0":{"tag":"2.1.0","author":"mcidesarrollo","date":"2022-10-27 18:24:10"},"2.1.1":{"tag":"2.1.1","author":"mcidesarrollo","date":"2022-10-28 12:35:24"},"2.2.0":{"tag":"2.2.0","author":"mcidesarrollo","date":"2022-11-06 19:19:00"},"2.2.1":{"tag":"2.2.1","author":"mcidesarrollo","date":"2022-11-07 16:16:25"},"2.2.2":{"tag":"2.2.2","author":"mcidesarrollo","date":"2022-11-07 16:31:18"},"2.2.3":{"tag":"2.2.3","author":"mcidesarrollo","date":"2022-11-07 18:17:55"},"2.2.4":{"tag":"2.2.4","author":"mcidesarrollo","date":"2022-11-07 18:38:47"},"2.2.5":{"tag":"2.2.5","author":"mcidesarrollo","date":"2022-11-16 18:51:12"},"2.2.6":{"tag":"2.2.6","author":"mcidesarrollo","date":"2022-11-16 18:57:56"},"2.3.0":{"tag":"2.3.0","author":"mcidesarrollo","date":"2023-02-07 19:44:45"},"2.3.1":{"tag":"2.3.1","author":"mcidesarrollo","date":"2023-03-30 16:26:22"},"2.3.2":{"tag":"2.3.2","author":"mcidesarrollo","date":"2023-08-09 13:19:32"},"2.3.3":{"tag":"2.3.3","author":"mcidesarrollo","date":"2023-08-25 05:36:39"},"2.3.4":{"tag":"2.3.4","author":"mcidesarrollo","date":"2023-11-09 10:10:57"},"2.3.5":{"tag":"2.3.5","author":"mcidesarrollo","date":"2023-11-18 10:05:31"},"2.3.6":{"tag":"2.3.6","author":"mcidesarrollo","date":"2024-03-15 16:17:29"},"2.4.0":{"tag":"2.4.0","author":"mcidesarrollo","date":"2024-04-03 12:51:05"},"2.4.1":{"tag":"2.4.1","author":"mcidesarrollo","date":"2024-11-15 10:45:44"},"2.4.2":{"tag":"2.4.2","author":"mcidesarrollo","date":"2025-12-03 09:32:53"}},"upgrade_notice":[],"ratings":{"1":1,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":2818862,"resolution":"256x256","location":"assets","locale":""},"icon-512x512.png":{"filename":"icon-512x512.png","revision":2818862,"resolution":"512x512","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2813817,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2813817,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.2.8","1.2.9","1.3.0","1.3.1","2.0.0","2.1.0","2.1.1","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.2.6","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.4.0","2.4.1","2.4.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2813817,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2813817,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2813817,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"<p>Product sample button in shop.<\/p>","2":"<p>General configuration.<\/p>","3":"<p>Product configuration.<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[196494,130772,196496,196495,196493],"plugin_category":[],"plugin_contributors":[185035],"plugin_business_model":[],"class_list":["post-136782","plugin","type-plugin","status-publish","hentry","plugin_tags-order-samples","plugin_tags-product-sample","plugin_tags-product-sample-button","plugin_tags-product-samples","plugin_tags-samples","plugin_contributors-mcidesarrollo","plugin_committers-mcidesarrollo"],"banners":{"banner":"https:\/\/ps.w.org\/simple-product-sample-for-woocommerce\/assets\/banner-772x250.png?rev=2813817","banner_2x":"https:\/\/ps.w.org\/simple-product-sample-for-woocommerce\/assets\/banner-1544x500.png?rev=2813817","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/simple-product-sample-for-woocommerce\/assets\/icon-256x256.png?rev=2818862","icon_2x":"https:\/\/ps.w.org\/simple-product-sample-for-woocommerce\/assets\/icon-256x256.png?rev=2818862","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/simple-product-sample-for-woocommerce\/assets\/screenshot-1.png?rev=2813817","caption":"<p>Product sample button in shop.<\/p>"},{"src":"https:\/\/ps.w.org\/simple-product-sample-for-woocommerce\/assets\/screenshot-2.png?rev=2813817","caption":"<p>General configuration.<\/p>"},{"src":"https:\/\/ps.w.org\/simple-product-sample-for-woocommerce\/assets\/screenshot-3.png?rev=2813817","caption":"<p>Product configuration.<\/p>"}],"raw_content":"<!--section=description-->\n<p>Add a button to \"Request sample\" on the WooCommerce product page.\nThe plugin allows:\n- Activate the sample and configure its price for each product.\n- Configure the maximum number of samples for each order.\n- Customize the button's text.\n- Customize the button's background, text, and border colors by viewing the changes in a button preview.<\/p>\n\n<p>https:\/\/youtu.be\/us54hfL7QXk<\/p>\n\n<p><a href=\"https:\/\/youtu.be\/us54hfL7QXk\">Open the mini-tutorial video of the plugin<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin through the WordPress plugins screen directly or upload the \"Simple Product Sample\" plugin to the \/ wp-content \/ plugins \/<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Configure the plugin options in WooCommerce-&gt;Simple Product Sample<\/li>\n<li>Configure how you want to show the sample on each product and its price in: Products-&gt;Edit Product Page-&gt;Product data-&gt;Inventory-&gt;Simple Product Sample<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>2.4.2<\/h4>\n\n<ul>\n<li>Tested in WordPress 6.9<\/li>\n<\/ul>\n\n<h4>2.4.1<\/h4>\n\n<ul>\n<li>Tested in WordPress 6.7<\/li>\n<\/ul>\n\n<h4>2.4.0<\/h4>\n\n<ul>\n<li>Compatibility with WordPress 6.5<\/li>\n<\/ul>\n\n<h4>2.3.6<\/h4>\n\n<ul>\n<li>Make hook to add the sample button selectable.<\/li>\n<\/ul>\n\n<h4>2.3.5<\/h4>\n\n<ul>\n<li>Fixed issue that duplicates the sample text when the update button of the WooCommerce shipping calculator was clicked on the cart page.<\/li>\n<\/ul>\n\n<h4>2.3.4<\/h4>\n\n<ul>\n<li>Compatibility with WordPress 6.4<\/li>\n<\/ul>\n\n<h4>2.3.3<\/h4>\n\n<ul>\n<li>Solved issue development mode.<\/li>\n<\/ul>\n\n<h4>2.3.2<\/h4>\n\n<ul>\n<li>Compatibility with WordPress 6.3<\/li>\n<\/ul>\n\n<h4>2.3.1<\/h4>\n\n<ul>\n<li>Compatibility with WordPress 6.2<\/li>\n<\/ul>\n\n<h4>2.3.0<\/h4>\n\n<ul>\n<li>Fixed bug that caused failures in the maximum number of samples in products selected by category.<\/li>\n<\/ul>\n\n<h4>2.2.6<\/h4>\n\n<ul>\n<li>Added url parameter language to the plugin link.<\/li>\n<\/ul>\n\n<h4>2.2.5<\/h4>\n\n<ul>\n<li>Adedd link to mini-tutorial in plugin description.<\/li>\n<\/ul>\n\n<h4>2.2.4<\/h4>\n\n<ul>\n<li>Solved bug on save text max.<\/li>\n<\/ul>\n\n<h4>2.2.3<\/h4>\n\n<ul>\n<li>Solved bug with the button maximum.<\/li>\n<\/ul>\n\n<h4>2.2.2<\/h4>\n\n<ul>\n<li>Compatible with WordPress 6.1.<\/li>\n<\/ul>\n\n<h4>2.2.1<\/h4>\n\n<ul>\n<li>Changed the order of options on the settings page.<\/li>\n<li>Added option to use {price} to display the price in the button text.<\/li>\n<li>Added the option to customize the button text when the maximum number of samples has been reached.<\/li>\n<li>Minor bug fixes.<\/li>\n<\/ul>\n\n<h4>2.2.0<\/h4>\n\n<ul>\n<li>Improvement in the way of displaying the button preview.<\/li>\n<li>Remove plugin prefix on pro license activation.<\/li>\n<li>New options to configure the button's margin and padding.<\/li>\n<li>New option to force margins for the \"quantity\" field and the \"Add to cart\" button.<\/li>\n<li>New option to set a default global sample price (when there is no individual price).<\/li>\n<li>New options to select font-size and font-weight for the sample button.<\/li>\n<li>New options to select border-color and border-width for the sample button.<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Added preview of the colors and text of the button to see the result in real time.<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Code refactoring improvements.<\/li>\n<li>Added Spanish language of the author.<\/li>\n<li>Authentication features for PRO version.<\/li>\n<li>Added \"Button text\" field in options menu to customize the button field.<\/li>\n<li>Added constant 'MCISPS_REAL_ENVIRONMENT' to develop works.<\/li>\n<li>Added the option to select products by categories in a multiselect menu for Pro version.<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Fixed a bug that caused an error when adding products with variations without selecting the variation.<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Refactoring to continue making the plugin more scalable in future versions.<\/li>\n<li>Deletion of old options table and use of options in the standard WordPress system for better integration.<\/li>\n<\/ul>\n\n<h4>1.2.9<\/h4>\n\n<ul>\n<li>Tested compatibility with WordPress 6.0 and WooCommerce 6.5<\/li>\n<\/ul>\n\n<h4>1.2.8<\/h4>\n\n<ul>\n<li>Make hover notice in button translatable<\/li>\n<\/ul>\n\n<h4>1.2.7<\/h4>\n\n<ul>\n<li>Added hover notice in button when the maximum number has been reached.<\/li>\n<\/ul>\n\n<h4>1.2.6<\/h4>\n\n<ul>\n<li>Replaced wc_add_notice by with wc_print_notice to correct problems displaying \"Sample is added to cart\".<\/li>\n<\/ul>\n\n<h4>1.2.5<\/h4>\n\n<ul>\n<li>Improve page reload.<\/li>\n<\/ul>\n\n<h4>1.2.4<\/h4>\n\n<ul>\n<li>Show \"Added to Cart\" notice before reloading the entire product.<\/li>\n<\/ul>\n\n<h4>1.2.3<\/h4>\n\n<ul>\n<li>More CSS improvements.<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>CSS standardization.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>CSS Corrections.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Added option to choose a maximum number of samples.<\/li>\n<li>Added notice \"Sample has been added to cart.\".<\/li>\n<li>CSS improvements.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Issue that caused the product to be added to the cart when a product's sample price field is empty.<\/li>\n<\/ul>\n\n<h4>1.0.9<\/h4>\n\n<ul>\n<li>Tested in WordPress 5.8<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>Tested in WordPress 5.6.2<\/li>\n<li>Custom development notice.<\/li>\n<li>Remove title translations.<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>Fixed css styles bug.<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Fixed security bugs.<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Add a button to &quot;Request sample&quot; on the WooCommerce product page. It is possible to activate the sample and configure its price for each product.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/136782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=136782"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mcidesarrollo"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=136782"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=136782"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=136782"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=136782"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=136782"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=136782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}