β
Thank you!
Your product has been submitted for review. We'll email you once it's been approved.
Please log in to view your wishlist.
For Woocommcerce single product page
create the folder inside the theme.. https://chatgpt.com/s/t_6a421034b5788191b963eeb847e42858 from this chatgpt link u can reach at the website files
--- wp-content/themes/your-theme/woocommerce/single-product.php
place the below code on the single product.php fileΒ
Β
Β
get_image_id();
$image_url = $image_id ? wp_get_attachment_image_url( $image_id, 'medium' ) : wc_placeholder_img_src( 'medium' );
$is_wishlisted_attr = 'data-product-id="' . esc_attr( $card_product->get_id() ) . '"'; ob_start();
?>
get_attribute( 'Brand' );
$size = $product->get_attribute( 'Size' );
$color = $product->get_attribute( 'Color' );
$condition = $product->get_attribute( 'Condition' );
$gender = $product->get_attribute( 'Gender' ); // Category comes from the WooCommerce taxonomy, not a custom attribute.
$category_terms = get_the_terms( $product->get_id(), 'product_cat' );
$category = ( $category_terms && ! is_wp_error( $category_terms ) ) ? $category_terms[0]->name : ''; // Gallery images: featured + gallery, as full URLs for the thumbnail strip.
$gallery_image_ids = $product->get_gallery_image_ids();
$all_image_ids = array_merge( array( $product->get_image_id() ), $gallery_image_ids );
$all_image_ids = array_filter( $all_image_ids ); // "Style With" β admin-curated picks for this listing.
$style_with_products = sbcm_get_style_with_products( $product->get_id() ); // Width / Height / Depth (cm), if the seller entered any. False if none.
$dimensions = sbcm_get_product_dimensions( $product->get_id() ); ?> get_id(), 4 );
if ( ! empty( $related_ids ) ) :
?>
get_name() ); ?>
get_price_html() ); ?>
'sbcm-gallery-main-img' ) );
} else {
echo wc_placeholder_img( 'large' );
}
?>
1 ) : ?> $img_id ) : ?>
', '' ); ?> is_purchasable() && $product->is_in_stock() ) : ?> get_id() ); ?>
get_price_html() ); ?>
β Genuine Order Promise
Brand
Category
Size
Condition
Gender
Color
β Verified Marketplace Item β Reviewed by our team
Style With
Curated pairings for our current outfits.