Plugin Directory

Changeset 1720676


Ignore:
Timestamp:
08/28/2017 03:12:13 PM (9 years ago)
Author:
devlucasmendes
Message:

Add logos new stores; Add BF2017 on name

Location:
fastdee/trunk
Files:
9 added
7 edited

Legend:

Unmodified
Added
Removed
  • fastdee/trunk/assets/css/options-page.css

    r1693082 r1720676  
    1717    text-shadow: 0 -1px 1px rgb(117, 74, 76), 1px 0 1px #713636, 0 1px 1px #9a1212, -1px 0 1px #943838 !important;
    1818}
     19
     20.fastdee_page_fd_opcoes .form-table th {
     21    width: 205px;
     22}
  • fastdee/trunk/assets/js/coupons-page.js

    r1698293 r1720676  
    171171
    172172            if (link && status) {
    173                 showNotify('Link do Cupom comissionado copiado <br>para sua área de transferência!', 2500, 'center', 'success');
     173                showNotify('Link do Cupom comissionado copiado <br>para sua área de transferência!', 3500, 'center', 'success');
    174174            } else {
    175175                noty({
  • fastdee/trunk/assets/js/options-page.js

    r1708614 r1720676  
    2727        jQuery('[name="fd_settings[fd_btn_woocomerce_new_tab]"]').val(jQuery(this).is(':checked'));
    2828    });
     29
     30    jQuery('#fd_show_black_friday_pname').on('change', function () {
     31        jQuery('[name="fd_settings[fd_show_black_friday_pname]"]').val(jQuery(this).is(':checked'));
     32    });
    2933});
    3034
  • fastdee/trunk/includes/core/class-fd-base.php

    r1708163 r1720676  
    6767            5756 => 'casas-bahia',
    6868            5576 => 'walmart',
     69            5632 => "americanas",
     70            5766 => "submarino",
     71            5644 => "shoptime",
     72            6078 => "electrolux",
    6973            5860 => 'ricardo-eletro',
    7074            27   => 'saraiva',
     
    128132            6090 => 'jocar',
    129133            6091 => 'monte-carlo-joias',
     134            6075 => "ikesaki",
     135            6104 => "repassa",
     136            6107 => "popup",
     137            6108 => "shoulder",
     138            6113 => "quantum",
    130139        );
    131140    }
  • fastdee/trunk/includes/core/class-fd-ofertas.php

    r1708614 r1720676  
    208208
    209209                $offerName = $offer->name;
     210
    210211                if ( $this->getOptions( 'fd_show_store_on_pname' ) === 'true' ) {
    211212                    $offerName .= ' (Entregue por ' . $offer->store->name . ') ';
    212213                }
     214
     215                // Black Friday
     216                if ( $this->getOptions( 'fd_show_black_friday_pname' ) === 'true' ) {
     217                    $offerName .= ' - Black Friday 2017';
     218                }
     219
    213220                $arrPost = array(
    214221                    'post_title'   => $offerName,
     
    342349     */
    343350    private function updateProduct( $post_id, $offer ) {
     351        // Add Upd do nome
    344352        update_post_meta( $post_id, '_price', $offer->price );
    345353        update_post_meta( $post_id, '_regular_price', $offer->price );
  • fastdee/trunk/includes/pages/class-fd-options-page.php

    r1708614 r1720676  
    123123            'fd_fd_pluginPage_section',
    124124            array( 'class' => 'fd-hide fd-show-store-logo-text' )
     125        );
     126
     127        //BF_2017
     128        add_settings_field(
     129            'fd_show_black_friday_pname',
     130            __( 'Adicionar "Black Friday 2017" nas ofertas', 'wordpress' ),
     131            array( $this, 'fd_show_black_friday_pname_render' ),
     132            'fd_pluginPage',
     133            'fd_fd_pluginPage_section'
    125134        );
    126135
     
    155164    }
    156165
    157 
    158166    public function fd_btn_woocomerce_text_render() {
    159167        ?>
     
    216224        <?php
    217225    }
     226
     227    public function fd_show_black_friday_pname_render() {
     228        ?>
     229        <input type="hidden" name='fd_settings[fd_show_black_friday_pname]'
     230               value="<?php echo esc_attr( $this->getOptions( 'fd_show_black_friday_pname' ) ); ?>">
     231        <input type='checkbox' id="fd_show_black_friday_pname"
     232            <?php echo esc_attr( checked( $this->getOptions( 'fd_show_black_friday_pname' ), 'true' ) ) ?>
     233               style="margin-right: 186px;">
     234        <span>(No final do nome da oferta será adicionado <em>"Black Friday 2017"</em>)</span>
     235        <?php
     236    }
    218237}
  • fastdee/trunk/readme.md

    r1709307 r1720676  
    136136
    137137= 2.1.1 =
    138 * Correção para funcionar com clientes com Curls desatualizado
     138* Correção para funcionar com clientes com Curls desatualizados
    139139
    140140= 2.1.0 =
Note: See TracChangeset for help on using the changeset viewer.