quantlego
Forum Replies Created
-
Forum: Plugins
In reply to: [Alipay For WooCommerce] 请教从数据库提取汇率Finally I got the exchange rate by defining a custom shortcode [exchangerate]
function get_exchange_rate($atts) {
$obj = new WC_Alipay;
return $obj->exchange_rate;
}
add_shortcode(“exchangerate”, “get_exchange_rate”);Forum: Plugins
In reply to: [Alipay For WooCommerce] 请教从数据库提取汇率Finally I got the exchange rate by creating a custom shortcode [exchangerate]:
function get_exchange_rate($atts) {
$obj = new WC_Alipay;
return $obj->exchange_rate;
}
add_shortcode("exchangerate", "get_exchange_rate");
Forum: Plugins
In reply to: [Alipay For WooCommerce] 请教从数据库提取汇率在补充一下,我估计您的意思是把汇率某个值直接写到wp_options表里。
我现在在使用Alipay for Woocommerce插件,在插件设置里面,假设我已经设置了美元和人民币之间的汇率为6.4,因此插件已经把这个6.4写到数据库里了。 我现在想要做的,就是从数据库里面把这个6.4读取出来,而不是直接把已知的6.4数值直接写入wp_options.
另外,您说的修改模板显示人民币价格,麻烦您能不能告诉用什么PhP函数来读取您的插件设置的这个值?如果知道怎么用PhP读这个汇率值,也许我可以写一个shortcode来直接显示人民币价格。
Forum: Plugins
In reply to: [Alipay For WooCommerce] 请教从数据库提取汇率我用Phpmyadmin查看数据库,Alipay插件已经把汇率写到数据库里了,仿佛是JSON格式存在那里。请教该如何把那个已经在数据库的汇率值提取出来,然后再存储到wp_options表里?我是需要用filter来实现吗?
非常感谢指导!
Forum: Fixing WordPress
In reply to: the plugin search box in admin does not workI deactivate all and then reactive all, now it works!
Thanks a lot Tara.
Forum: Plugins
In reply to: [Smooth Slider] Slides stackingMyfooter.php contains
<?php wp_footer(); ?>
But the images still stacked. I am using the ‘Responsive Mobile’ theme by CyberChimps.
Can you help me to fix the issue? Thanks a lot.
Forum: Plugins
In reply to: [Quick Featured Images] Can't Remove Featured Image ColumnI have same issue, and deactivated the plugin, WIll resume using it when the bug is fixed.
Thank you very much for providing this great plugin.
Forum: Plugins
In reply to: [Extended Table of Contents (with nextpage support)] TOC links not workHere is my page using extended TOC.
http://www.quantlego.com/knowledge/economics-basics-tutorial
As you can see, click to page 2 does not go to page 2, but still staying in first page.