This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Begin System Info ### | |
## Please include this information when posting support requests ## | |
Multisite: No | |
SITE_URL: http://psuidev.com/wp | |
HOME_URL: http://psuidev.com/wp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Display the current SKU of the variable product */ | |
add_filter( 'woocommerce_cart_item_name', 'add_sku_in_cart', 20, 3); | |
function add_sku_in_cart( $title, $values, $cart_item_key ) { | |
$sku = $values['data']->get_sku(); | |
return $sku ? $title . sprintf(" (SKU: %s)", $sku) : $title; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_template_part( 'index','search'); ?> |