This thread is resolved. Here is a description of the problem and solution.
Problem:
Get the ID of the WooCommerce shop page with get_option('woocommerce_shop_page_id') on a translated page
Solution:
Our developers are checking the issue.
In the meantime I am suggesting you 2 workarounds.
1) Use
1
wc_get_page_id( 'shop' )
2) Go to woocommerce-multilingual/inc/class-wcml-store-pages.php around line 208
$addFilter = function( $slug ) use ( $convertPageId ) { add_filter( 'woocommerce_get_' . $slug . '_page_id', $convertPageId ); };
and change into this :
$addFilter = function( $slug ) use ( $convertPageId ) { add_filter( 'woocommerce_get_' . $slug . '_page_id', $convertPageId ); add_filter( 'option_woocommerce_' . $slug . '_page_id', $convertPageId ); };
Relevant Documentation:
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 3 replies, has 2 voices.
Last updated by 1 year, 10 months ago.
Assisted by: Andreas.