Address_List

Summary

Class Address_List


Description

A block to display the current user’s addresses


Source

File: src/BigCommerce/Editor/Gutenberg/Blocks/Address_List.php

class Address_List extends Shortcode_Block {
	const NAME = 'bigcommerce/address-list';

	protected $icon = 'location';
	protected $shortcode = Shortcodes\Address_List::NAME;

	protected function title() {
		return __( 'BigCommerce Address List', 'bigcommerce' );
	}

	protected function html_title() {
		return __( 'My Addresses', 'bigcommerce' );
	}

	protected function html_image() {
		return $this->image_url( 'Gutenberg-Block_Addresses.png' );
	}

	protected function keywords() {
		$keywords = parent::keywords();
		$keywords[] = __( 'checkout', 'bigcommerce' );
		$keywords[] = __( 'shipping', 'bigcommerce' );
		return $keywords;
	}

}

User Contributed Notes

You must log in before being able to contribute a note or feedback.