Created
October 14, 2019 21:27
-
-
Save hborrelli1/78324d9587678a2567fa63d309c2237a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Product Card used in loops and grids. | |
* | |
* @package BigCommerce | |
* @since v1.7 | |
* | |
* @var Product $product | |
* @var string $title | |
* @var string $brand | |
* @var string $rating | |
* @var string $image | |
* @var string $price | |
* @var string $quick_view @deprecated since 3.1, @see quick-view-image.php | |
* @var string $attributes @deprecated since 3.1, @see quick-view-image.php | |
*/ | |
use BigCommerce\Post_Types\Product\Product; | |
$component = \BigCommerce\Templates\Product_Rating::factory( [ | |
'product' => new \BigCommerce\Post_Types\Product\Product( get_the_ID() ), | |
] ); | |
?> | |
<?php echo $image; ?> | |
<div class="bc-product__meta"> | |
<?php | |
echo $title; | |
echo $brand; | |
echo $component->render(); | |
echo $price; | |
?> | |
</div> | |
<?php if ( ! empty( $form ) ) { ?> | |
<!-- data-js="bc-product-group-actions" is required --> | |
<div class="bc-product__actions" data-js="bc-product-group-actions"> | |
<?php echo $form; ?> | |
</div> | |
<?php } ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment