Home » Add to cart

Add to cart

How to disable (Read only) acf custom filed in wordpress?

Using bellow php code you can make ACF custom field as Read only.  Place bellow PHP code in your theme functions.php file /** * Read only input fields in Admin ACF Group * custom_field_name */ function disable_custom_field_name_load_field( $field ) { $field['readonly'] = 1; return $field; } add_filter('acf/load_field/name=custom_field_name', 'disable_custom_field_name_load_field'); References https://support.advancedcustomfields.com/forums/topic/read-only-field-2/ Duminda WijerathnaAn all round web …

How to disable (Read only) acf custom filed in wordpress? Read More »

WooCommerce Add to cart URL with Quantity

Woocommerce add to cart url with quantity and redirect after checkout page. Bellow explain How to add product to cart page by using query string. How Add product to WooCommerce cart? https://yourdomain.com/?add-to-cart=&quantity=1 eg: https://yourdomain.com/?add-to-cart=1230&quantity=1 How Add product to WooCommerce cart and redirect to checkout page? https://yourdomain.com/checkout/?add-to-cart=&quantity=1 eg: https://yourdomain.com/checkout/?add-to-cart=1230&quantity=1 Note: for this to work, you should …

WooCommerce Add to cart URL with Quantity Read More »