Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Last week in AI dev tools: Cloudflare blocking AI crawlers by default, Perplexity Max subscription, and more (July 7, 2025)

      July 7, 2025

      Infragistics Launches Ultimate 25.1 With Major Updates to App Builder, Ignite UI

      July 7, 2025

      Design Guidelines For Better Notifications UX

      July 7, 2025

      10 Top React.js Development Service Providers For Your Next Project In 2026

      July 7, 2025

      Following Microsoft’s mass layoffs, Xbox Game Pass’ business viability is again being questioned — is Xbox’s biggest differentiator an albatross?

      July 8, 2025

      A million customer conversations with AI agents yielded this surprising lesson

      July 7, 2025

      Bookworms: Don’t skip this Kindle Paperwhite Essentials bundle that’s on sale

      July 7, 2025

      My favorite “non-gaming” gaming accessory is down to its lowest price for Prime Day | XREAL’s AR glasses give you a virtual cinema screen for Xbox Cloud Gaming, Netflix, PC gaming handhelds, and more

      July 7, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Keyboard Testing in Accessibility Testing

      July 8, 2025
      Recent

      Keyboard Testing in Accessibility Testing

      July 8, 2025

      Implementation of Custom Tables in Optimizely Configured Commerce

      July 8, 2025

      Token Limit – Monitor token usage in AI context files

      July 7, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Following Microsoft’s mass layoffs, Xbox Game Pass’ business viability is again being questioned — is Xbox’s biggest differentiator an albatross?

      July 8, 2025
      Recent

      Following Microsoft’s mass layoffs, Xbox Game Pass’ business viability is again being questioned — is Xbox’s biggest differentiator an albatross?

      July 8, 2025

      dano – hashdeep/md5tree for media files

      July 8, 2025

      My favorite “non-gaming” gaming accessory is down to its lowest price for Prime Day | XREAL’s AR glasses give you a virtual cinema screen for Xbox Cloud Gaming, Netflix, PC gaming handhelds, and more

      July 7, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Implementation of Custom Tables in Optimizely Configured Commerce

    Implementation of Custom Tables in Optimizely Configured Commerce

    July 8, 2025

    In many B2B commerce implementations, the default features provided by Optimizely Configured Commerce may fall short, particularly when it comes to managing or storing custom data. This blog will outline how to create and work with custom database tables within the platform, ensuring flexibility without altering core system components.

    What Are Custom Tables?

    Custom tables are user-defined database tables used to hold additional information about products, customers, orders, or other business-specific data. They allow developers to expand the platform’s capabilities without interfering with the existing database schema, which supports better maintainability and easier upgrades.

    Why Create Custom Tables?

    Here are the key reasons to implement custom tables in Optimizely Configured Commerce:

    • Storing metadata or attributes that don’t naturally fit into existing system tables
    • Supporting business processes that require unique data structures
    • Keeping the core schema that clean while enabling platform customization

    Steps to Implement a Custom Table

    Creating a custom table involves adding a new table via a SQL script and configuring it to run automatically using the Optimizely bootstrapper.

    1. Set Up the Project Structure:
      Begin by creating a folder named DatabaseScript at the root of your Extension project.
      Db Structure
    2. Follow Naming Conventions:
      Use the following format for naming your SQL script files: YYYY.MM.DD.SS.DescriptiveName.sql
      • YYYY = year
      • MM = month
      • DD = day
      • SS = sequence number for that day
        This convention ensures scripts run in the correct order and version control is maintained.
    3. Mark Script as Embedded Resource:
      To ensure the bootstrapper can detect and execute your script, set its Build Action to Embedded Resource in the properties panel.
      Script Property

    Example: Creating a Custom Table for Product Data

    Let’s say you want to store extra product details. You could create a table called ProductExtensions using a script named 2025.06.03.01.Table_ProductExtension.sql. To proceed, this file should be added to the DatabaseScript folder and marked as an embedded resource with the following content:
    Script

    Table Structure

    Once you execute the script, the system creates a custom table named Extension.ProductExtension in the database, as shown below:

    Guidelines for Custom Table Design

    • All custom tables, views, and stored procedures must exist under the Extension schema.
    • You can modify and load data into other schemas, but DDL operations are restricted to the Extension schema.
    • Each custom table must include a primary key field named Id of type uniqueidentifier with a default of newsequentialid().
    • Include audit fields like CreatedOn, CreatedBy, ModifiedOn, and ModifiedBy, all non-nullable and set with proper defaults.
    • Add indexes on commonly queried fields like ErpNumber and Id.
    • You can define foreign key relationships to dbo schema tables, since the Extensions user has permission to reference them.

    Script Execution and Bootstrapper Behaviour

    When the application starts, the bootstrapper checks for new database scripts and runs them. It also logs each executed script in the DatabaseScript table. To re-execute a script, however, you must delete both the custom table and its entry in the DatabaseScript table. On the next application start, the system will execute the script again and relog it.

    Conclusion

    Custom tables in Optimizely Configured Commerce offer a powerful way to tailor the platform to your organization’s unique data and functionality needs, all without compromising the integrity of the core system

    Reference: Create custom tables with an entity and WebApi

    Source: Read MoreÂ

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleCISA Adds 3 Flaws to KEV Catalog, Impacting AMI MegaRAC, D-Link, Fortinet
    Next Article Keyboard Testing in Accessibility Testing

    Related Posts

    Development

    What Are JSON Web Tokens (JWT)?

    July 8, 2025
    Artificial Intelligence

    Introducing Gemma 3

    July 8, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-3699 – Mitsubishi Electric Corporation G-Series Missing Authentication Bypass Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    The 5 Linux AppImages I depend on daily – and how to add them to your desktop menu

    News & Updates

    Tap into Potential: Add Premium Touch to Your Raspberry Pi Projects With SunFounder’s 10-inch Display

    Learning Resources

    CVE-2025-5676 – Campcodes Online Recruitment Management System SQL Injection

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    CVE-2025-48882 – PHPOffice Math XML External Entity (XXE) Vulnerability

    May 30, 2025

    CVE ID : CVE-2025-48882

    Published : May 30, 2025, 8:15 p.m. | 1 hour, 25 minutes ago

    Description : PHPOffice Math is a library that provides a set of classes to manipulate different formula file formats. Prior to version 0.3.0, loading XML data using the standard `libxml` extension and the `LIBXML_DTDLOAD` flag without additional filtration, leads to XXE. Version 0.3.0 fixes the vulnerability.

    Severity: 0.0 | NA

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    How to Use the View Transition API for Better Web Transitions

    July 1, 2025

    Meet BioReason: The World’s First Reasoning Model in Biology that Enables AI to Reason about Genomics like a Biology Expert

    June 8, 2025

    Orca Security announces new solution for scanning Bitbucket repositories for security issues

    April 10, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.