Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1481140

    My client wants to add a product grid with all of the products from the same category to the default product page.

    I am struggling with how to implement this since it appears to be impossible to modify the default product page with the Advanced Layout Editor.

    Any assistance would be appreciated.

    #1481166

    Hey AndrewRice71,

    Thank you for the inquiry.

    It is possible to use the Advanced Layout Builder for the default shop page, but it is not recommended, as it may limit the default functionality and may be incompatible with third-party extensions. If you want to proceed, please refer to the documentation below.

    https://kriesi.at/documentation/enfold/woocommerce-shop/#custom-woocommerce-shop-overview-with-advanced-layout-editor

    Best regards,
    Ismael

    #1481214

    Hi
    I am talking about the product pages, not the shop pages.

    Is there any way to use the debugger to get the code for the Enfold element and paste it into the appropriate php file?

    Thanks for your assistnance,
    Andy

    #1481288

    Hi,

    Thank you for the info.

    You will need to switch to the Advanced Layout Builder to use the Product Grid element on the product page, or use the element’s shortcode in one of the template hooks.

    Example:

    add_action( 'woocommerce_after_single_product_tabs', 'av_woocommerce_after_single_product_tabs_mod', 100 );
    
    function av_woocommerce_after_single_product_tabs_mod() {
        echo do_shortcode("[av_productgrid select_type='' categories='' link='' term_rel='' wc_prod_visible='' wc_prod_hidden='' wc_prod_featured='' wc_prod_sale='' wc_prod_additional_filter='' sort='dropdown' prod_order='' offset='0' page_element_filter='' columns='3' image_size='shop_catalog' items='9' paginate='yes' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' alb_description='' id='' custom_class='' template_class='' element_template='' one_element_template='' show_locked_options_fakeArg='' av_uid='' sc_version='1.0']
    ");
    }
    

    For this type of modification, we recommend hiring a freelance developer or contact Codeable.

    https://kriesi.at/contact/customization

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.