• Hello,

    would it be possible to add SKU to all variants?

    is it possible to make your own design – layout – template?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • fazh

    (@fazh)

    Hello! Since developers take their time to reply, I can provide you with the code I have found for this:

    <?php

    add_action( ‘wpcvt_variation_info_after’, ‘display_variation_sku’, 10, 2);

    function display_variation_sku( $variation, $product ) {

    echo ‘<div-SKU>SKU: ‘ . $variation->get_sku() . ‘</div-SKU>’;

    }

    • This reply was modified 8 months ago by fazh.
    Plugin Support Janilyn T

    (@janilyn409)

    Hi wallodya?,

    I have sent a request to our developers to request this feature in the next update of our plugin. Please check back later when there is a new update.

    Hi fazh,

    Thanks so much for your kind support while we are away. We highly appreciate that.

    Best regards.

    fazh

    (@fazh)

    Hey @janilyn409, when you implement it – please try to give us option to position the SKU element where we need it, inside the each variation box. For example, I would like to position it on the top right of the box, but after applying CSS, all SKUs from every variation move to the top right of the first variation, and they get stacked one on top of each.

    Thread Starter wallodya

    (@wallodya)

    Hello,

    I need sku to be with every variation of the product

    I edited the css display

    https://test.partydoplnky.sk/shop/drevene-vyrobky/drevene-zapichy/cisla-na-tortu/dreveny-zapich-na-tortu-plne-cislo/

    Thank you

    fazh

    (@fazh)

    @wallodya, the code I provided adds the corresponding SKU to every variation box.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add SKU’ is closed to new replies.