banner.php
1 year 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
1 year ago
featured-category-cover-image.php
1 year ago
featured-category-triple.php
1 year ago
filters.php
1 year ago
footer-large.php
2 years ago
footer-simple-menu.php
2 years ago
footer-with-3-menus.php
2 years ago
four-image-grid-content-left.php
1 year ago
header-centered-pattern.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
1 year ago
hero-product-3-split.php
1 year ago
hero-product-chessboard.php
1 year ago
hero-product-split.php
1 year ago
intro-centered-content-with-image-below.php
1 year ago
just-arrived-full-hero.php
1 year ago
no-products-found-filters.php
1 year ago
no-products-found.php
2 years ago
product-collection-3-columns.php
2 years ago
product-collection-4-columns.php
1 year ago
product-collection-5-columns.php
1 year ago
product-collection-featured-products-5-columns.php
1 year ago
product-query-product-gallery.php
1 year ago
product-search-form.php
1 year ago
related-products.php
2 years ago
social-follow-us-in-social-media.php
1 year ago
testimonials-3-columns.php
1 year ago
testimonials-single.php
1 year ago
three-columns-with-images-and-content.php
1 year ago
related-products.php
38 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/related-products {"align":"wide"} --> |
| 11 | <div class="wp-block-woocommerce-related-products alignwide"> |
| 12 | <!-- wp:query {"query":{"perPage":5,"pages":0,"offset":0,"postType":"product","order":"asc","orderBy":"title","author":"","search":"","exclude":[],"sticky":"","inherit":false},"displayLayout":{"type":"flex","columns":5},"namespace":"woocommerce/related-products","lock":{"remove":true,"move":true}} --> |
| 13 | <div class="wp-block-query"> |
| 14 | <!-- wp:heading {"style":{"spacing":{"margin":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}}} --> |
| 15 | <h2 class="wp-block-heading" style="margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)"> |
| 16 | <?php |
| 17 | echo esc_html__( |
| 18 | 'Related products', |
| 19 | 'woocommerce' |
| 20 | ) |
| 21 | ?> |
| 22 | </h2> |
| 23 | <!-- /wp:heading --> |
| 24 | |
| 25 | <!-- wp:post-template {"className":"products-block-post-template","__woocommerceNamespace":"woocommerce/product-query/product-template"} --> |
| 26 | <!-- wp:woocommerce/product-image {"isDescendentOfQueryLoop":true} /--> |
| 27 | |
| 28 | <!-- wp:post-title {"textAlign":"center","level":3,"fontSize":"medium","__woocommerceNamespace":"woocommerce/product-query/product-title"} /--> |
| 29 | |
| 30 | <!-- wp:woocommerce/product-price {"isDescendentOfQueryLoop":true,"textAlign":"center","fontSize":"small","style":{"spacing":{"margin":{"bottom":"1rem"}}}} /--> |
| 31 | |
| 32 | <!-- wp:woocommerce/product-button {"isDescendentOfQueryLoop":true,"textAlign":"center","fontSize":"small","style":{"spacing":{"margin":{"bottom":"1rem"}}}} /--> |
| 33 | <!-- /wp:post-template --> |
| 34 | </div> |
| 35 | <!-- /wp:query --> |
| 36 | </div> |
| 37 | <!-- /wp:woocommerce/related-products --> |
| 38 |