Hi, I need a structure like below.
11111_1
11
33.90
Renk
Kırmızı
Beden
36
add_shortcode( 'alg_product_variations_multiplied_by_variant', 'alg_product_variations_multiplied_by_variant' );
if ( ! function_exists( 'alg_product_variations_multiplied_by_variant' ) ) {
function alg_product_price_multiplied_by_stock( $atts ) {
global $product;
if ( $product->is_type( 'variable' ) ) {
$available_variations = $product->get_available_variations();
foreach ( $available_variations as $key => $value ) {
print ''.$value["variation_id"].'';
print 'Renk';
print ''.$value["attributes"]["attribute_pa_renk-secimi"].'';
print '';
}
return;
}
}
}
I wrote the following function. But it doesn’t work with this plugin. How can we integrate it?
-
This topic was modified 1 year, 3 months ago by
Omar Dabbas.