Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mobilmacher

    (@mobilmacher)

    Hey

    Any updates on this? We just tested again on Version 14, but it seems like there’s still no compatibility.

    Kind regards

    After some digging around, here is a quick fix:

    Important: Make a backup of your database first, in case something goes wrong!

    Open your database. Go to wp_options (or {your_table_prefix}_options) and look for the option_name “wp_statistics”. Now edit the option_value: Change the entry after “read_capability” to “manage_options”.

    Now you should be able to view and edit your WP Statistics settings again. In case the plugin still doesnt work as expected, you should check out the “Deinstallation” tab to reset the settings.

    Same problem here!

    Thread Starter mobilmacher

    (@mobilmacher)

    So, I talked to the Polylang support team. They did some investigation work and came up with the following code, you might consider including in your next update:

    add_action( 'pllwc_init', function() {
    		$actions = array(
    			// order shipped
    			'woocommerce_gzd_shipment_status_draft_to_shipped_notification',
    			'woocommerce_gzd_shipment_status_processing_to_shipped_notification',
    			//order return
    			'woocommerce_gzd_return_shipment_status_draft_to_processing_notification',
    			'woocommerce_gzd_return_shipment_status_requested_to_processing_notification',
    			//order return delivered
    			'woocommerce_gzd_return_shipment_status_processing_to_delivered_notification',
    			'woocommerce_gzd_return_shipment_status_shipped_to_delivered_notification',	
    		);
    
    		foreach ( $actions as $action ) {
    			add_action( $action, function( $shipment_id ) {
    				$shipment = wc_gzd_get_shipment( $shipment_id );
    				PLLWC()->emails->before_order_email( $shipment->get_order() );
    			}, 1 ); // Switch the language for the email
    			
    			add_action( $action, array( PLLWC()->emails, 'after_email' ), 999 ); // Switch the language back after the email has been sent
    		}
    } );

    However, they couldn’t figure out how the “customer invoice cancellation” email is triggered. Can you please tell me how this is done or contact the Polylang support directly at support@polylang.pro.

    Thanks

    Thread Starter mobilmacher

    (@mobilmacher)

    Thank you for your reply. I contacted the support of the Polylang Pro plugin and they gave me the following answer:

    Emails are sent through actions. And we need to hook Polylang to these actions to translate the email. So Polylang will translate emails only for known actions (the email itself doesn’t matter, only the action name). These actions are the ones used by WooCommerce. If this plugin sends emails upon an action unknown to Polylang, it won’t be translated. If this plugin use the WooCommerce actions so it will work. I recommend you to contact the plugin authors to check with them if they are using the same actions that use WooCommerce to send the emails.

    Do the WGZD and WGZD Pro plugins only use WooCommerce actions or do they use their own?

    Regarding the PDF emails it requires a specific compatibility to generate them in the correct language. … You should ask to the Germanized for WooCommerce Pro authors if they have already included a compatibility with Polylang for WooCommerce in order to translate the PDF.

    As you already stated before, explicit compatibility to translate emails using WPML is given. Can you tell me if this compatibility is also given for PDFs?

    Thread Starter mobilmacher

    (@mobilmacher)

    True, not compatible with Avada. Too bad.

    Thanks!

    Thread Starter mobilmacher

    (@mobilmacher)

    Ok. Thanks for the hint.

    In this case a feature would be helpful that allows you to set a default user group for files that have been uploaded in the media library.

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