get_sku() || $product->is_type('variable'))) { $sku = $product->get_sku() ? $product->get_sku() : esc_html__('N/A', 'goodlook'); echo '' . esc_html__('SKU:', 'goodlook') . ' ' . esc_html($sku) . ''; } } } /** * Brand link for single product */ if (!function_exists('goodlook_get_brand_link')) { function goodlook_get_brand_link() { if(function_exists('premmerce_get_product_brand')){ global $product; if($product){ $id = $product->get_ID(); $brand = premmerce_get_product_brand($id); if ($brand) { echo ''; } } } } } /** * Brand option for cart product */ if (!function_exists('goodlook_cart_get_brand_link')) { function goodlook_cart_get_brand_link($product) { if(function_exists('premmerce_get_product_brand')){ $product_type = $product->get_type(); if($product_type == 'variation'){ $id = $product->get_parent_id(); }else{ $id = $product->get_id(); } $brand = premmerce_get_product_brand($id); if ($brand) { echo '
'; echo '' . esc_html_e('Brand', 'goodlook') . ': ' . ''; echo '' . esc_html($brand->name) . '
'; } } } } /** * Catalog title */ if(!function_exists('goodlook_catalog_title')){ function goodlook_catalog_title($template_name){ if ( $template_name == 'loop/products-layout.php' ){ echo '

'; woocommerce_page_title(); echo '

'; echo '
'; } } } /** * Catalog header */ if(!function_exists('goodlook_render_catalog_header_brand')){ function goodlook_render_catalog_header_brand(){ if(!is_tax('product_brand')){ return; } ?>
get_upsell_ids(); if (empty($productUpsell)) { return false; } function accessories_class($class){ $class[] = 'product-cut--no-overlay'; return $class; } add_filter('post_class', 'accessories_class'); ?>