Hi @comdoc_marketing,
I checked and it’s due to existing customization, there were recent fixes related to header, footer, similar where dynamic content displays product information. So the fix is by setting a default shop data when it’s displayed on header, footer, and similar.
That fix is in conflict with your current customization where you use dynamic content within the product loop in which it’s not actually a product page, but shop page. It works on 3.1.2 because the bugfix wasn’t present on that yet.
I went ahead and fixed it, the fix is this
return !( is_singular('product') || in_the_loop() ) &&
Eg.
public function shop_page_id ( $id ) {
return !( is_singular('product') || in_the_loop() ) &&
function_exists('is_shop') && ( is_shop() || is_woocommerce() || is_product_category() || is_product_tag() || is_cart() || is_checkout() ) ? wc_get_page_id ('shop') : $id;
}
This is also fixed on our unreleased version and should be available on next update.
Thanks!