Amp

This class integrates AMP (Accelerated Mobile Pages) functionality into the BigCommerce platform.

It registers necessary services and handles template overrides, assets, and customization for AMP compatibility. The class also provides hooks and filters for customizing the AMP-specific behavior of templates, assets, and menus.

The AMP class manages the AMP checkout redirect, template override initialization, and integration with BigCommerce’s storefront rendering system to ensure AMP-compatible pages.

  • Full name: \BigCommerce\Container\Amp
  • Parent class: Provider

Constants

ConstantVisibilityTypeValue
TEMPLATE_OVERRIDEpublicstring’amp.template_override’
TEMPLATE_DIRECTORYpublicstring’amp.template_directory’
FACTORY_OVERRIDEpublicstring’amp.controller_factory_override’
ASSETSpublicstring’amp.assets’
CUSTOMIZER_STYLESpublicstring’amp.customize_styles’
OVERRIDESpublicstring’amp.overrides’
CLASSICpublicstring’amp.classic’
AMP_CARTpublicstring’amp.amp_cart’
MENU_ITEMpublicstring’amp.cart_menu_item’
AMP_ADMIN_NOTICESpublicstring’amp.notices’

Methods

register

Registers AMP classes and callbacks.

public register(\Pimple\Container $container): mixed

Parameters:

ParameterTypeDescription
$container\Pimple\ContainerPlugin container.


Automatically generated on 2025-01-21