is product page woocommerce
if( is_product() ) {
// do something
} else {
}
is product page woocommerce
if( is_product() ) {
// do something
} else {
}
WooCommerce attributes
defauls:
show selected products by ID
[products limit="16" columns="4" ids="766,620,1033,624,626,960, 629,635,861"]
show products ob SALE
[products limit="" columns="4" orderby="popularity" class="quick-sale" on_sale="true"]
show selected category
[products limit="8" columns="4" category="hoodies, tshirts"]
show products by tags
[products tag="hoodie"]
special:
[lf_woo_products_carousel id="an_uniq_id" categories="selected category" loop="1" selected_products_tab="0"] => show category in carucell
"id" => the uniq id of a product or a shortcode with carusell
"col" => number of col's
"tablet_col" => number of col's in tablete
"mobile_col" => number of col's in mobile
"class" => Ex. "hight-400"
"direction" => of the carusella "horizontal" | "vertical"
"loop" => if it will loop or not "0"
"delay" => the time for shifting in milisec "3000"
"speed" => thr rotation spees "300"
"centered" => of the product "0"
"mousewheel" => will the mouse scroll thr carusel or not "0"
"nevigation" => show the arrow on the sides "1"
"pagination" => show the numbers of the pics "1"
"scrollbar" => show the scroll bars "0"
"photoswipe" => swipting the photos "0"
"categories" => the selected category to show spreted by comma (,) "null"
"tags" => the selected tags to show spreted by comma (,) "null"
"selected_products_tab" => whitch tab to show "0"
"new_products_tab" => show the new products "1"
is product category woocommerce
if( has_term( 4, 'product_cat' ) ) {
// do something if current product in the loop is in product category with ID 4
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us