Okay
  Public Ticket #2630719
SKU on product page
Closed

Comments

  • prinsenstudio started the conversation

    Hi,

    I would like to hide the SKU ## from my product page, can you guide me how ?

    Thank you

  •  933
    Neuron replied

    Hi,

    Can you please provide me with your wp-admin, I will add some code to display the SKU.

    Feel free to ask for anything you need.

    Kind Regards


  •   prinsenstudio replied privately
  •  933
    Neuron replied

    Hi,

    We've added the following code at Appearance > Theme editor > functions.php, so the SKU of the product will be displayed just below the product price.

    function rupom_custom_price_sku( $price ) { 
        global $woocommerce , $product;
        $sku = $product->get_sku();
        if (is_shop() || is_product_category() || is_product_tag()){
            return $price . '<br><span class="price-sku">Item #' . $sku . '</span>';
        }
        else { 
            return $price; 
        } 
    }
    add_filter( 'woocommerce_get_price_html', 'rupom_custom_price_sku' );
    

    Feel free to ask for anything you need.

    Kind Regards


  • prinsenstudio replied

    Thank you for that.
    I do not see any changes though and my question was to be able to HIDE the SKU number from the product page.
    Of course it should be visible in the backend and with the check-out and billing, but preferably not on the product item page.

    Another thing that is on the product item page is this mention: 
    The plugin NeuronThemes share is not activated, please activate it and try it again. The plugin can be found in includes > plugins.

    We can not find how to get rid of it or we can not find 'includes>plugins'

    Nor can we find "Neuron Core plugin" in the search for plugins. 

    All in all the question really is
    where do we make adjustments to my product page

    Thank you for your help. 

  •  933
    Neuron replied

    Hi,

    1) Sorry for this misunderstanding, I thought that you want to show the SKU, so now I've removed the code that I've added before at the functions.php file, and added this one at Appearance > Customize > Additional CSS.

    2) Can you please provide me with a screenshot of that.

    Feel free to ask for anything you need.

    Kind Regards


  • prinsenstudio replied

    Yes ! This one is taken care of, thank you so much !

  •  933
    Neuron replied

    You are welcome anytime, feel free to ask for anything you need

    If you like our theme, please leave us a rate of 5 stars at ThemeForest, that would help us a lot.

    Kind Regards,
    NeuronThemes