How to easily update the PHP version?
Upgrade PHP version An upgraded PHP version will have a huge impact on the speed and performance of the site, the website will be faster and have a huge increase in performance. The latest version of Php shows the latest security features like;1. SQL injections2. Directory traversal and code injection3. Cross-site scripting and password storage…
Removing the fragment identifier ‘#’ from Angular JS url.
Angular JS routing without ‘#’ is possible as ‘#’ is not required in modern browsers, that support the Html5 API. First of all, you need to create a .htaccess file, then add it to the code below.Two important things need to be done. 1. Configuration of $location provider.2. Setting/Add base for relative links. app.config(function($routeProvider,$locationProvider) {…
BlueSnap Payment Gateway Implementation
BlueSnap Payment Gateway implementation as a custom module in Drupal is explained in the post. BlueSnap is a global payment gateway that supports credit and debit card payments, ACH/ECP, SEPA Direct Debit, digital wallets, and Paypal. Its Payment API is RESTful and uses standard HTTP features. Bluesnap API supports automatic recurring subscriptions and we utilize…
Sub Category-wise listing of products in woo-commerce 3.6
If you want to list products subcategory-wise in WooCommerce on WordPress, you should override the default WooCommerce product listing. The listing products in subcategory-wise in WooCommerce uses the archive-products.php file in plugin/woo-commerce/templates in woo-commerce. Now you have to override the archive-products.php file to your theme/woocommerce folder. If the WooCommerce folder is not present, create a…
Routing in CodeIgniter with Nginx
Routing in CodeIgniter with Nginx While setting up Codeigniter in Nginx if a 404 error occurs when you have to set Codeigniter for subfolders in Nginx. Why Choose Nginx? Nginx is known for its high performance, stability, and low resource consumption. It’s an excellent choice for serving web applications, including those built with CodeIgniter. Its…
WordPress SEO tips for URLs
Improving your WordPress site SEO is necessary to increase traffic to your site. If you want to increase the SEO value of your website here are some of the WordPress SEO tips for URLs that can be really helpful to you. Tips to increase WordPress SEO for URLs 1. Permalink Use the permalink for the…
Load Taxonomy Terms In Alphabetical Order In Drupal 7
Managing taxonomy terms efficiently is crucial for maintaining a well-organized content structure in Drupal 7. By default, it may not be ordered alphabetically, which can be a challenge for content editors and users who rely on an intuitive structure. The code below demonstrates how to load taxonomy terms in alphabetical order in Drupal 7, ensuring…
Braintree Payment gateway Integration in MEAN Stack
Integrating the Braintree payment gateway in a MEAN (MongoDB, Express, Angular, Node.js) stack involves several steps. Below is the method to Integrate the Braintree Payment gateway in MEAN Stack while developing software. The Braintree Node.js library with Braintree’s servers.Prerequisite:Install Braintree node package:For more information or help with this step, see our API Credentials support article. In…
Drupal 7 | Delete Field Collection Data In A Particular Content Type.
We have a content-type basic page in Drupal that has a date field. We use this code in a custom module to delete field collection data in Drupal 7. At Sreyas, we are well-resourced with Drupal developers who have vast experience in developing an application in the latest version of Drupal. Apart from Drupal 7…
How to render taxonomy in page template in Drupal 7
Display taxonomy terms in a page template in Drupal using multiple methods. The easiest way to solve an issue is to let it deal with by experts. We can provide a wide range of web services. Get in touch with us to know more. $vocabulary= taxonomy_vocabulary_machine_name_load(‘vocobulary_name’); if ($terms = taxonomy_get_tree($vocabulary->vid)) { foreach ($terms as $term) { $term_name =…
Add fields to WordPress user profile
The following snippet will add fields to the WordPress user profile in your profile section. In this code, we provide two fields, Sales Partner and Address. You can add any number of fields. These fields are saved in a user profile. So need to create an extra table to store this data in WordPress. function…
How Contact Form submitted data into a table in WordPress(WPCF7)
The code below demonstrates how to insert data from a Contact Form 7 submission into a custom table in WordPress. This code should be placed in your theme’s functions.php file. First, ensure you have created a custom table in your WordPress database. Explanation of the Code: Additional Notes: This setup allows you to efficiently capture…