Skip to content
Avetti Support
Avetti Support

Getting Started

  • Getting Started, Creating a new Supplier store in a marketplace
  • Access Methods for Admin Portal
  • Scanning QR Codes: A Step-by-Step Guide
  • ImageKit – Clearing Cache
  • How to setup a separate checkout on the marketplace
  • Getting Started Create a new Container store
  • Getting Started eShop
  • Getting Started Marketplace
  • Getting Started Multi Store Ecommerce
  • Getting Started With Website Performance
  • Getting Started With Google Analytics
  • Getting Started With Microsoft Clarity
  • Differences between Avetti Commerce, Magento, Shopify, and Woocommerce.
  • A Comprehensive Guide to Web Accessibility: Key Aspects and Top Testing Tools
  • a Comprehensive Guide to Web Accessibility Testing
  • HOW TO IMPLEMENT IMAGEKIT CUSTOM LOADER

Admin Pages

  • Create a New Supplier Store
  • Setup the Template/Default stores
  • Log in to a Supplier store
  • Avetti Shop Connect
    • Fulfillment
    • Supplier Connect / Reseller Registration Form
    • Shop Connect / Supplier Registration Form
    • Shopify 
    • Magento
    • WooCommerce
  • Catalog and Order Management
    • Catalog
      • Find Products to Sell
      • Prices
      • Manage Products
        • Products
        • Create Product
        • Edit Product
        • Edit Product Variations
    • Orders
      • Manage Orders
      • Quote Request
  • About Me
    • General Information
    • Pickup Locations
    • Payment Information
  • Marketplace
    • Auction
    • Design Document for Auctions
  • Appendix
    • Documentation Slides
      • About Me
      • Add Items – Suppliers
      • Create a Merchant Store
      • Customers
      • Manage Orders – Supplier
      • Prices – React Admin
  • Avetti Supplier Connect
    • Shopify

