Support » Plugin: WP eCommerce » remove echo 'test': from v3.8.10

  • Hi getshopped devs,

    I think you missed removing echo ‘test’: from your code before release.

    /**
     * @todo docs
     * @uses $wpdb  WordPress database object for queries
     */
    function wpsc_change_currency() { echo 'test';
     if ( is_numeric( $_POST['currencyid'] ) ) {
      $currency_data = $wpdb->get_results( $wpdb->prepare( "SELECT <code>symbol</code>,<code>symbol_html</code>,<code>code</code> FROM <code>&quot; . WPSC_TABLE_CURRENCY_LIST . &quot;</code> WHERE <code>id</code>=%d LIMIT 1", $_POST['currencyid'] ), ARRAY_A );
      $price_out = null;
      if ( $currency_data[0]['symbol'] != '' ) {
       $currency_sign = $currency_data[0]['symbol_html'];
      } else {
       $currency_sign = $currency_data[0]['code'];
      }
      echo $currency_sign;
     }
    }

    You might want to take that out.

    http://wordpress.org/extend/plugins/wp-e-commerce/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘remove echo 'test': from v3.8.10’ is closed to new replies.