Scriptbaker Blog
Bringing you the latest technology trends, engineering guides, industry thinking, and practical tutorials from the Scriptbaker team.
The Scriptbaker blog is where our engineers and consultants share what they are building, learning, and thinking about across software development, artificial intelligence, cloud infrastructure, and modern web engineering. Whether you are a developer looking for practical code-level tutorials, a technical leader exploring AI strategy, or a business owner trying to understand how emerging technology applies to your industry, you will find relevant, actionable content here.
Our articles cover a broad range of topics — from deep dives into Magento extension development and WordPress performance optimisation, to guides on building AI agents, integrating large language models into production systems, and architecting scalable cloud-native applications. We also publish case studies from our client work, giving you a behind-the-scenes look at how we solve real problems for real businesses.
All content is written by practitioners — people who spend their days writing code, architecting systems, and shipping products — so you can trust that the techniques and recommendations are grounded in hands-on experience rather than theory. Browse by category below to find content relevant to your stack, or scroll down to explore our latest and featured articles.
Magento 1: Export Catalog Categories by Store View
Learn how to export Magento 1 catalog categories for a specific store view as a CSV file using a simple PHP script. This guide covers store-view IDs, localized category names, active and inactive categories, URL keys, SEO data, troubleshooting, CSV encoding, security considerations, and practical tips for managing multilingual Magento catalogs.
AI Agents for Marketing Teams: A Practical Guide
A practical guide to AI agents for marketing teams: what they actually do, how they differ from marketing automation, and when it's time to build a custom one.
AI Superintelligence: A 2026 Guide for Businesses
What "the road to superintelligence" actually means in 2026, where AI development really stands today, and how businesses can build on it safely and profitably.
AI Automation for Small Business: 10 Ways to Grow
AI automation is not about replacing your team or buying dozens of new tools. It is about identifying the repetitive work slowing your business down and building reliable systems to handle it.
jQuery Multi File Upload
Discover how jQuery File Upload simplifies file handling with multiple file selection, drag-and-drop support, upload progress bars, image previews, chunked uploads, and resumable transfers. This guide explores its key features, backend compatibility, common use cases, implementation considerations, and security best practices for modern web applications.
Toggle checkboxes with jQuery and Prototype JS
Learn how to toggle multiple checkboxes with jQuery, modern JavaScript, and Prototype.js. This updated guide covers Check All, Uncheck All, dynamic checkboxes, disabled fields, accessibility, common mistakes, and practical examples for building user-friendly forms and admin interfaces.
Magento 1: Export Manufacturers CSV by Store View
Learn how to export Magento 1 manufacturer attribute options to a CSV file for a specific Store View. This step-by-step guide includes a PHP script, multilingual store-view handling, troubleshooting tips, CSV best practices, and FAQs to help with Magento data migration, catalog management, and custom reporting.
Search Magento products by product labels
Project Overview: Task was to develop a Product Labels Magento extension. Where admin can create product labels by uploading an image, enter label title and att
Adding Custom Fields to WordPress User Profile Page
Learn how to add custom fields to the WordPress user profile and Add New User screens using WordPress action hooks. This guide shows how to create, display, sanitize, and save custom user fields such as company name with user metadata.
How to Conditionally remove Magento header/footer?
Learn how to remove the header and footer from specific Magento 1 pages using custom layout handles. This tutorial explains how to create an observer, register a layout event, and update your module’s layout XML to display custom landing pages without the default header or footer based on a request parameter.
How to make Yii checkBoxList selected
Learn how to preselect previously saved checkboxes in Yii 1.1 using CHtml::checkBoxList() and a MANY_MANY relationship. This guide explains how to retrieve selected book IDs and display them as checked when updating an author’s record.
Yii Multiple Related Models Save Guide
Learn how to save multiple related models in Yii 1.1 using ActiveRecord relationships, HAS_MANY, dynamic child forms, and ESaveRelatedBehavior. This guide shows how to save parent and child records together with a single form submission while reducing repetitive database transaction and loop code.
Separate Front & Admin in Yii
Split a Yii 1.1 app into a front end and an admin panel with separate controllers, views and config files, a custom behavior, and clean backend URLs.
Multi Image Upload
Multi Image Upload adds a meta box to upload multiple images for posts and pages. You can enable it for custom post types also. Download: http://wordpress.org/p
Script Logic Plugin
Introduction Script Logic is a WordPress plugin that lets you control on which pages scripts and style sheets load using WP’s conditional tags. This plug
Fetch Records from a SugarCRM Module via REST API
Learn how to use the SugarCRM REST API v10 with PHP and cURL to authenticate with OAuth, retrieve records from modules such as Projects, and integrate SugarCRM data with other applications.
How to Add a jQuery Tooltip to Your Web Page
Learn how to add a jQuery tooltip to your web page using Tipsy. This guide explains how tooltips work, why they improve usability, how to implement and customize them, common use cases, and best practices for creating helpful and accessible web interfaces.
Magento Order Using Saved Credit Card
Creating order is the basic functionality of Magento but its the trickiest one at the same time for developers. Yes, its true because its not straight forward l
Get Selected Value from Yii RadioButtonList
Learn how to get the selected value of a Yii radioButtonList using jQuery and use it to control other form fields. This tutorial shows how to enable or disable the SSN field based on the selected nationality, using jQuery selectors and an onChange event in Yii 1.1.
Install WordPress Plugins Without FTP Access
Learn how to install WordPress plugins without FTP access. This updated guide explains why WordPress requests FTP credentials, how to fix filesystem permissions and ownership, when to use FS_METHOD, and how to troubleshoot common installation errors safely.
Lamudi.pk Real Estate Growth
There are several online real estate portals running in Pakistan, a couple of them have captured the market and leading the industry. In such a scenario it’s ha
My 3 Days Trip to Swat, Malam Jabba and Kalam
Pakistan is a land of natural beauty and has been blessed with the abundance of awe-inspiring outdoor areas. From the unspoiled golden beaches,across the desola
Magento 2: Fix Can't Create Directory Error
Learn how to fix the Magento 2 “Can’t create directory” error caused by incorrect file permissions or ownership. This guide covers checking Magento directory permissions, configuring writable folders, fixing ownership, clearing generated files, and troubleshooting common permission issues safely.
How to install Laravel on Ubuntu
Learn how to install Laravel on Ubuntu step by step. This updated guide covers PHP, Composer, Laravel installer, Node.js, Apache, virtual hosts, permissions, database configuration, troubleshooting, and production setup.
Parse Salesforce & Migrate to SugarCRM
Migrate Salesforce data to SugarCRM with PHP: parse exported CSV files, map fields and relationships, skip duplicates, and keep cross-reference IDs.
Magento: Render static block in a phtml file
Learn how to render a Magento 1 static block directly inside a PHTML template using the cms/block block type. This guide covers how to create and load CMS static blocks, use block identifiers, render content with PHP, troubleshoot common display issues, and choose between PHTML, layout XML, and CMS directives.
Add custom JavaScript in Magento admin form
Learn how to add custom JavaScript to Magento admin forms using setAfterElementHtml. This step-by-step guide covers field-level scripting, practical use cases like conditional field visibility, and best practices for keeping your Magento admin customisations clean and upgrade-safe.
How to change logo of SugarCRM application
Learn how to change the SugarCRM application logo step by step using the administration panel. This guide covers logo requirements, image formats, dimensions, troubleshooting, customization tips, FAQs, and best practices for branding your SugarCRM installation.
Common mistakes in WordPress Theme Development
Learn the most common mistakes in WordPress theme development and how to avoid them. Discover best practices for enqueuing scripts and styles, using WordPress hooks, naming functions, handling shortcodes and custom post types, styling widgets, and customizing themes safely with child themes.
Create a WordPress Form and Handle Submissions
Learn how to create a custom WordPress form without relying on a form builder plugin. This guide explains form submission handling, WordPress hooks, nonces, validation, sanitization, security best practices, database storage, email notifications, and common mistakes when building custom WordPress forms.
Get custom attribute value in Magento
Learn how to safely get custom attribute values in Magento 1 using <code>getData()</code>, <code>getAttributeText()</code>, and Magento's resource model. This guide explains how to retrieve raw and frontend attribute values, handle dropdown attributes, prevent <code>getSource()</code> fatal errors, and safely work with custom product attributes.
Make SugarCRM Field Read-Only Dynamically
Learn how to use SugarCRM Dependencies to make a field read-only based on another field’s value. This step-by-step example shows how to configure the Contacts module so the Mobile Phone field becomes read-only when the Title field is set to “CTO,” using custom dependency logic and a quick repair and rebuild.
Render Custom PHTML in a Magento Admin Tabs Block
It’s possible to add custom tabs on any page of Magento administration panel. Normally tabs are generated by Form Blocks, this is fine if you want to crea
Ajax-Based Yii Login Form
Learn how to create an AJAX-based Yii 1.1 login form without a full page refresh. This step-by-step guide explains how to use CActiveForm validation, the afterValidate callback, jQuery AJAX, and Yii controllers to validate credentials, authenticate users, handle errors, and redirect users with a JSON response.
Yii 1.1: Behaviors & Events
Learn how Yii 1.1 behaviors and events work: attach reusable methods to components, handle application events, and use behaviors with Active Record models.
Switch Yii layout based on user role
This article explains how to switch Yii layouts based on user roles using a custom filter. Learn how to configure role-based layouts, preserve controller filters, troubleshoot common issues, and follow best practices in Yii 1.x.
Add or Remove WordPress Dashboard Widgets
Learn how to add or remove WordPress dashboard widgets using wp_dashboard_setup and wp_add_dashboard_widget(). This guide covers removing unnecessary widgets, creating custom dashboard widgets, customizing dashboards for different users, and best practices for a cleaner WordPress admin experience.
Add Home link in Magento top navigation menu
Learn how to easily add a Home link to the Magento top navigation menu using simple template changes and PHP code. By default there is no Home link in Magento top navigation menu but you can easily add it yourself.
mouseover with delay (using hoverIntent plugin)
Learn how to add delayed mouseover interactions with the jQuery hoverIntent plugin. This updated guide covers setup, practical examples, navigation menus, animation handling, accessibility, troubleshooting, and FAQs.
Random string generator
Learn how to generate random strings in PHP with a simple, reusable function. This guide explains how the generator works, how to create strings of different lengths, common use cases, and secure alternatives using random_bytes() and random_int() for authentication tokens and other security-sensitive applications.
Trigger Google conversion on some event
Normally Google conversion code is added in header or footer of the “Thank you for your purchase” pages. A conversion is logged when someone lands o
Table 'DATEBASE_NAME.AuthAssignment' doesn't exist
Running into the “Table ‘AuthAssignment’ doesn’t exist” error after deploying a Yii application to Linux? This guide explains why the Yii Rights RBAC module may fail due to database table-name capitalization and shows how to fix the issue by matching your Yii configuration with the actual database table names. You’ll also find troubleshooting steps, deployment tips, and FAQs to help prevent similar database errors.
nl2br equivalent JavaScript function
Learn how to create an <code>nl2br()</code> equivalent in JavaScript to convert newline characters into HTML line breaks. This guide covers simple JavaScript functions, PHP-to-JavaScript conversion, textarea handling, different newline formats, secure DOM methods, CSS alternatives, and important XSS considerations when working with user-generated content.
WordPress search filters based on custom fields
WordPress custom fields are good for adding meta data to posts. These custom fields are not just for displaying data but can be used to sort and filter posts. Y
Configure Authorize.net in Magento
Learn how to configure Authorize.Net in Magento, set up API credentials, choose the correct payment environment, test transactions, troubleshoot common checkout issues, and follow security best practices. This guide also explains Magento version compatibility and what to consider when using Authorize.Net with newer Adobe Commerce stores.
Keeping your Yii Models Lean - Use Behaviors
Keep Yii Active Record models lean by moving business logic like timestamps, logging and approval workflows into reusable, attachable behaviors.
Magento Admin Grid: Add Radio/Checkbox Column
Magento grids are very useful for displaying/filtering and sorting data. Their flexibility is endless, you can customize them in any way. One may want to add a
Yii password, repeat password fields
Yii framework has awesome input validation mechanism, one of the many validation rules is “compare” rule. You can utilize it for creating confirmati
Yii Rights: Get all assigned roles of a user
Learn how to retrieve user roles in Yii Framework using the authassignment table, CDbCommand, and queryAll(). This guide explains how to fetch and store user roles, use parameter binding for safer SQL queries, leverage Yii’s built-in authorization manager, and implement role-based access control in PHP applications.
MySQL calculate hours since row created
Learn how to calculate the number of hours that have passed since a MySQL row was created. This guide explains how to use TIMESTAMPDIFF() with created_at, compares it with DATEDIFF(), and covers practical examples for calculating hours, minutes, seconds, and records older than a specific time period.
How to reindex tables with MySQL
Learn how to remove AUTO_INCREMENT from the WordPress wp_posts ID column, manage primary keys, verify database changes, and safely modify your WordPress database structure.
Magento Admin: 404 Error – Page Not Found
Getting a 404 error in the Magento Admin after installing an extension? Learn why newly added configuration tabs may show “Page Not Found” and discover simple fixes, including refreshing your admin session, checking permissions, clearing cache, and troubleshooting extension configuration.
Get Magento root category id
Learn how to retrieve the root category ID in Magento 1, understand the category hierarchy, avoid inefficient database queries, and use Magento’s built-in methods for cleaner, faster store development.
Magento get store by storecode
Learn how to efficiently retrieve a Magento 1 store by its unique store code without unnecessary loops. This guide explains how to use Magento’s built-in Mage::app()->getStore() method, handle invalid store codes safely, and improve code performance and memory efficiency in multi-store environments.
Set Magento store's base link URL programmatically
Learn how to set Magento’s base link URL programmatically using the setup installer. This guide explains base_link_url vs. base_url, store-specific configuration, secure and unsecure URLs, common errors, troubleshooting, and best practices for managing Magento URL settings.
Set Magento Template, Skin & Layout
Learn how to set Magento 1 template, skin, layout, and default theme settings programmatically using PHP. This guide covers configuration paths, store-specific themes, setup scripts, theme fallback, troubleshooting, and best practices for managing custom Magento 1 themes.
Get Magento Website Meta Data and Config Values
Learn how to get Magento 2 website metadata and configuration values using <code>ScopeConfigInterface</code>, store scopes, and Magento APIs. This guide covers base URLs, store information, product and category SEO metadata, CLI configuration commands, best practices, and common FAQs.
Post to your Facebook wall using Javascript SDK
Learn how to add a modern Facebook sharing feature to your website using JavaScript. This updated guide explains how to use Facebook's Share Dialog, share the current page or a specific URL, add Open Graph metadata, and replace outdated methods such as publish_stream and /me/feed.
How to change Magento Base URL
Learn how to configure and change the Magento Base URL, secure and unsecure URLs, HTTPS settings, domain migrations, localhost installations, and common URL problems. This guide also covers cache clearing, database updates, and essential SEO checks after changing your Magento store URL.
Disabled Yii logs and stack trace messages
Learn how to enable and configure Yii debugging using YII_DEBUG and YII_TRACE_LEVEL. This guide explains how Yii debug settings work, how to view detailed error information, and why debugging should be disabled on production websites.
Allow admin to change user role
Learn how to allow administrators to change user roles in Yii using the Rights module. This guide explains how to add a role dropdown to the user form, assign roles when creating users, update roles when editing accounts, and securely revoke previous roles before assigning new ones.
keyup function with delay
Learn how to execute a function after a user stops typing using jQuery debounce. This guide explains `keyup` events, `setTimeout()`, `clearTimeout()`, live search, AJAX optimization, and choosing the right delay to improve web performance.
Add custom menu item for WP subscribers panel
Learn how to add a custom menu item to the WordPress admin panel that is visible only to subscribers. This tutorial covers add_menu_page, capability checks, rendering custom page content, and tips for keeping your admin UI clean and role-appropriate.
Change WordPress login screen logo
Learn how to replace the default WordPress login screen logo with your own branding. This guide covers the classic CSS-injection method, the modern enqueue approach, and how to update the logo link and title for a fully white-labelled login page.
Remove index.php from URL in Yii
Learn how to configure Yii's UrlManager and Apache .htaccess rules to create clean, user-friendly URLs. This guide covers URL configuration, rewrite rules, common issues, and practical tips for improving Yii application routing
Integrate Filemanager to FCKeditor in YII
Before starting the tutorial you may also like to view the fully functional demo, or you may download the example and start working on it. Please note that this
jQuery Alert Dialogs by Bill Beckelman
Learn how jQuery Alert Dialogs by Bill Beckelman can replace basic JavaScript alerts with customizable dialog boxes. This guide covers implementation, form validation, message types, benefits, and key considerations for using jQuery alert dialogs in modern and legacy web applications.
jQuery UI Multiselect by Michael
Learn how jQuery UI Multiselect improves traditional HTML multiple-select controls with a cleaner interface, flexible styling, and easier selection management for web forms.
Style file upload field
Learn how to transform a standard HTML file upload field into a stylish and user-friendly upload control using jQuery File Style. This guide covers the required jQuery files, implementation steps, customization options, multiple file inputs, and important file upload considerations.
Disable Browser's Back button
Learn why you can’t truly disable the browser Back button using JavaScript and how to properly manage app state using the History API, popstate, and bfcache instead.
Debug WP Queries and boost performance
Learn how to use WordPress query debugging to identify slow database queries, repeated queries, and plugin-related performance issues. Discover practical ways to analyze database activity, optimize WordPress queries, improve website performance, and troubleshoot slow WordPress and WooCommerce websites.