WordPress.org

Forums

WP eCommerce
[resolved] remove echo 'test': from v3.8.10 (3 posts)

  1. Steve Truman
    Member
    Posted 2 years ago #

    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/

  2. Justin Sainton
    Member
    Plugin Author

    Posted 2 years ago #

  3. Steve Truman
    Member
    Posted 2 years ago #

    Thanks Justin

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic