Plugin Directory

Changeset 2286725

Timestamp:
04/19/2020 11:01:25 AM (4 years ago)
Author:
pereirinha
Message:

Version 3.4.1

Location:
woocommerce-variation-details-on-page-product
Files:
36 added
5 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-variation-details-on-page-product/trunk/classes/class-mp-wc-vdopp-settings.php

    r1610189 r2286725  
    1111
    1212        public $plugin_id;
    13         public $section_name;
    1413
    1514        public function __construct() {
    16             global $mp_wc_vdopp;
    17             $this->plugin_id    = $mp_wc_vdopp->plugin_prefix;
    18             $this->section_name = &$this->plugin_id;
     15            $this->plugin_id = 'mp_wc_vdopp';
    1916            add_action( 'admin_init', array( $this, 'verify_first_use' ) );
    2017        }
     
    2219        // Load the class
    2320        public function load() {
    24             add_action( 'admin_init', array( $this, 'load_hooks' ) );
    25         }
    26 
    27         // Call for actions
    28         public function load_hooks() {
    2921            add_filter( 'woocommerce_get_sections_products', array( &$this, 'add_settings_section' ) );
    3022            add_action( 'woocommerce_get_settings_products', array( &$this, 'create_settings_page' ), 10, 2 );
     
    4335        // Create Variations section
    4436        public function add_settings_section( $section ) {
    45             $section[ $this->section_name ] = __( 'Variations', 'mp_wc_vdopp' );
     37            $section[ $this-> ] = __( 'Variations', 'mp_wc_vdopp' );
    4638            return $section;
    4739        }
     
    5042        public function create_settings_page( $settings, $current_section ) {
    5143
    52             if ( $current_section === $this->section_name ) {
     44            if ( $current_section === $this-> ) {
    5345
    54                 $settings = array();
     46                $settings = array();
    5547                $settings[] = array(
    56                     'name'     => __( 'WooCommerce Variation Details on Page Product', 'mp_wc_vdopp' ),
    57                     'type'     => 'title',
    58                     'desc'     => __( 'This plugin has predefined settings outside the box. If you feel comfortable, you are welcome to update data to meet your requirements.', 'mp_wc_vdopp' ) . '<p>' . __( '<strong>Important:</strong> Use a . to identify a class and a # to identify an id.', 'mp_wc_vdopp' ) . '</p>' ,
     48                    'name' => __( 'WooCommerce Variation Details on Page Product', 'mp_wc_vdopp' ),
     49                    'type' => 'title',
     50                    'desc' ,
    5951                );
    6052
     
    7769
    7870                $settings[] = array(
    79                     'name'     => __( 'Before size', 'mp_wc_vdopp' ),
    80                     'id'       => $this->plugin_id . '_before_size',
    81                     'type'     => 'text',
    82                     'desc'     => __( 'Set text before size.', 'mp_wc_vdopp' ),
     71                    'name' => __( 'Before size', 'mp_wc_vdopp' ),
     72                    'id'   => $this->plugin_id . '_before_size',
     73                    'type' => 'text',
     74                    'desc' => __( 'Set text before size.', 'mp_wc_vdopp' ),
    8375                );
    8476
    8577                $settings[] = array(
    86                     'name'     => __( 'Before weight', 'mp_wc_vdopp' ),
    87                     'id'       => $this->plugin_id . '_before_weight',
    88                     'type'     => 'text',
    89                     'desc'     => __( 'Set text before weight.', 'mp_wc_vdopp' ),
     78                    'name' => __( 'Before weight', 'mp_wc_vdopp' ),
     79                    'id'   => $this->plugin_id . '_before_weight',
     80                    'type' => 'text',
     81                    'desc' => __( 'Set text before weight.', 'mp_wc_vdopp' ),
    9082                );
    9183
    9284                $settings[] = array(
    93                     'name'     => __( 'After size', 'mp_wc_vdopp' ),
    94                     'id'       => $this->plugin_id . '_after_size',
    95                     'type'     => 'text',
    96                     'desc'     => __( 'Set text after size.', 'mp_wc_vdopp' ),
     85                    'name' => __( 'After size', 'mp_wc_vdopp' ),
     86                    'id'   => $this->plugin_id . '_after_size',
     87                    'type' => 'text',
     88                    'desc' => __( 'Set text after size.', 'mp_wc_vdopp' ),
    9789                );
    9890
    9991                $settings[] = array(
    100                     'name'     => __( 'After weight', 'mp_wc_vdopp' ),
    101                     'id'       => $this->plugin_id . '_after_weight',
    102                     'type'     => 'text',
    103                     'desc'     => __( 'Set text after weight.', 'mp_wc_vdopp' ),
     92                    'name' => __( 'After weight', 'mp_wc_vdopp' ),
     93                    'id'   => $this->plugin_id . '_after_weight',
     94                    'type' => 'text',
     95                    'desc' => __( 'Set text after weight.', 'mp_wc_vdopp' ),
    10496                );
    10597
    10698                $settings[] = array(
    107                     'type'     => 'sectionend'
     99                    'type'
    108100                );
    109101
    110102                $settings[] = array(
    111                     'name'     => __( 'Donation', 'mp_wc_vdopp' ),
    112                     'desc'     => __( 'Please, support further development of this plugin by buying the guy an extra dose of caffeine.', 'mp_wc_vdopp' ) . '<p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=S626RA3BPS74S" target="_blank"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"></a></p>',
    113                     'type'     => 'title'
     103                    'name' => __( 'Donation', 'mp_wc_vdopp' ),
     104                    'desc' => __( 'Please, support further development of this plugin by buying the guy an extra dose of caffeine.', 'mp_wc_vdopp' ) . '<p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=S626RA3BPS74S" target="_blank"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"></a></p>',
     105                    'type'
    114106                );
    115107            }
  • woocommerce-variation-details-on-page-product/trunk/package.json

    r2258913 r2286725  
    11{
    22  "name": "woocommerce-variation-details-on-page-product",
    3   "version": "3.4.0",
     3  "version": "3.4.",
    44  "description": "WooCommerce Variation Details on Page Product",
    55  "main": "index.js",
  • woocommerce-variation-details-on-page-product/trunk/readme.md

    r2258913 r2286725  
    66Requires at least: 4.3 and WooCommerce 2.4\
    77Tested up to: 5.4.0\
    8 Stable tag: 3.4.0\
     8Stable tag: 3.4.\
    99License: GPLv3 or later\
    1010License URI: http://www.opensource.org/licenses/gpl-license.php
     
    4141## Frequently Asked Questions
    4242
    43 Q. Is there any shortcode that I can use to hook the details?
     43Q. Is there any shortcode that I can use to hook the details?
    4444A. Now there is, hurray. Just use the shortcode `[mp_wc_vdopp_variations]`.
    4545
    46 Q. After upgrading to version 2.0 I'm not able to show my details
     46Q. After upgrading to version 2.0 I'm not able to show my details
    4747A. Due to internal changes, all of the previous definitions of attribute keys were lost. You should go to Variation settings' tab, within WooCommerce settings and define again which attributes you want to handle.
    4848
     
    5757
    5858## Changelog
     59
     60
     61
     62
    5963
    6064### 3.4.0
  • woocommerce-variation-details-on-page-product/trunk/readme.txt

    r2258913 r2286725  
    66Requires at least: 4.3 and WooCommerce 2.4
    77Tested up to: 5.4.0
    8 Stable tag: 3.4.0
     8Stable tag: 3.4.
    99License: GPLv3 or later
    1010License URI: http://www.opensource.org/licenses/gpl-license.php
     
    5757
    5858## Changelog
     59
     60
     61
     62
    5963
    6064### 3.4.0
  • woocommerce-variation-details-on-page-product/trunk/wc-attributes-on-page.php

    r2258913 r2286725  
    55Plugin URI: https://github.com/pereirinha/woocommerce-variation-details-on-page-product
    66Description: Display physical size and weight of product within product meta details.
    7 Version: 3.4.0
     7Version: 3.4.
    88Author: Marco Pereirinha
    99Author URI: http://www.linkedin.com/in/marcopereirinha
     
    2020
    2121            // Definition of version
    22             const VERSION             = '3.4.0';
     22            const VERSION             = '3.4.';
    2323            const VERSION_OPTION_NAME = 'mp_wc_vdopp_version';
    2424
Note: See TracChangeset for help on using the changeset viewer.