Automattic\WooCommerce\Blocks\BlockTypes
SavedForLater::render_item_markup
Render a single SSR item. Composes the shared image / name / price markup with the SFL-specific quantity span and Move-to-cart button.
Method of the class: SavedForLater{}
No Hooks.
Returns
string.
Usage
// private - for code of main (parent) class only $result = $this->render_item_markup( $item ): string;
- $item(array<string, mixed>) (required)
- Schema-shape item.
SavedForLater::render_item_markup() SavedForLater::render item markup code WC 11.1.2
private function render_item_markup( array $item ): string {
$row_inner = ShopperListRenderer::render_ssr_common_row( $item, $this->get_remove_label_template() )
. $this->render_ssr_quantity( $item )
. $this->render_ssr_move_to_cart( $item );
return ShopperListRenderer::render_each_child( $item, $row_inner );
}