Forum Replies Created

Viewing 15 replies - 1 through 15 (of 55 total)
  • solagirl

    (@solagirl)

    I’m facing the same issue. I think this is a bug of the theme.

    The setting which controls display of single post feature image is named ast-dynamic-single-post-structure.

    If I import a website then everything works great. If I start anew, I can’t find anyway to update this value. It is just empty. Then fallback to the default value of get_option() which only contains post title and post meta, no post image.

    Anyway, I fixed it by adding the code below to my theme’s function.php.

    add_filter( 'astra_get_option_ast-dynamic-single-post-structure', function( $value ){
    	array_unshift( $value, 'ast-dynamic-single-post-image');
    	return $value;
    });
    Thread Starter solagirl

    (@solagirl)

    Hi,
    Thank you for the reply. I just found out that the issue is not that simple. The sgo_ignored_query_params and sgo_bypass_cookies filters are not working.

    1. I think the logic of the function below is incorrect. First the bypass_query_params is supposed to be ignored_query_params.
    Secondly, the bypass_query_params variable is currently empty, as a result the cache will be bypassed as long as there is a parameter in the url.

    public function has_ignore_query_params() {
    	// Iterate through the query array and unset the unneeded params.
    	foreach ( $_GET as $param => $value ) {
    		if ( ! in_array( $param, $this->bypass_query_params, true ) ) {
    			return true;
    		}
    	}
    
    	return false;
    }

    I think the correct logic should be like below,

    public function has_ignore_query_params() {
    	// Iterate through the query array and unset the unneeded params.
    	foreach ( $_GET as $param => $value ) {
    		if ( in_array( $param, $this->ignored_query_params, true ) ) {
    			return true;
    		}
    	}
    
    	return false;
    }

    2. The two filters I mentioned above are only used to create the config file, when generating cache files, they are not used at all. So no matter what I passes to the filter, it won’t work.
    To bypass cache-spawn process by cookie or parameters I have to directly modify the two variables below in File_Cacher.php

    private $bypass_cookies = array(
    	'woocommerce_items_in_cart',
    	'edd_items_in_cart',
    	'wordpress_logged_in_',
    	'wpSGCacheBypass',
    	'comment_author_',
    	'my_cookie'
    );

    private $bypass_query_params = array('my_param');

    If I add my cookie and parameters to those two, it will work as expected.

    I’m using a currency switcher for a woocommerce website and I don’t want pages cached when the currency is not the default one. This is my situation, please help me out.

    Thank you for your help.

    Thread Starter solagirl

    (@solagirl)

    Hello @adamdunnage, thank you for your help, I will see what I can do on my end and mark this thread solved.

    Best regards

    Thread Starter solagirl

    (@solagirl)

    Hi Simeon,

    Thanks for the reply, I fully understand the situation. It’s my client who keeps thinking there was something wrong with the website. Your reply is quite helpful.

    Thanks for the great work.

    Hello,
    I was about to report the same error. Lucky to see that you have posted it.

    The error happens when you deleted your products and made $product null. To fix it, just be sure to check $product exists before using it.

    Hope this get fixed soon.

    Thank you very much.

    Hi,
    The sandbox is not for global alipay either. However, I haven’t actually use that for myself.I am only sure that you can’t test the website integration with that.

    Of course I’m interested in coding, that’s what I do. As I mentioned I am with a team, and if you are interested please do learn more about us at http://www.codingpet.com/ and maybe leave us a message about your websites.

    1. After login, the transaction records are right in front of you labeled as “交易记录”, you should be able to find some orange buttons that say “确认收货” or “等待发货”. The buttons in orange color indicate that you need to take some actions.

    2. I’m not sure of your business type, the direct payment requires you have a company registered in China. If you do have such an account, you need to apply for the direct payment service in your alipay account. If it gets approved, you can use this method. The ILLEGAL_PARTNER_EXTRAFACE error means you are trying to use a service that is not enabled for you.

    3. Sadly there is no sandbox account for alipay.com in China, well most Chinese companies just don’t provide such useful features for the Chinese. The sandbox you mentioned is not for such cases. But if you use alipay’s service for people from other countries(global.alipay.com), you do get a sandbox but that’s another story. Because you need to register a new account for that and use a paid plugin called Alipay Cross Border Payment Gateway which has nothing to do with me. For testing, the best way for now is to pay 0.01 RMB.

    BTW, I’m the author of the alipay for woocommerce plugin. Just use the team account to publish it.

    Hi, are you using escrow payment method? If yes then has your friend released the money to you from his/her alipay account?

    The way of alipay dealing with payment is quite different from payment methods like paypal.

    When your friend placed an order and made the payment on your store, the money didn’t go to your account, instead it was sent to Alipay and supervised by Alipay.

    Your friend must go to his/her alipay account and confirms that the order is received. Then the money can be released to you, then you can actually see the 1.99 RMB in your account.

    For now you should be able to find the transition record in your alipay account, although the money is still held by Alipay.

    I’m sorry but alipay’s process is really difficult for foreigners to understand. I once explained it to one of my client with several emails and illustrators and he took days to know what really happened.

    I got this issue today with WordPress 4.1, and I solved it by going to “BWP reCAPT->General options”.
    At the bottom of the page find section “Contact Form 7 Integration”, from the dropdown menu select the Use “recaptcha” shortcode tag option.

    I don’t recommend elegant builder, not because of its price but the way it works is out of date.

    You should try Visual Composer which is more modern, easier to use and much promising.

    Just ignore the alert, nothing will be lost. Since the author doesn’t update this plugin anymore, I guess you can either live with it or switch to another editor.

    The new update fixed the problem. Love this plugin!

    Same here, every search generates a sql error loged in error_log, no search results.

    @daigo75

    Is this plugin compatible with cache plugins like wp super cache?
    Thanks.

    Thread Starter solagirl

    (@solagirl)

    Hi, please paste it into footer.php, right before the end of body tag.
    The code only works for gallery generated by nextgen gallery plugin. And also make sure jquery is loaded.
    It is a long time from when I posted the code, I’m not quite sure if it still works.

Viewing 15 replies - 1 through 15 (of 55 total)