Hello,
The way Enfold currently works with WooCommerce “related products”, the “up-sell” products are shown directly on the product detail page, whereas the “cross-sell” products are only displayed later on the cart page.
However, we would really very much like the “cross-sell”-products to also show directly on the product detail page. We use this functionality to offer accessories to our main product, and these accessories should really already be visible on the product page, and not only later in the cart.
How can we tweak Enfold (using child theme override or editing the functions.php) to achieve this?
Thank you very much,
Sebastian
Hey sescha,
Thank you for the inquiry.
The theme is using the avia_woocommerce_output_upsells function in the enfold > config-woocommerce > config.php file to render upsells, and you should be able to use almost the same function to include cross-sell products in the product page.
The function can be found around line 1303 of the mentioned file above, and it is attached to the woocommerce_after_single_product_summary hook.
Best regards,
Ismael