• I’d need to move the GTIN code right under the SKU in the product page, but in the dropdown menu there isn the option, how can I hook into it and move it?

    Thank you
    @kreamweb

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Emanuela Castorina

    (@kreamweb)

    Hello,
    please don’t stalk me, only this thread is enough.

    These are hooks:

    $action   = apply_filters( 'wpm_pgw_show_single_product_message_position_action', $action, $position, $priority );
    		$priority = apply_filters( 'wpm_pgw_show_single_product_message_position_priority', $priority, $position, $action );

    you can filter the action and also the priority.

    Thread Starter artemis21

    (@artemis21)

    Grazie Emanuela,
    scusami per il tag ma vedendo gli altri post senza risposta e volevo essere sicuro che arrivasse all’autore del plugin.
    Grazie per il codice. Secondo te sarebbe possibile aggiungere il codice GTIN anche a fianco ai prodotti variabili nella tab della scheda prodotto? come in questo screen ad esempio: https://i.imgur.com/zWg2nCs.png

    Thank you Emanuela,
    sorry for the tag, I’ve seen many posts without replies and just wanted to make sure it reached out to you.
    Thank you for the hook. Do you think it would also be possible to add GTIN code to the Additional Information tab of the product page like so https://i.imgur.com/zWg2nCs.png?

    Grazie

    Plugin Author Emanuela Castorina

    (@kreamweb)

    You should looking the section where that is printed and add the shortcode:

    [wpm_product_gtin]

    you can use these attributes:

    id the product id
    label the label that will be displayed before the code. By default is “Code EAN:”, but this can be changed inside the settings panel.
    wrapper you can wrap the label and GTIN code in div or span. By default is ‘div’ for the shop page and ‘span’ on the other pages.
    wrapper_code the container of GTIN code. By default is a ‘span’.
    class the class of wrapper container. By default is ‘wpm_gtin’.
    class_wrapper the class of wrapper code container. By default is ‘wpm_gtin_code_wrapper’.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to move GTIN under SKU?’ is closed to new replies.