skip to Main Content

WooCommerce products: Allow backorders only for specific user roles

I want to allow backorders for specific customer roles. Code i writed is: // BackOrder Allow Part #1 add_filter( 'woocommerce_product_backorders_allowed', 'woocommerce_product_backorders_allowed', 10, 3 ); function woocommerce_product_backorders_allowed( $backorder_allowed, $product_id, $product ){ if ( current_user_can('administrator') ) { $backorder_allowed = true; } else…

VIEW QUESTION

Where do I define @font-face in shopify?

I upload some font-related files in assets in Shopify. But I don't know where and how to define the below code. @font-face { font-family: 'FreeSansBold'; src: url('FreeSansBold.eot'); src: url('FreeSansBold.eot?#iefix') format('embedded-opentype'), url('FreeSansBold.woff2') format('woff2'), url('FreeSansBold.woff') format('woff'), url('FreeSansBold.ttf') format('truetype'), url('FreeSansBold.svg#FreeSansBold') format('svg'); font-weight: bold;…

VIEW QUESTION
Back To Top
Search