In Progressrearrange produkt view

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #29324
    Horst
    Participant

    hi there at lafka, i need your help. i just want to rearrange the product view, as you can see in my screenshots. how can i do this?
    cheers, henry
    thanks in advance for your help!

    pizza

    #29329
    Althemist
    Keymaster

    Hello Horst,

    I am afraid that would not be possible. The nutrition guide is part of the short description, so it’s displayed above the product variations and order form.

    #29331
    Horst
    Participant

    wow, this was fast. is it possible via a 3rd party plugin maybe?

    #29340
    Horst
    Participant

    didnt you guys implemented this nutrition guido? so in fact you have to be able to change the parts in its postions? just a thought…

    #29354
    Althemist
    Keymaster

    Hello Horst,

    Yes, it’s our won custom functionality. What I meant was that there is no option in the theme controls to change it’s position. The only option would require the use of a child theme and some coding experience.

    I’ll ask our lead developer Alex to give you instructions. Also, please note that you may also need to adjust the spacing with CSS.

    Regards,
    Dimitar

    #29368
    Horst
    Participant

    That would be great! Thanks.

    #29383
    Alex
    Keymaster

    Hello Horst,

    Here is the whole code you need to move the nutrition info section below the order button on single product view. It can be used either from child theme or any third party plugin. If used from plugin, will be better to use the ‘plugins_loaded’ hook instead of ‘init’.

    add_action( 'init', 'lafka_child_nutrition_override' );
    /**
     * Move Nutrition info section below Order button in single product view
     */
    function lafka_child_nutrition_override() {
    	global $Lafka_Nutrition_Display;
    	if ( isset ( $Lafka_Nutrition_Display ) ) {
    		remove_action( 'woocommerce_single_product_summary', array( $Lafka_Nutrition_Display, 'display_nutrition' ), 7 );
    		add_action( 'woocommerce_single_product_summary', array( $Lafka_Nutrition_Display, 'display_nutrition' ), 39 );
    	}
    }

    Regards,
    Alex

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register