/attribute-name/attribute/ not using "default" permalinks above.', 'woocommerce' ) ); $permalinks = get_option( 'woocommerce_permalinks' ); $product_permalink = $permalinks['product_base']; // Get shop page $shop_page_id = wc_get_page_id( 'shop' ); $base_slug = ( $shop_page_id > 0 && get_page( $shop_page_id ) ) ? get_page_uri( $shop_page_id ) : _x( 'shop', 'default-slug', 'woocommerce' ); $product_base = _x( 'product', 'default-slug', 'woocommerce' ); $structures = array( 0 => '', 1 => '/' . trailingslashit( $product_base ), 2 => '/' . trailingslashit( $base_slug ), 3 => '/' . trailingslashit( $base_slug ) . trailingslashit( '%product_cat%' ) ); ?>
/?product=sample-product
//sample-product/
//sample-product/
//product-category/sample-product/
must be set or WordPress will use default instead.', 'woocommerce' ); ?>