Title: WC Gift Packaging
Author: GDY
Published: <strong>27.10.2016</strong>
Last modified: 30.07.2019

---

Поиск плагинов

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

![](https://ps.w.org/wc-gift-packaging/assets/icon.svg?rev=2130677)

# WC Gift Packaging

 Автор: [GDY](https://profiles.wordpress.org/grandy/)

[Скачать](https://downloads.wordpress.org/plugin/wc-gift-packaging.1.5.zip)

 * [Детали](https://ru.wordpress.org/plugins/wc-gift-packaging/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/wc-gift-packaging/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/wc-gift-packaging/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/wc-gift-packaging/#developers)

 [Поддержка](https://wordpress.org/support/plugin/wc-gift-packaging/)

## Описание

Add a simple «Send this order packaged as gift» checkbox to the checkout. Optionally
it is possible to set a price for the packaging.

If you want multiple gift packagings and other fancy stuff this is not the plugin
for you … this plugin is intentionally very lightweight to fit directly into the
WooCommerce user experience.

## Установка

Here’s how to install the plugin:

 1. Upload ‘woocommerce-gift-options’ to the ‘/wp-content/plugins/’ directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to WordPress Admin > WooCommerce > Settings > Checkout and set the ‘Gift packaging
    cost’ field if you want to charge something for the packaging

## Часто задаваемые вопросы

  Is it possible to add a price for the packaging

Yes. You can change this under Woocommerce > Settings > General > WC Gift Packaging
in the ‘Gift packaging cost’ field.

  Is it possible to change the position of the checkbox

Yes. You can change the hook of the checkbox like this:

    ```
    add_filter( 'wc_gift_packaging_field_hook', 'custom_hook_position' );

    function custom_hook_position( $text ) {

        return 'woocommerce_after_order_notes';

    }
    ```

  Is it possible to change the text of the checkbox

Yes. You can change the text of the checkbox with the `wc_gift_packaging_checkout_field`
filter:

    ```
    add_filter( 'wc_gift_packaging_checkout_field', 'my_checkbox_text' );

    function my_checkbox_text( $text ) {

        return __( "Send this order as awesome packaged gift" );

    }
    ```

  Is it possible to wrap the checkbox in some html

Yes. You can use the `before_wc_gift_packaging_checkout_field` and `after_wc_gift_packaging_checkout_field`
hooks like this:

    ```
    add_action( 'before_wc_gift_packaging_checkout_field', 'custom_start' );

    function custom_start() {

        echo '<div class="my-custom-html">';

    }

    add_action( 'after_wc_gift_packaging_checkout_field', 'custom_end' );

    function custom_end() {

        echo '</div>';

    }
    ```

  Is it possible to customize the note in the mail, order details or backend

Yes. You can use the `wc_gift_packaging_admin_note`, `wc_gift_packaging_order_note`
or `wc_gift_packaging_email_note` filters to completely change the note. Here are
two examples:

    ```
    add_filter( 'wc_gift_packaging_admin_note', 'custom_note', 10, 2 );

    function custom_note( $text, $is_gift ) {

        if( $is_gift ):

            return '<h3>' . __( "This is a regular order" ) . '</h3>';

        else:

            return '<h3>' . __( "This order is a gift" ) . '</h3>';

        endif;


    }


    add_filter( 'wc_gift_packaging_order_note', 'html_wrap', 10, 2 );

    function html_wrap( $text, $is_gift ) {

        return '<div class="my-custom-html">' . $text . '</div>';


    }
    ```

## Отзывы

![](https://secure.gravatar.com/avatar/b1c2ef57cd65eaa885ec126438be4e135eb64b005708735defccd75609de61fe?
s=60&d=retro&r=g)

### 󠀁[Easy, lightweight plugin, doesn’t matter that you to updates years](https://wordpress.org/support/topic/easy-lightweight-plugin-doesnt-matter-that-you-to-updates-years/)󠁿

 [Pexle Chris](https://profiles.wordpress.org/pexlechris/) 01.02.2022

Hi there! Many thanks to your lightweight plugin!! It is easy to use, also lightweight.
WORKS FINE but, I have found some bugs in your plugin (about translations) UPDATE:
The plugin is abandoned so, we had released a similar plugin to this fixing the 
bugs and giving the ability for free gift wrappers!! Gift Wrapping for WooCommerce

![](https://secure.gravatar.com/avatar/e8a217f38936e6a74ab9f6eb02ec40721a03799b81edb5ee79c138bcb5861a47?
s=60&d=retro&r=g)

### 󠀁[Easy and light plugin](https://wordpress.org/support/topic/easy-and-light-plugin/)󠁿

 [wilgart](https://profiles.wordpress.org/wilgart/) 20.08.2020

Great plugin. lightweight and easy to use. Does the job perfect.

![](https://secure.gravatar.com/avatar/e3561234465148ca175a581d3d0ceabd4128e80f3d76f86a59851f664049c719?
s=60&d=retro&r=g)

### 󠀁[Superb](https://wordpress.org/support/topic/superb-672/)󠁿

 [sanju789](https://profiles.wordpress.org/sanju789/) 14.09.2019

Its working great now..

 [ Посмотреть все 3 отзыва ](https://wordpress.org/support/plugin/wc-gift-packaging/reviews/)

## Участники и разработчики

«WC Gift Packaging» — проект с открытым исходным кодом. В развитие плагина внесли
свой вклад следующие участники:

Участники

 *   [ GDY ](https://profiles.wordpress.org/grandy/)
 *   [ Fouad Vollmer & Gut ](https://profiles.wordpress.org/fouadvollmer/)

«WC Gift Packaging» переведён на 3 языка. Благодарим [переводчиков](https://translate.wordpress.org/projects/wp-plugins/wc-gift-packaging/contributors)
за их работу.

[Перевести «WC Gift Packaging» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/wc-gift-packaging)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/wc-gift-packaging/),
проверьте [SVN репозиторий](https://plugins.svn.wordpress.org/wc-gift-packaging/),
или подпишитесь на [журнал разработки](https://plugins.trac.wordpress.org/log/wc-gift-packaging/)
по [RSS](https://plugins.trac.wordpress.org/log/wc-gift-packaging/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

#### 1.5

 * The price setting is now visible again under Woocommerce > Settings > General
   in the WC Gift Packaging section

#### 1.4

 * Updated plugin information

#### 1.3

 * Bugfix that removes a PHP-Undefined-Index-Notice

#### 1.2

 * Bugfix that changes `$order->id` to `$order->get_order_number()`

#### 1.1

 * Bugfix wich makes the `$checkout` parameter in the `wc_gift_packaging_field` 
   function optional to allows the usage of more hooks

#### 1.0

 * Initial release

## Мета

 *  Версия **1.5**
 *  Обновление: **7 лет назад**
 *  Активных установок: **100+**
 *  Версия WordPress ** 3.0 или выше **
 *  Совместим вплоть до: **5.2.30**
 *  Языки
 * [English (US)](https://wordpress.org/plugins/wc-gift-packaging/), [German](https://de.wordpress.org/plugins/wc-gift-packaging/),
   [Romanian](https://ro.wordpress.org/plugins/wc-gift-packaging/) и [Russian](https://ru.wordpress.org/plugins/wc-gift-packaging/).
 *  [Перевести на ваш язык](https://translate.wordpress.org/projects/wp-plugins/wc-gift-packaging)
 * Метки:
 * [checkout](https://ru.wordpress.org/plugins/tags/checkout/)[gift](https://ru.wordpress.org/plugins/tags/gift/)
   [Packaging](https://ru.wordpress.org/plugins/tags/packaging/)[woocommerce](https://ru.wordpress.org/plugins/tags/woocommerce/)
   [Wrapping](https://ru.wordpress.org/plugins/tags/wrapping/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/wc-gift-packaging/advanced/)

## Оценки

 4.7 из 5 звёзд.

 *  [  2 5-звездный отзыв     ](https://wordpress.org/support/plugin/wc-gift-packaging/reviews/?filter=5)
 *  [  1 4-звездный отзыв     ](https://wordpress.org/support/plugin/wc-gift-packaging/reviews/?filter=4)
 *  [  0 3-звездный отзыв     ](https://wordpress.org/support/plugin/wc-gift-packaging/reviews/?filter=3)
 *  [  0 2-звездный отзыв     ](https://wordpress.org/support/plugin/wc-gift-packaging/reviews/?filter=2)
 *  [  0 1-звездный отзыв     ](https://wordpress.org/support/plugin/wc-gift-packaging/reviews/?filter=1)

[Ваш отзыв](https://wordpress.org/support/plugin/wc-gift-packaging/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/wc-gift-packaging/reviews/)

## Участники

 *   [ GDY ](https://profiles.wordpress.org/grandy/)
 *   [ Fouad Vollmer & Gut ](https://profiles.wordpress.org/fouadvollmer/)

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/wc-gift-packaging/)