Crantea
Forum Replies Created
-
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] Groups are not passed through to mailchimpThank 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
In reply to: [WP WooCommerce Mailchimp] Groups are not passed through to mailchimpI’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
In reply to: [WP-Blocks] [Plugin: WP-Blocks] Not working in WordPress 3.1.1You 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.
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.
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.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.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/5nBiWhen 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 😉
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
In reply to: Add wmode transparent to flash videosI’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.htmlYou 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-1805464I 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/MktKvAcNIn 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.phpInside 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; }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
In reply to: Add Link ErrorThe 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 59Warning: 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 ?