WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tetoonline
    Member
    Posted 1 year ago #

    Hi,

    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?

    http://wordpress.org/extend/plugins/woocommerce/

  2. tetoonline
    Member
    Posted 1 year ago #

    I found the code: in file:
    /wp-content/plugins/woocommerce/templates/cart/cart.php

    But what is the correct to add SKU?

    <table class="shop_table cart" cellspacing="0">
    	<thead>
    		<tr>
    			<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>
    		</tr>
    	</thead>
  3. IgniteWoo
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 10 months ago #

    Hi,

    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

About this Topic

Tags

No tags yet.