File System In Node.js
Node.js includes fs module to access physical file system. The fs module is responsible for all the asynchronous or synchronous file I/O operations. Reading File Use fs.readFile() method to read the physical file asynchronously. Writing File Use fs.writeFile() method to write data to a file. If file already exists then it overwrites the existing content […]
How To Read & Write File In Node.js
Show Ajax Add To Cart Button On Custom Product Loop
1. Enable This ‘Enable AJAX add to cart buttons on archives’ from WooCommerce Settings 2. Then Add this code where you want to show “Add To Cart” Button
Code Snippet For Various WooCommerce Page URLs
1. Shop URL Get the WooCommerce Shop URL (this is the root category page) with the following: 2. My Account URL Get the WooCommerce Shop URL (this is the root category page) with the following: 3. My Account URL Get the WooCommerce Shop URL (this is the root category page) with the following: 4. Cart […]
How To Ajaxify Header Cart Items Count In Woocommerce
1. Add this code in function.php file: 2. Now add these code on the section where you want to show your Cart Items count.
Show Woocommerce “added to cart” Message On Single Product page
After adding a product from a single product page, Woocommerce will show a message that the product is added to the cart. In order to show the message add this code where you wanna show the message: #CODE EXAMPLE
How To Show Short & Long Description In Woocommerce
#FOR SHORT DESCRIPTION #FOR LONG DESCRIPTION 1. Add this code in function.php file 2. Now echo the short code
Show “Out of Stock” text , beside variation in Woocommerce
Add this code in function.php file:
Disable out of stock variations
Add this code to function.php file
Difference Between StudlyCaps and CamelCase?
According to PHP Standard Recommendations (PSR) – 1. Class names MUST be declared in StudlyCaps. 2. Class constants MUST be declared in all upper case with underscore separators. 3. Method names MUST be declared in camelCase. StudlyCaps, also known as PascalCase, implies that the first capital of each subword is capitalized. camelCase implies, like a […]