ClassesBigCommerceSettingsImport Now

Import_Now

  • Full name: \BigCommerce\Settings\Import_Now

Constants

ConstantVisibilityTypeValue
ACTIONpublic’bigcommerce_import_now’

Methods

__construct

Import_Now constructor.

public __construct(\BigCommerce\Settings\Screens\Settings_Screen $settings_screen): mixed

Parameters:

ParameterTypeDescription
$settings_screen\BigCommerce\Settings\Screens\Settings_Screen

render_button

public render_button(string $label = '', string $redirect = ''): void

Parameters:

ParameterTypeDescription
$labelstringThe label for the button.
$redirectstringThe redirect destination after starting the import. Defaults to the settings page.

Add the sync link to the views above the products list table. While not exactly a view, it’s a reasonable place to inject the status into the UI.

public list_table_link(array $views = []): array

Parameters:

ParameterTypeDescription
$viewsarray

get_import_url

public get_import_url(string $redirect = ''): string

Parameters:

ParameterTypeDescription
$redirectstring

handle_request

public handle_request(): void

list_table_notice

Print the import button into the notices section of the products admin list table.

public list_table_notice(): void


Automatically generated on 2025-01-21