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

    I am trying to add a custom field after the TITLE on the Product List section.

    Here is a page showing the List – https://mygrodd.com/dc-mystery-series-1/

    I added the hook to the single page add_action( ‘woocommerce_single_product_summary’, ‘mysterycode’, 5 );

    And I tried adding it to the LIST page (below) but they only show up on the GRID VIEW (I removed the code, for now so you won’t see it)
    //add_action( ‘woocommerce_before_shop_loop_item_title’, ‘mysterycode’, 5 );
    //add_action( ‘woocommerce_before_shop_loop_item’, ‘mysterycode’, 5 );

    What HOOK will allow me to add it to the Title just AFTER or BELOW the List view THANKS!

    #1211052

    Hey LawElite,

    Thank you for the inquiry.

    Since you’re using the catalogue layout, you have to modify theenfold\config-templatebuilder\avia-shortcodes\productslider\productslider.php file directly and insert the extra code or custom field in this block of code starting from line 656:

    $text .= $image;
    					$text .= "<div class='av-catalogue-item-inner'>";
    					$text .=	"<div class='av-catalogue-title-container'><div class='av-catalogue-title av-cart-update-title'>{$title}</div><div class='av-catalogue-price av-cart-update-price'>{$price}</div></div>";
    					$text .=	"<div class='av-catalogue-content'>{$content}</div>";
    					$text .= '</div>';
    

    If you want to overwrite the shortcode in your child theme, please check the following documentation.

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    Best regards,
    Ismael

    #1214347

    PERFECT! Thanks

    #1214461

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add Hooks to Product LIST’ is closed to new replies.