Tips, Tutorials, SEO, WordPress, Joomla, Web Design

P. Roy' Post

How to shutdown Surface Pro 800x400 - How to Shutdown Surface Pro

How to Shutdown Surface Pro

  • in Windows

The Surface Pro is a great alternative to a laptop and it is one of the popular Tablets series by Microsoft.  Despite its amazing design and performance, there are some glitches reported by the users. One of the issues with the surface pro is frozen screen i.e. Surface Pro stops

Read More

WooCommerce Admin Custom Product Data Tab 800x300 - WooCommerce Admin Custom Product Data Tab

WooCommerce Admin Custom Product Data Tab

While adding or updating WooCommerce products we have a section named “Product Data” just below the main content editor. In this section, we have various tabs like general, inventory, linked products etc with different types of fields. But sometimes we need to add our own custom product fields and it

Read More

Style Checkbox or Radio Button Using Only CSS 800x249 - How To Style Checkbox or Radio Button Using Only CSS

How To Style Checkbox or Radio Button Using Only CSS

Unlike <select> tag, styling checkbox or radio button is one of those annoying jobs every web designer or web developer will have been tasked with at some point. There are many solutions on the internet, many of them work by adding extraneous markup, prefixes, image or javascript. But using those

Read More

woocommerce only one product per category in the cart 800x300 - WooCommerce allow only 1 product per category

WooCommerce allow only 1 product per category

This quick snippet can prevent your visitors from adding more than one (or pre-defined no.) product from a specific category to their cart. This PHP code snippet should go in your theme’s functions.php file.

// Allow only one(or pre-defined) product per category in the cart
add_filter( 'woocommerce_add_to_cart_validation', 'allowed_quantity_per_category_in_the_cart', 10, 2

Read More