Custom XML structure help

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #105736
    Kadir
    Participant

    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, 1 month ago by Omar Dabbas.
    #105737
    Kadir
    Participant

    I guess html and xml tags are blocked here.
    This is example link: https://i.hizliresim.com/qnJpQe.jpg

    How can I make part of the Variants here?

    #105738
    WPWhale
    Moderator

    Hi Kadir,

    Sorry but the plugin can’t generate this code by default, I need to understand what you’re trying to get (result XML) so I can see if it’s doable through the plugin or no.

    Please send me the details to [email protected]

    Omar

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.