Plugin Directory

Changeset 1708563


Ignore:
Timestamp:
08/04/2017 06:18:44 PM (9 years ago)
Author:
devlucasmendes
Message:

get all categories

Location:
fastdee/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • fastdee/trunk/includes/core/class-fd-ofertas.php

    r1708163 r1708563  
    4848        // Security Check
    4949        if ( ! wp_verify_nonce( $_POST['fd_nonce'], '_nonce_fd_import_offers_ldk184' ) || ! defined( 'ABSPATH' ) ) {
    50             echo json_encode( array( 'error' => true, 'msg' => 'WP Security check Error' ) );
     50            echo json_encode( array( 'error' => true, 'msg' => 'Erro de seguraça.</br>Verifique se está logado!' ) );
    5151            wp_die();
    5252        }
     
    143143        // Security Check
    144144        if ( ! wp_verify_nonce( $_POST['fd_nonce'], '_nonce_fd_import_offers_ldk184' ) || ! defined( 'ABSPATH' ) ) {
    145             echo json_encode( array( 'error' => true, 'msg' => 'WP Security check Error' ) );
     145            echo json_encode( array( 'error' => true, 'msg' => 'Erro de seguraça.</br>Verifique se está logado!' ) );
    146146            wp_die();
    147147        }
  • fastdee/trunk/includes/core/class-fd-pages.php

    r1698293 r1708563  
    1212
    1313    public function fd_getCategorias() {
    14         $strRetorno = $this->getLomadeAccess()->findCategories( alv2::_BESTSELLERS, array(
     14        $strRetorno = $this->getLomadeAccess()->findCategories( alv2::_ALL, array(
    1515            'size'       => 1000,
    16             'hasProduct' => true // TODO colocar na assinatura
     16            //'hasProduct' => true
    1717        ) );
    1818        $arrRetorno = json_decode( $strRetorno );
  • fastdee/trunk/includes/libraries/alv2/alv2.php

    r1697588 r1708563  
    4141        $queryArgs = http_build_query( $args );
    4242        $url       = "https://{$this->getEnvironment()}.lomadee.com/v2/{$this->getAppToken()}/{$resourceName}/{$serviceName}/{$objectId}?{$queryArgs}";
    43 
     43        //echo $url;die;
    4444        $curl = curl_init();
    4545        curl_setopt( $curl, CURLOPT_URL, $url );
  • fastdee/trunk/includes/pages/class-fd-options-page.php

    r1708169 r1708563  
    6666        $texto_sourceId = '*ID Lomadee';
    6767
    68         if ( $this->temSourceId() ) {
    69             $texto_sourceId .= ' (' . $this->getSourceID() . ')';
    70         }
     68//      if ( $this->temSourceId() ) {
     69//          $texto_sourceId .= ' (' . $this->getSourceID() . ')';
     70//      }
    7171        add_settings_field(
    7272            'fd_sourceID',
  • fastdee/trunk/readme.md

    r1708169 r1708563  
    119119* Melhora de performance / Importação mais rápida.
    120120* Exibição do source ID na página de opções.
     121* Todas as categorias da Lomadee nas opções.
    121122
    122123= 2.3.0 =
Note: See TracChangeset for help on using the changeset viewer.