my shopping history
<?php if (is_user_logged_in()): ?> <section> <?php echo do_shortcode('[block id="purchased_tablet_products"]'); ?> </section> <?php endif; ?> add_shortcode( 'display_misha_purchased_products', 'misha_populate_products_page' ); add_action( 'woocommerce_account_purchased-products_endpoint', 'misha_populate_products_page' ); function misha_populate_products_page() { global $wpdb; $purchased_products_ids = $wpdb->get_col(…