Dev

Dev brings you the power of programming and App Development with classic code snippets.

Hide other shipping methods if free shipping is available woocommerce

Hide other shipping methods if free shipping is available woocommerce

This article will demonstrate that how you can disable other available shipping methods if free shipping is available by using the filters in woocommerce below is the useful code snippet :- add_filter( ‘woocommerce_package_rates’, ‘hide_available_shipping_method’, 100 ); function hide_available_shipping_method( $rates ) { $free = array(); foreach ( $rates as $rate_id => $rate ) { if ( […]

Read More

How to create custom layout for community pages in salesforce

How to create custom layout for community pages in salesforce

In this blog we will learn how to create custom layout for community pages in salesforce using lightning components and using it through community builder. Prerequisites Community should be enabled. Make sure that community template has Builder option. Note : Only Salesforce Tabs + Visualforce template doesn’t have Builder option Important keywords 1) implements=”forceCommunity:layout” – […]

Read More
css.php