Support » Plugin: WooCommerce » Add SKU cart page

Viewing 4 replies - 1 through 4 (of 4 total)
  • I found the code: in file:

    But what is the correct to add SKU?

    <table class="shop_table cart" cellspacing="0">
    			<th class="product-remove">&nbsp;</th>
    			<th class="product-thumbnail">&nbsp;</th>
    			<th align="left" class="product-name"><?php _e( 'Product', 'woocommerce' ); ?></th>
    			<th class="product-price"><?php _e( 'Price', 'woocommerce' ); ?></th>
    			<th class="product-quantity"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
    			<th class="product-subtotal"><?php _e( 'Total', 'woocommerce' ); ?></th>

    You need to know how to read and write HTML and PHP. With that, you could probably use this to print the SKU somewhere in the table:

    <?php echo $_product['sku']; ?>

    You would use: $_product->sku

    I put this just below the variation DL

    // Added SKU
    								echo '<dl class="variation">';
    								echo '<dt>Product Number:</dt>';
    								echo '<dd>'.$_product->sku.'</dd>';
    								echo '</dl>';



    Can I get some help to make the Product or Variation SKU to appear on the checkout page and to send to the vendor with the order.

    I would like to follow the advice posted however I can’t find the place described as ‘below the variation DL’ in /wp-content/plugins/woocommerce/templates/cart/cart.php.

    I think I need some more detailed instructions as I’m not a coder. Am using WC 2.0.14

    Thanks in advance

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