Skip to content

Commit

Permalink
version 0.8 released
Browse files Browse the repository at this point in the history
added support to WooCommerce Chained Products
fixed WooCommerce hooks and functions used inside the plugin
  • Loading branch information
zauker committed Aug 4, 2016
1 parent 28a600e commit 6d23044
Show file tree
Hide file tree
Showing 9 changed files with 129 additions and 84 deletions.
7 changes: 2 additions & 5 deletions css/style-admin.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#woocommerce-product-data ul.product_data_tabs li a.added_sample{
background: url(../images/sample-icon.png) no-repeat 6px 5px transparent;
line-height:1em;
padding:5px 5px 5px 28px;
text-shadow:0 1px 1px #FFFFFF;
#woocommerce-product-data ul.product_data_tabs li a.added_sample:before{
content: "\f312";
}

input.radio {
Expand Down
Binary file removed images/sample-icon.png
Binary file not shown.
Binary file modified languages/woosample-it_IT.mo
Binary file not shown.
51 changes: 30 additions & 21 deletions languages/woosample-it_IT.po
Original file line number Diff line number Diff line change
@@ -1,89 +1,98 @@
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce Sample\n"
"POT-Creation-Date: 2014-03-02 19:14+0100\n"
"PO-Revision-Date: 2014-03-02 19:16+0100\n"
"Last-Translator: Michele Menciassi <m.menciassi@gmail.com>\n"
"POT-Creation-Date: 2016-08-05 00:16+0200\n"
"PO-Revision-Date: 2016-08-05 00:17+0200\n"
"Last-Translator: Michele Menciassi <m.menciassi@isikom.net>\n"
"Language-Team: ISIKOM <[email protected]>\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.6.4\n"
"X-Generator: Poedit 1.8.8\n"
"X-Poedit-Basepath: .\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-KeywordsList: __;_e\n"
"X-Poedit-SearchPath-0: ..\n"

#: ../woocommerce-sample.php:106 ../woocommerce-sample.php:193
#: ../woocommerce-sample.php:189 ../woocommerce-sample.php:196
#: ../woocommerce-sample.php:280
msgid "Sample"
msgstr "Campione"

#: ../woocommerce-sample.php:176
#: ../woocommerce-sample.php:263
msgid "A sample of the same product is already present into your cart"
msgstr "Un campione dello stesso prodotto è già presente nel tuo carrello"

#: ../woocommerce-sample.php:180
#: ../woocommerce-sample.php:267
msgid ""
"You have already added this product on your cart, you can't add a sample of "
"the same item"
msgstr ""
"Hai già aggiunto questo prodotto al tuo carrello, non puoi richiedere un "
"campione dello stesso articolo"

#: ../woocommerce-sample.php:209
#: ../woocommerce-sample.php:302
msgid "Enable sample"
msgstr "Abilita il Campione"

#: ../woocommerce-sample.php:210
#: ../woocommerce-sample.php:303
msgid "Enable or disable sample option for this item."
msgstr "Abilita o disabilita le opzioni per il campione per questo articolo"

#: ../woocommerce-sample.php:212
#: ../woocommerce-sample.php:307
msgid "Add chained products"
msgstr "Aggiungi i prodotti concatenati"

#: ../woocommerce-sample.php:308
msgid "Add or not chained products as sample."
msgstr "Aggiungi o meno i prodotti concatenati come campione"

#: ../woocommerce-sample.php:311
msgid "Sample Shipping"
msgstr "Trasporto del Campione"

#: ../woocommerce-sample.php:215
#: ../woocommerce-sample.php:314
msgid "use default product shipping methods"
msgstr "usa il metodo di trasporto impostato per il prodotto"

#: ../woocommerce-sample.php:219
#: ../woocommerce-sample.php:318
msgid "free shipping for sample"
msgstr "trasporto gratuito per il campione"

#: ../woocommerce-sample.php:223
#: ../woocommerce-sample.php:323
msgid "custom fee shipping"
msgstr "spese di trasporto personalizzate"

#: ../woocommerce-sample.php:225
#: ../woocommerce-sample.php:325
msgid "set shipping fee"
msgstr "imposta le spese di trasporto"

#: ../woocommerce-sample.php:229
#: ../woocommerce-sample.php:330
msgid "Sample price"
msgstr "Prezzo del Campione"

#: ../woocommerce-sample.php:232
#: ../woocommerce-sample.php:333
msgid "product default price"
msgstr "prezzo impostato nel prodotto"

#: ../woocommerce-sample.php:236
#: ../woocommerce-sample.php:337
msgid "free"
msgstr "gratuito"

#: ../woocommerce-sample.php:240
#: ../woocommerce-sample.php:341
msgid "custom price"
msgstr "prezzo personalizzato"

#: ../woocommerce-sample.php:242
#: ../woocommerce-sample.php:343
msgid "set sample price"
msgstr "imposta il prezzo del campione"

#: ../woocommerce-sample.php:284
#: ../woocommerce-sample.php:393
msgid "Add Sample to cart"
msgstr "Richiedi un Campione"

#: ../woocommerce-sample.php:332
#: ../woocommerce-sample.php:434
#, php-format
msgid ""
"WooCommerce Sample requires <a href=\"http://www.woothemes.com/woocommerce/"
Expand Down
48 changes: 29 additions & 19 deletions languages/woosample.pot
Original file line number Diff line number Diff line change
@@ -1,87 +1,97 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce Sample\n"
"POT-Creation-Date: 2014-03-02 19:13+0100\n"
"POT-Creation-Date: 2016-08-05 00:16+0200\n"
"PO-Revision-Date: 2014-03-02 19:14+0100\n"
"Last-Translator: Michele Menciassi <[email protected]>\n"
"Language-Team: ISIKOM <[email protected]>\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.6.4\n"
"X-Generator: Poedit 1.8.8\n"
"X-Poedit-Basepath: .\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-KeywordsList: __;_e\n"
"X-Poedit-SearchPath-0: ..\n"

#: ../woocommerce-sample.php:106 ../woocommerce-sample.php:193
#: ../woocommerce-sample.php:189 ../woocommerce-sample.php:196
#: ../woocommerce-sample.php:280
msgid "Sample"
msgstr ""

#: ../woocommerce-sample.php:176
#: ../woocommerce-sample.php:263
msgid "A sample of the same product is already present into your cart"
msgstr ""

#: ../woocommerce-sample.php:180
#: ../woocommerce-sample.php:267
msgid ""
"You have already added this product on your cart, you can't add a sample of "
"the same item"
msgstr ""

#: ../woocommerce-sample.php:209
#: ../woocommerce-sample.php:302
msgid "Enable sample"
msgstr ""

#: ../woocommerce-sample.php:210
#: ../woocommerce-sample.php:303
msgid "Enable or disable sample option for this item."
msgstr ""

#: ../woocommerce-sample.php:212
#: ../woocommerce-sample.php:307
msgid "Add chained products"
msgstr ""

#: ../woocommerce-sample.php:308
msgid "Add or not chained products as sample."
msgstr ""

#: ../woocommerce-sample.php:311
msgid "Sample Shipping"
msgstr ""

#: ../woocommerce-sample.php:215
#: ../woocommerce-sample.php:314
msgid "use default product shipping methods"
msgstr ""

#: ../woocommerce-sample.php:219
#: ../woocommerce-sample.php:318
msgid "free shipping for sample"
msgstr ""

#: ../woocommerce-sample.php:223
#: ../woocommerce-sample.php:323
msgid "custom fee shipping"
msgstr ""

#: ../woocommerce-sample.php:225
#: ../woocommerce-sample.php:325
msgid "set shipping fee"
msgstr ""

#: ../woocommerce-sample.php:229
#: ../woocommerce-sample.php:330
msgid "Sample price"
msgstr ""

#: ../woocommerce-sample.php:232
#: ../woocommerce-sample.php:333
msgid "product default price"
msgstr ""

#: ../woocommerce-sample.php:236
#: ../woocommerce-sample.php:337
msgid "free"
msgstr ""

#: ../woocommerce-sample.php:240
#: ../woocommerce-sample.php:341
msgid "custom price"
msgstr ""

#: ../woocommerce-sample.php:242
#: ../woocommerce-sample.php:343
msgid "set sample price"
msgstr ""

#: ../woocommerce-sample.php:284
#: ../woocommerce-sample.php:393
msgid "Add Sample to cart"
msgstr ""

#: ../woocommerce-sample.php:332
#: ../woocommerce-sample.php:434
#, php-format
msgid ""
"WooCommerce Sample requires <a href=\"http://www.woothemes.com/woocommerce/"
Expand Down
25 changes: 14 additions & 11 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: isikom, zauker
Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, woocommerce, sample, free sample
Requires at least: 3.5
Tested up to: 3.9.1
Stable tag: 0.7.3
Tested up to: 4.6
Stable tag: 0.8.0
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -15,6 +15,7 @@ Plugin for Wordpress woocommerce that allow add to cart sample item of a certain

Compatibility with plugins:

* WooCommerce Chained Products
* Min/Max Quantities
* Measurement Price Calculator

Expand All @@ -24,13 +25,6 @@ Developers can checkout and contribute to the source code on the [GitHub Reposit

== Installation ==

= Minimum Requirements =

* WordPress 3.5 or greater
* PHP version 5.2.4 or greater
* MySQL version 5.0 or greater
* WooCommerce 2.0.20 or greater

= Automatic installation =

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t even need to leave your web browser. To do an automatic install of WooCommerce, log in to your WordPress admin panel, navigate to the Plugins menu and click Add New.
Expand All @@ -49,17 +43,26 @@ The manual installation method involves downloading our plugin and uploading it

= Free shipping doesn't work =

The "free shipping" option on Sample back end panel need that "free shipping" methods is enabled on your WooCommerce installation.
You could enable it on WooCommerce Settings -> Shipping -> Free Shipping (as you can see on screenshot tab)
The "free shipping" option on Sample back end panel need that "free shipping" methods is enabled for your on your WooCommerce installation.
You could enable it on WooCommerce -> Settings -> Shipping -> Shipping Zone -> Free Shipping.
Make it enabled and set it available for coupon.
(as you can see on screenshot tab)

== Screenshots ==

1. Front end - "Add Sample" button
2. Back end - Sample setting on product page
3. remember to enable WooCommerce Free Shipping to use it on WooCommerce Sample Plugins
4. remember to set Free Shipping available for coupon

== Changelog ==

= 0.8.0 - 05/08/2016 =
* added support for WooCommerce Chained Products plugin
* update hooks and functions used by WooCommerce
* update .pot file
* fix CSS for admin panel

= 0.7.12 - 12/06/2014 =
* added button CSS filter to add custom style
* fix button for products with a variation
Expand Down
Binary file modified screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6d23044

Please sign in to comment.