Title: Crantea's Replies | WordPress.org

---

# Crantea

  [  ](https://wordpress.org/support/users/crantea/)

 *   [Profile](https://wordpress.org/support/users/crantea/)
 *   [Topics Started](https://wordpress.org/support/users/crantea/topics/)
 *   [Replies Created](https://wordpress.org/support/users/crantea/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/crantea/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/crantea/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/crantea/engagements/)
 *   [Favorites](https://wordpress.org/support/users/crantea/favorites/)

 Search replies:

## Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP WooCommerce Mailchimp] Groups are not passed through to mailchimp](https://wordpress.org/support/topic/groups-are-not-passed-through-to-mailchimp/)
 *  Thread Starter [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/groups-are-not-passed-through-to-mailchimp/#post-4659428)
 * Thank you very much for the quick reply!
    I’ve issued a pull request with an 
   addition to the readme that might add clarity on the correct data to use when
   configuring this section.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP WooCommerce Mailchimp] Groups are not passed through to mailchimp](https://wordpress.org/support/topic/groups-are-not-passed-through-to-mailchimp/)
 *  Thread Starter [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/groups-are-not-passed-through-to-mailchimp/#post-4659396)
 * I’ve done a different test on a separate WP+Woo+MailChimp+your plug-in installation
   and oddly enough it added the user into the wrong group – not the one specified
   in the admin, under the Group Name section.
    If I erase it, it adds the user 
   without a group name – which is correct, so it’s a matter of figuring out which
   group the user should be added to, and I think it’s not picking up the name correctly.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Blocks] [Plugin: WP-Blocks] Not working in WordPress 3.1.1](https://wordpress.org/support/topic/plugin-wp-blocks-not-working-in-wordpress-311/)
 *  [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-blocks-not-working-in-wordpress-311/#post-2021967)
 * You need to change this:
    wp_register_script(‘wpb-js’, WP_PLUGIN_URL.’/wp-blocks/
   js/wp-blocks.js’);
 * To this:
    wp_register_script(‘wpb-js’, WP_PLUGIN_URL.’/wp-blocks/js/wp-blocks.
   js’,array(),false,true);
 * Inside wp-blocks.php
 * It fixed it for me.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-e-commerce-multi-currency-magic] [Plugin: wp-e-commerce-multi-currency-magic] Currency Sign bug](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/)
 *  [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/#post-1736905)
 * Having two jquery versions on the same page is not a good thing, as random conflicts
   can occur (mix’n’match various jquery versions and you’ll get random new bugs),
   been there, done that.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-e-commerce-multi-currency-magic] [Plugin: wp-e-commerce-multi-currency-magic] Currency Sign bug](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/)
 *  [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/#post-1736903)
 * Congratulations slinkyap 😉
    I had some problems with the wp-e-commerce.js file
   as well, but they were caused by me wanting to use the latest jquery version 
   in the theme. I had to rely on using 1.4 for it to remain functional.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-e-commerce-multi-currency-magic] [Plugin: wp-e-commerce-multi-currency-magic] Currency Sign bug](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/)
 *  [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/#post-1736900)
 * [@slinkyap](https://wordpress.org/support/users/slinkyap/),
 * Different versions of wp-ecommerce can have different javascript files, so it
   is possible that the wp-ecommerce version to have a cause in this.
    Try upgrading
   to the latest version.
 * I currently have Version 3.7.8 installed, and the magic multi-currency still 
   work.
 * You can try one last trick -> try to activate the default theme (twentyten) and
   see if the first price still changes after page load.
    Maybe there’s a JS in 
   the theme that’s causing this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-e-commerce-multi-currency-magic] [Plugin: wp-e-commerce-multi-currency-magic] Currency Sign bug](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/)
 *  [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/#post-1736897)
 * Hi slinkyap,
 * As far as I can tell, there’s nothing wrong with the multi-currency plug-in, 
   but instead with some of the javascript you use on your website.
 * With javascript disabled, the page loads just fine with the proper currency:
   
   [http://cl.ly/5nBi](http://cl.ly/5nBi)
 * When enabling javascript, a few seconds after the page loads the currency switches
   for no apparent reason back to Aud.
 * Good luck with debugging it, at least you know now where to look 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-e-commerce-multi-currency-magic] [Plugin: wp-e-commerce-multi-currency-magic] Currency Sign bug](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/)
 *  [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/#post-1736878)
 * Hi mcnick,
 * Not sure why the shipping currency and amount don’t change on your side.
 * From what I notice both the total shipping and product price get the same convert_price
   function as a filter.
    add_filter(‘wpsc_convert_total_shipping’,’wpsc_convert_price’);
   add_filter(‘wpsc_do_convert_price’,’wpsc_convert_price’);
 * So, basically if it works in one place (product prices), I don’t find a reason
   why it shouldn’t work on the shipping as well.
 * Do post here if you get to debug this.
 *   Forum: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
    In 
   reply to: [Add wmode transparent to flash videos](https://wordpress.org/support/topic/add-wmode-transparent-to-flash-videos/)
 *  [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/add-wmode-transparent-to-flash-videos/#post-1304131)
 * I’ve created a short 7-lines filter doing just that (shorter and easier to understand
   imho):
    [http://www.mehigh.biz/wordpress/adding-wmode-transparent-to-wordpress-3-media-embeds.html](http://www.mehigh.biz/wordpress/adding-wmode-transparent-to-wordpress-3-media-embeds.html)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-e-commerce-multi-currency-magic] [Plugin: wp-e-commerce-multi-currency-magic] The plugin is confusing for customers](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-the-plugin-is-confusing-for-customers/)
 *  [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-the-plugin-is-confusing-for-customers/#post-1768331)
 * You might want to check the following topic for a fix:
    [http://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug?replies=3#post-1805464](http://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug?replies=3#post-1805464)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-e-commerce-multi-currency-magic] [Plugin: wp-e-commerce-multi-currency-magic] Currency Sign bug](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/)
 *  [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/#post-1736874)
 * I couldn’t detect properly the ‘primary’ currency symbol, so my fix will probably
   tackle the “$” problem only.
    Not an expert here, so suggestions are welcomed.
 * Posted the entire updated wpsc-currency-changer.php (version 0.1) file here:
   
   [http://multi-currency-magic.pastebin.com/MktKvAcN](http://multi-currency-magic.pastebin.com/MktKvAcN)
 * In case the plug-in gets updated, I pasted below the changes I made to the file:
 * The important lines follow:
    Updated this function:
 *     ```
       function wpsc_add_currency_code($total){
       	global $wpsc_cart;
       //	exit($wpsc_cart->selected_currency_code);
       	if ($wpsc_cart->selected_currency_code != 'USD') {
       		$total = str_replace('$','',$total);
       		$total = $wpsc_cart->selected_currency_code.' '.$total;
       	}
       //	exit($total);
       	return $total;
       }
   
       function wpsc_add_currency_code_to_price($productprice){
       	global $wpsc_cart;
       	if ($wpsc_cart->selected_currency_code != 'USD') {
       		$productprice = str_replace('$','',$productprice);
       		$productprice = $wpsc_cart->selected_currency_code.' '.$productprice;
       	}
       	return $productprice;
       }
       ```
   
 * And at the end of the file (before ?>) the following line is added:
    `add_filter('
   wpsc_price_display_changer_to_price', 'wpsc_add_currency_code_to_price');`
 * The wpsc_add_currency_code function updates the cart area (removes the $ sign,
   and appends the new currency symbol before the price if the currently chosen 
   option is not USA).
 * The wpsc_add_currency_code_to_price function updates the prices in-page (just
   like on the cart). Unfortunately there isn’t a way to update the product price
   symbol (since there’s no filter available).. so a change to the wp-ecommerce 
   files need to be made.
 * The following file needs to be changed:
    /wp-e-commerce/wpsc-includes/wpsc_query.
   php
 * Inside the wpsc_the_product_price function I added the **$output = apply_filters(‘
   wpsc_price_display_changer_to_price’, $output);** line near the end:
 *     ```
       function wpsc_the_product_price($no_decimals = false) {
       	global $wpsc_query;
       	$price = calculate_product_price($wpsc_query->product['id'], $wpsc_query->first_variations);
       	if(($wpsc_query->product['special_price'] > 0) && (($wpsc_query->product['price'] - $wpsc_query->product['special_price'] ) >= 0) && ($variations_output[1] === null)) {
       		$output = nzshpcrt_currency_display($price, $wpsc_query->product['notax'],true, $wpsc_query->product['id']);
       	} else {
       		$output = nzshpcrt_currency_display($price, $wpsc_query->product['notax'], true);
       	}
       	if($no_decimals == true) {
       		$output = array_shift(explode(".", $output));
       	}
       //	echo 'NO DECIMALS VALUE:'.$no_decimals;
       	//echo "<pre>".print_r($wpsc_query->product,true)."</pre>";
       	$output = apply_filters('wpsc_price_display_changer_to_price', $output);
       	return $output;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-e-commerce-multi-currency-magic] [Plugin: wp-e-commerce-multi-currency-magic] Currency Sign bug](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/)
 *  [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-multi-currency-magic-currency-sign-bug/#post-1736873)
 * Encountered the same problem myself.
    I will probably have to fork into the plug-
   ins code to get this going. Cross your fingers for the changes to not be very
   complex 🙂
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [Add Link Error](https://wordpress.org/support/topic/add-link-error/)
 *  [Crantea](https://wordpress.org/support/users/crantea/)
 * (@crantea)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/add-link-error/#post-648839)
 * The same error happened to me, but in a different place
    * after registering 
   a new user * after posting a new comment (on server with PHP 4.4.7)
 * I tried it with all the plugins disabled and with the default theme.
    Same error:
   Warning: call_user_func_array() [function.call-user-func-array]: First argumented
   is expected to be a valid callback, ‘sanitize_url’ was given in /home/pyaorgco/
   public_html/wp-includes/plugin.php on line 59
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/../public_html/wp-includes/plugin.php:59) in /home/../public_html/wp-
   includes/pluggable.php on line 391
 * I installed the same wordpress on another server (with PHP 5) and the error disappears.
   Can this work on PHP4 too ?

Viewing 13 replies - 1 through 13 (of 13 total)