Plugin Directory

Changeset 795898


Ignore:
Timestamp:
10/30/2013 12:50:01 PM (12 years ago)
Author:
ctala
Message:

Deshabilitado el código postal

Location:
woocommerce-chilean-peso-currency/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-chilean-peso-currency/trunk/readme.txt

    r764271 r795898  
    1111Tested up to: 3.6
    1212
    13 Stable tag: 2.3
     13Stable tag: 2.4
    1414
    1515== Description ==
     
    2323
    2424
     25== TODO ==
     26
     27Agregar panel de administración para las variables.
    2528
    2629== Changelog ==
    2730
     31= 2.4 =
     32
     33Se deshabilita el código postal como obligatorio.
    2834
    2935= 2.2 =
  • woocommerce-chilean-peso-currency/trunk/woocommerce-chilean-peso.php

    r764271 r795898  
    55  Plugin URI: http://plugins.svn.wordpress.org/woocommerce-chilean-peso-currency/
    66  Description: This plugin add the chilean currency, symbol , paypal and the states to WooCommerce.
    7   Version: 2.3
     7  Version: 2.4
    88  Author: Cristian Tala Sánchez <cristian.tala@gmail.com>
    99  Author URI: http://www.cristiantala.cl
     
    8989}
    9090
     91
     92// Se eliminan los datos postales como obligatorios.
     93function postalcode_override_default_address_fields( $address_fields ) {
     94     $address_fields['postcode']['required'] = false;
     95
     96     return $address_fields;
     97}
     98
     99//Se eliminan los códigos portales como obligatorios. (Filtro)
     100add_filter( 'woocommerce_default_address_fields' , 'postalcode_override_default_address_fields' );
     101
    91102add_filter('woocommerce_paypal_args', 'convert_clp_to_usd');
    92103add_filter('woocommerce_states', 'custom_woocommerce_states');
Note: See TracChangeset for help on using the changeset viewer.