Skip to content

Global vs Local Items#


In Miva Merchant, items are integral components that define the functionality and appearance of your online store. Understanding the distinction between global and local items is essential for effective template management and customization. This guide delves into their differences, applications, and best practices.


What Are Items?#

Items in Miva Merchant are modular elements assigned to pages to provide specific functionalities, such as headers, footers, navigation bars, and product displays. They can be categorized into two types based on their scope and impact: global and local items.


Local Items#

Definition#

Local items are confined to individual pages. Modifications to a local item affect only the specific page to which it is assigned, allowing for page-specific customizations without influencing other parts of the site.

Characteristics#

  • Scope: Limited to a single page.
  • Customization: Changes impact only the assigned page.
  • Examples: Page-specific headers, footers, or unique content sections.

Identification#

In the Miva admin interface, local items appear as collapsible sections within the page’s settings. For instance, editing the “Product Display” page reveals sections like “Attribute Machine” and “Product Display,” indicating local items specific to that page.

Use Cases#

  • Unique Page Layouts: When a page requires a distinct design or functionality.
  • Testing Features: Implementing experimental features on a single page without affecting others.

Global Items#

Definition#

Global items are shared across multiple pages. Changes to a global item propagate to all pages utilizing that item, ensuring consistency throughout the site.

Characteristics#

  • Scope: Spans multiple pages.
  • Customization: Updates reflect across all assigned pages.
  • Examples: Site-wide navigation bars, headers, or footers.

Identification#

Global items are managed under User Interface > Settings in the Miva admin interface. They may not appear as collapsible sections within individual page settings. For example, the “Navigation Bar” is a global item accessible via the User Interface settings.

Use Cases#

  • Consistent Branding: Maintaining uniform headers and footers across the site.
  • Universal Features: Implementing site-wide navigation or promotional banners.

Key Differences#

Aspect Local Items Global Items
Scope Single page Multiple pages
Management Edited within individual page settings Managed under User Interface settings
Impact Affects only the assigned page Affects all pages where assigned
Use Cases Page-specific customizations Site-wide consistency

Best Practices#

  1. Determine Scope: Decide whether an item should be global or local based on the desired impact.
  2. Consistent Naming: Use clear naming conventions to distinguish between global and local items.
  3. Centralized Management: Utilize global items for elements that require uniformity across the site.
  4. Isolated Customization: Apply local items for unique page features to prevent unintended changes elsewhere.
  5. Regular Audits: Periodically review item assignments to ensure optimal site performance and maintainability.