Forum Replies Created

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thanks Johann, We are doing it like tis now, but ut’s too time consuming and the data entry people don’t have the knowledge to do it this way. The site has more than 20000 pages. Doing it like this can open to a lot of errors. Thanks again.

    We just updated to 3.0 on the dev site. Here is what we did.
    We edited 2 files:
    wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-general.php
    and
    wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-inventory.php

    In html-product-data-inventory.php
    we copied then deleted line 5 to 15
    if ( wc_product_sku_enabled() ) {
    woocommerce_wp_text_input( array(
    ‘id’ => ‘_sku’,
    ‘value’ => $product_object->get_sku( ‘edit’ ),
    ‘label’ => ‘<abbr title=”‘ . __( ‘Stock Keeping Unit’, ‘woocommerce’ ) . ‘”>’ . __( ‘SKU’, ‘woocommerce’ ) . ‘</abbr>’,
    ‘desc_tip’ => true,
    ‘description’ => __( ‘SKU refers to a Stock-keeping unit, a unique identifier for each distinct product and service that can be purchased.’, ‘woocommerce’ ),
    ) );
    }

    do_action( ‘woocommerce_product_options_sku’ );

    In html-product-data-general.php
    we added the code line 25
    <div class=”options_group pricing show_if_simple show_if_external hidden”>
    <?php
    PAST CODE HERE
    woocommerce_wp_text_input( array(
    ‘id’ => ‘_regular_price’,
    ‘value’ => $product_object->get_regular_price( ‘edit’ ),
    ‘label’ => __( ‘Regular price’, ‘woocommerce’ ) . ‘ (‘ . get_woocommerce_currency_symbol() . ‘)’,
    ‘data_type’ => ‘price’,
    ) );

    I’ll look at your solution – Thanks for sharing.

    Glad it’s working for you. I’ll keep you updated if I can improve it.

    It’s just a limited view of what a sku# is (As mentioned by the developer “SKU is a stock keeping unit”.. No it’s not. Anyaway here is what I did. Keep in mind I am not a developer neither a php guy.
    Here is my reasoning:
    1 – Sku# appear now on the Inventory tab.
    2 – Find the page in woocommerce admin with the tabs code.
    3 – The page is wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-dataORG.php
    4 – Find the code calling the sku# in the inventory tab, copy it and add it to the code calling the General tab
    5 – Found the code starting line 282 to 289:
    // SKU
    if ( wc_product_sku_enabled() ) {
    woocommerce_wp_text_input( array( ‘id’ => ‘_sku’, ‘label’ => ‘<abbr title=”‘. __( ‘Stock Keeping Unit’, ‘woocommerce’ ) .'”>’ . __( ‘SKU’, ‘woocommerce’ ) . ‘</abbr>’, ‘desc_tip’ => ‘true’, ‘description’ => __( ‘SKU refers to a Stock-keeping unit, a unique identifier for each distinct product and service that can be purchased.’, ‘woocommerce’ ) ) );
    } else {
    echo ‘<input type=”hidden” name=”_sku” value=”‘ . esc_attr( get_post_meta( $thepostid, ‘_sku’, true ) ) . ‘” />’;
    }

    do_action( ‘woocommerce_product_options_sku’ );
    6- Copy and paste this code on line 142 (general tab) before // Price.
    7 – It seems to work fine.
    8 – It will probably need to be done after each woocommerce update (I’ll try to put it in the clid theme and let you know).

    Still working on a more permanent solution

    Same here – We’ll have to move for woocommerce if no “sku fix” is coming. To look at a ski being only use for inventory is a limited thinking. The ski is the “identity of the product” Products might have similar names (titles). We only refer to products using their sku. Images need to have the sku in their titles, client re-order by sku number, etc…. To “downgrade” the sku to only an inventory tool is wrong.

    Can you reply in english? Thanks

    I have the exact same question – We need to print Tag label information that will be attached to the physical product (price – sku# – price cost code – etc…). We would used the Dymo LW Price Tag Labels 15/16″ x 7/8″.
    Can your extension work for us? If not out of the box could you develop it?
    Thank you

    Any way something could be developed for this (cost?)?

    esp5466

    (@esp5466)

    I can use it but I want to display a grid of program – I am looking at radio station plugin. Thanks for your help

    Thanks. I tried it it works.

Viewing 10 replies - 16 through 25 (of 25 total)