Hi GeLeTo,
It didn’t work for me, I put the code where you indicate, but nothing changes
Is it ok?
// save related products selector on product edit screen
function crp_save_related_products( $post_id, $post ) {
global $woocommerce;
if ( isset( $_POST['related_ids'] ) ) {
if ( $woocommerce->version >= '2.3' ) {
$related = isset( $_POST['related_ids'] ) ? array_filter( array_map( 'intval', explode( ',', $_POST['related_ids'] ) ) ) : array();
// GD TRADUCIR WPML
$rellength=count($related);
for($i = 0; $i<$rellength; $i++) {
$related[$i] = apply_filters( 'wpml_object_id', $related[$i], 'product', TRUE );
}
Thanks!