WooCommerce - excelling eCommerce
Add SKU cart page (5 posts)

  1. tetoonline
    Posted 2 years ago #


    Sorry my low english

    Is possible add SKU in the cart page before checkout

    default have

    quantity, image, name, price, I need add SKU is possible?


  2. tetoonline
    Posted 2 years ago #

    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>
  3. IgniteWoo Team
    Posted 2 years ago #

    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']; ?>
  4. somethumb
    Posted 2 years ago #

    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>';
  5. nickrutland
    Posted 1 year ago #


    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.