banner.php
7 months ago
coming-soon-entire-site.php
1 year ago
coming-soon-store-only.php
1 year ago
coming-soon.php
1 year ago
content-right-image-left.php
3 months ago
featured-category-cover-image.php
1 year ago
featured-category-triple.php
1 year ago
footer-large.php
1 year ago
footer-simple-menu.php
2 years ago
footer-with-3-menus.php
3 months ago
four-image-grid-content-left.php
3 months ago
header-centered-pattern.php
1 year ago
header-distraction-free.php
1 year ago
header-essential.php
1 year ago
header-large.php
1 year ago
header-minimal.php
1 year ago
heading-with-three-columns-of-content-with-link.php
3 months ago
hero-product-3-split.php
7 months ago
hero-product-chessboard.php
7 months ago
hero-product-split.php
7 months ago
intro-centered-content-with-image-below.php
3 months ago
just-arrived-full-hero.php
7 months ago
no-products-found-filters.php
1 year ago
no-products-found.php
2 years ago
page-coming-soon-default.php
1 year ago
page-coming-soon-image-gallery.php
1 year ago
page-coming-soon-minimal-left-image.php
1 year ago
page-coming-soon-modern-black.php
1 year ago
page-coming-soon-split-right-image.php
1 year ago
page-coming-soon-with-header-footer.php
3 months ago
product-collection-3-columns.php
11 months ago
product-collection-4-columns.php
11 months ago
product-collection-5-columns.php
11 months ago
product-collection-featured-products-5-columns.php
7 months ago
product-query-product-gallery.php
6 months ago
product-search-form.php
1 year ago
related-products.php
11 months ago
social-follow-us-in-social-media.php
3 months ago
testimonials-3-columns.php
1 year ago
testimonials-single.php
3 months ago
three-columns-with-images-and-content.php
3 months ago
related-products.php
33 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Title: Related Products |
| 4 | * Slug: woocommerce-blocks/related-products |
| 5 | * Categories: WooCommerce |
| 6 | * Inserter: false |
| 7 | */ |
| 8 | ?> |
| 9 | |
| 10 | <!-- wp:woocommerce/product-collection {"align":"wide","queryId":0,"query":{"perPage":5,"pages":1,"offset":0,"postType":"product","order":"asc","orderBy":"title","search":"","exclude":[],"inherit":false,"taxQuery":{},"isProductCollectionBlock":true,"featured":false,"woocommerceOnSale":false,"woocommerceStockStatus":["instock","onbackorder"],"woocommerceAttributes":[],"woocommerceHandPickedProducts":[],"filterable":false,"relatedBy":{"categories":true,"tags":true}},"tagName":"div","displayLayout":{"type":"flex","columns":5,"shrinkColumns":false},"dimensions":{"widthType":"fill"},"collection":"woocommerce/product-collection/related","hideControls":["inherit"],"queryContextIncludes":["collection"],"__privatePreviewState":{"isPreview":true,"previewMessage":"Actual products will vary depending on the product being viewed."}} --> |
| 11 | <div class="wp-block-woocommerce-product-collection alignwide"> |
| 12 | <!-- wp:heading {"style":{"spacing":{"margin":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}}} --> |
| 13 | <h2 class="wp-block-heading" style="margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)"> |
| 14 | <?php |
| 15 | echo esc_html__( |
| 16 | 'Related products', |
| 17 | 'woocommerce' |
| 18 | ) |
| 19 | ?> |
| 20 | </h2> |
| 21 | <!-- /wp:heading --> |
| 22 | |
| 23 | <!-- wp:woocommerce/product-template --> |
| 24 | <!-- wp:woocommerce/product-image {"showSaleBadge":false,"imageSizing":"thumbnail","isDescendentOfQueryLoop":true} --> |
| 25 | <!-- wp:woocommerce/product-sale-badge {"isDescendentOfQueryLoop":true,"align":"right"} /--> |
| 26 | <!-- /wp:woocommerce/product-image --> |
| 27 | <!-- wp:post-title {"textAlign":"center","level":3,"isLink":true,"style":{"spacing":{"margin":{"bottom":"0.75rem","top":"0"}}},"fontSize":"medium","__woocommerceNamespace":"woocommerce/product-collection/product-title"} /--> |
| 28 | <!-- wp:woocommerce/product-price {"isDescendentOfQueryLoop":true,"textAlign":"center","fontSize":"small"} /--> |
| 29 | <!-- wp:woocommerce/product-button {"textAlign":"center","isDescendentOfQueryLoop":true,"fontSize":"small"} /--> |
| 30 | <!-- /wp:woocommerce/product-template --> |
| 31 | </div> |
| 32 | <!-- /wp:woocommerce/product-collection --> |
| 33 |