System Admin Pages

  • Avetti Commerce Features
  • Ship Station Integration
  • B2C -Overview
    • Settings
      • Basket Preferences
      • Image Scaling
      • Item Properties
      • Languages
      • Tax Rates
      • Order Preferences
      • Page Parameters
      • Payment Gateways
      • Retail Location
      • Search Dictionary
      • Shipping Countries
      • Shipping Packages
      • Shipping Rates
      • Sitemaps
      • Store Currencies
      • Shipping Exceptions
      • Store Preferences
      • Store Properties
    • Templates
      • Catalog Personalization
      • Reset CDTO Cache
      • Template Skins
    • Advanced
      • Solr Items
      • Solr Categories
      • Site Admin Preferences
      • Shopper Pwd Security
      • Reports Configuration
      • Password Security Rules
      • Change Password
      • CDTO Editor
    • Audit Logs
      • Audit Log Views
    • Catalog
      • Categories
      • Downloadable Items
      • Inventory
      • Item Reviews
      • Item Size/Weight
      • How to attach products to a category in the MCW
      • Manage Facets
      • Manage FAQs
      • Manage Galleries/PDFs
      • Manage Products
      • Multilingual Content
      • Prices
      • Validate Catalog Data
      • View Store
      • Variations
    • Media
      • Manage Media
    • People
      • Member Types
      • Customers
      • Customer Properties
      • Customer Activity
      • Allowances
    • Marketing
      • A/B Split Tests
      • Add-ons
      • Basket Additions
      • Bundles
      • Coupons
      • Customer Discounts
      • Customer Segments
      • Customer Segment Prices
      • Customer Segment Ads
      • Gift Cards
      • Gift Certificates
      • Promotions
      • Sales Area Geolocation
      • Upsell/Cross-sell
      • Viral Promotions
    • Orders
      • Abandon Cart
      • Customer Messages
      • Email State
      • Manage Orders
      • Manage Refunds
      • Reports
  • B2B - Overview
    • Marketplace
      • Advanced
        • CDTO Editor
        • Change Password
        • Password Security Rules
        • Reports Configuration
        • Shopper Pwd Security
        • Site Admin Preferences
        • Solr Categories
        • Solr Items
      • Catalog
        • Categories
        • Inventory
        • Item Reviews
        • Item Size/Weight
        • Manage Facets
        • Prices
        • Item Options
        • Item Status Settings
      • Marketing
        • Bundles
        • Coupons
        • Customer Discounts
        • Customer Retargeting
        • Customer Segment Ads
        • Customer Segment Prices
        • Customer Segments
        • Gift Cards
        • Gift Certificates
        • Marketing Segments
        • Sales Area Geolocation
        • Shipping Exceptions
        • Upsell/Cross-sell
        • Viral Promotions
      • Market Place
        • Approve Products
        • Category Profit Margin
        • Marketplace Categories
        • Marketplace Payments
        • Marketplace Suppliers
        • Master Catalog Products
        • Notifications
      • Media
        • Manage Media
      • Order
        • Manage Orders
        • Manage Refunds
      • People
        • Customer Properties
        • Customers
      • Settings
        • Item Geolocation / Product Segmentation
        • Basket Preferences
        • Image Scaling
        • Item Properties
        • Order Preferences
        • Payment Gateways
        • Retail Location
        • Tax Rates
        • Store Preferences
        • Store Currencies
        • Shipping Countries
      • Templates
        • Catalog Personalization
        • Reset CDTO Cache
        • Manage Templates
    • Suppliers
      • Catalog
        • Manage Products
        • Inventory
        • Item Properties
      • Market Place
        • Notifications
        • Marketplace Payments
        • Approve Products
      • Media
        • Manage Media
      • Order
        • Manage Orders
        • Manage Refunds
        • Reports
        • Customer Messages
    • MCW
      • Advanced
        • Change Password
      • Market Place
        • Approve Products
        • Marketplace Suppliers
        • Notifications
      • Media
        • Manage Media
      • Order
        • Customer Messages
      • Settings
        • Item Properties
        • Shipping Countries
        • Store Currencies
        • Store Preferences
      • Catalog
        • Categories
        • Inventory
        • Item Options
        • Item Reviews
        • Item Size/Weight
        • Item Status Settings
        • Prices
  • B2B2C - Overview
    • B2B Integration
  • Import and Export Files
    • Export Orders
    • Import Price and Inventory
    • Importing/Exporting Shipping Rates Spreadsheet
    • Import/Exporting SpreadSheets
    • eShop Features
  • Appendix
    • Documentation Slides
      • Others
        • Creating a Supplier Store
        • Rebuild solr
        • Publish
      • People
        • Customer Data Management
        • Customers
        • Customer Properties
      • Settings
        • Basket Preferences
        • Item Properties
        • MULTI-VALUED PROPERTIES
        • Retail Location
        • Shipping Countries
        • Sitemaps
        • Store Currency
        • STORE PREFERENCES
        • Store Properties
        • Tax Rates
      • Advanced
        • Site Admin Preferences
      • Reports
        • Business Reports
      • Catalog
        • Advanced edit
        • Categories
        • Categories Spreadsheet
        • FREQUENTLY BOUGHT ITEMS
        • Import from XLS
        • Import-Export Advanced Spreadsheet
        • Inventory
        • Item Reviews
        • Manage Facets Manager
        • Simple Add
        • Prices
        • Validate Catalog Data
        • Variations
      • Marketing
        • Bundles
        • Basket Additions
        • Coupons
        • Customer Discounts
        • Customer Segments
        • Gift Cards
        • Gift Certificate
        • Promotions
        • Upsell-Cross sell
      • Marketplace
        • Approve Products
      • Templates
        • Reset CTDO Cache
      • Orders
        • Customer Messages
        • Export Orders
        • Email Settings
        • Manage Orders
        • SMS Settings
    • Documentation Videos
      • Payment Gateway
      • Retail Location
      • Validate Catalog Data
      • Site Admin Preferences
      • SMS Settings
      • Advanced Edit
      • Variations
      • Manage Orders
      • Categories
      • Basket Preferences
      • Customers
      • Upsell Cross Sell
      • Allowances
      • Customer Discounts
      • Order Preferences
      • Publish
      • Rebuild Solr
      • Email Setting
      • Store Preferences
      • Item Reviews
      • Tax Rates
      • Customer Segments
      • Store Currency
      • Product Data Spreadsheet
      • Export Orders
      • Sitemaps
      • Prices
      • Coupons
      • Bundles
      • Frequently Bought Items
      • Customer Properties
      • Store Properties
      • Multi Valued Properties
      • Gift Cards
      • Promotions
      • Manage Media
      • Gift Certificates
      • Manage Facets
      • Simple Add
      • Import and Export Using Spreadsheet
      • Customer Messages
      • Creating a Supplier Store
      • Approve Products
      • Import XLS
      • Business Reports
      • Item Properties

Content Management Systems

  • WordPress
    • Getting Started
    • Document Checklist
    • How to create pages in Wordpress?
    • How to create New Menus?
    • How to edit the Home Page?
    • How to change Favicon and Site Title?
    • How to edit Header and Footer?
    • How to change Header and Footer?
    • How to edit Shipping Policy, Refund Policy and Privacy Policy pages?
    • How to add Google Analytics and Microsoft Clarity
    • Using Existing WP vs Using Fresh WP
    • How to change Logo URL
    • How to create Blog Posts?
    • Blog Look And Layout
    • Netlify Redirects
    • Caching Issues
    • Plugins
    • Plugins
      • Fluent Forms
      • Perfmatters
      • Blocksy
      • Change SEO Title and Meta Descriptions with Yoast SEO
      • Staging and Backup with WPVivid
      • Stackable
      • Custom Javascript and CSS plugin
    • Common Issues
      • Does Not Use Passive Listeners
      • Enable Text Compression
      • Preload Largest Content Paint Image
View Categories
  • Home
  • Docs
  • System Admin Pages
  • B2B - Overview
  • Marketplace
  • Advanced
  • CDTO Editor

CDTO Editor

4 min read

Overview #

This document provides an administrator an overview on how to manage, create, delete and modify templates, allow for changes to the site and how things work on the site.

Data Transfer Objects (DTO’s), are common classes that will help get information from the database into the store. The CDTO Editor will allow ability to edit these classes and what information they retrieve from the catalog’s database.

The (Catalog Data Transfer Objects) CDTO Editor is a tool that allows the ability to edit the queries sent to the database through specific DTO. It also allows the ability to analyze which data is sent back so to use it accordingly in the template. This feature works in conjunction with the Template Editor.

CDTO Editor #

There are several options available in the CDTO Editor Page, for example, to create a new DTOs for the templates, modify existing ones, delete them, and even test them by sending a query to the server.

There are several ways to access this feature:

A. Through the Advanced tab:

  1. Click Advanced.
  2. Click CDTO Editor.
  3. Select the DTO to view/modify from the drop-down list.
  4. Click display.

B. Through the Template Manager:

  1. Click Templates.
  2. Click Manage Templates.
  3. Click on the Edit link for a specific template.
  4. Go to the DTO section and select the specific DTO.
  5. Click on the Edit link. You will be redirected to a page similar to the one shown in Figure 1.
Viewing and Testing DTOs #
  1. Access the CDTO Editor. Refer the CDTO Editor section for more details.
  2. Choose one of the DTOs in the drop-down list.
  3. Click Display.The query that is sent to database through the DTO can be seen.
  4. Click test to test the DTO.
  5. Type in an item ID number in the Required HQL parameters to test how the DTO works on the database.
  6. Click on Execute Query to see the results.
Creating New DTOs #

In order to create a DTO it is important to know about database tables.

  1. Access the CDTO Editor. Refer the CDTO Editor section for more details.
  2. Click New button at the top right of the page. A blank DTO page will show.
  3. Enter the details (Refer table 1).
  4. Click Ok or Apply button to create the DTO.
  5. You can also test the DTO. Refer the testing section for more details.

FieldDescription
NameThe name for the DTO that will be used in the templates.
CachingSelect if actions performed by this DTO are to be stored in the server’s cache. Leave this unchecked if unsure.
QueryThe query that the DTO will perform. It is written in Hybrid Query Language (HQL).
Available TemplateList of templates that use the DTO. Nothing can be typed here since it populates itself whenever templates are using the DTO.
DTO TypeThe category that best applies to the DTO query
Products per pageThe number of items that will be shown in a template page when this DTO is used.

This limits the rows of data that will be retrieved from the database.
Page Links per PageWhen a DTO returns many rows of data, this data can be divided into pages. This value defines how many page links will be shown on a page. This does not set into how many pages the data will be divided.

For example, if the catalog displays 1000 items through the DTO, and this property is set to 5, this doesn’t mean the catalog will be divided into five pages showing 200 items each.
Modifying Existing DTOs #

This allows the ability to modify any DTO that appears on the list.

  1. Access the CDTO Editor. Refer the CDTO Editor section for more details.
  2. elect the DTO to be modified.
  3. Click Display and change the settings to the required state
  4. Click Apply or OK to save the changes.x
Alternative Method: #

This is particularly useful if major changes have been done to the DTO’s function. This way allows the ability to track which templates will be directly affected by the changes and make the corrections as needed.

  1. Select a DTO which is being used in a template, the Available Template’s column will populate with the templates that use that particular DTO.
  2. Select the template to modify.
  3. Click Edit to edit the templates that use the selected DTO.
Deleting DTOs #
  1. Access the CDTO Editor. Refer the CDTO Editor section for more details.
  2. Select the DTO to be modified.
  3. Click Display.
  4. Once the DTO is shown, Click Delete button to delete the DTO.
What are your Feelings
Still stuck? How can we help?

How can we help?

Updated on November 15, 2022

Powered by BetterDocs

Table of Contents
  • Overview
  • CDTO Editor
    • Viewing and Testing DTOs
    • Creating New DTOs
    • Modifying Existing DTOs
      • Alternative Method:
    • Deleting DTOs

Copyright © 2022 Avetti.com Corporation.