Home Forums WoodMart support forum Related Products Popup

Related Products Popup

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #359525

    Kanwal
    Participant

    Hi! I want to show “YOU MAY ALSO LIKE” popup with Shopping Cart popup. How can i do it?

    #359717

    Hello,

    Create an HTML block with the Product Grid and show the product by a category or tag in the Dashboard > HTML blocks.

    Please add this code to the functions.php of the child theme:

    add_action( 'woocommerce_widget_shopping_cart_total', function(){
       echo do_shortcode( '[html_block id="3008"]' );
    }, 5 );

    [html_block id="3008"] insert your HTML block ID in this place.

    Best Regards

    #359820

    Kanwal
    Participant

    Can you please explain some more where is Product grid?

    #359969

    Hello,

    Product Gird is the element/widget which you can find in Elementor /WP Bakery page builder.
    Find our documentation tutorial about this here: https://xtemos.com/docs-topic/elements-and-widgets/

    Please check the this manual to the avalible settings of the Product Grid: https://xtemos.com/docs-topic/products-element-grid-or-carousel/

    Best Regards

    #360041

    harshwe
    Participant

    Hello Elise,

    After adding code to Child theme, it shows below error –
    https://i2.paste.pics/GC5RB.png

    add_action( 'woocommerce_widget_shopping_cart_total', function(){
       echo do_shortcode( '[html_block id="8995"]' );
    }, 5 );

    We replaced HTML block code with ours as [html_block id="8995"] i

    What could be the issue, and how can one resolve this.
    And If the code is not intended for Side Cart (Slide pop-up from right), then what code is required to show products, for this area.

    Kindly suggest
    Regards

    • This reply was modified 2 years, 7 months ago by harshwe.
    • This reply was modified 2 years, 7 months ago by harshwe.
    #360228

    Hello,

    Please insert the site admin access into the Private content below the message area.

    Best Regards

    #360333

    harshwe
    Participant

    Hello Elise,

    Please insert the site admin access …

    Credentials of Staging site inside Pvt. Content area, in respect to our reply here – https://xtemos.com/forums/topic/related-products-popup/#post-360041

    You can try by enabling this code from Child Theme’s functions.php file of our Staging site.
    https://i2.paste.pics/GCS7H.png

    Regards

    #360551

    Kanwal
    Participant

    This is not working for me.
    1. I’m not using child theme and when I’m doing this with Woodmart functions.php then nothing happens.

    #360783

    Hello,

    I do not see the code added to the function.php of the child theme: https://gyazo.com/0c138a87e3c84afba7f2a1ef9905e4b5

    Best Regards

    #360813

    Kanwal
    Participant

    Hi! Basically I want to achieve the functionality like it is in my attached image. Kindly check the image. I just need another popup with my shopping cart popup. How can I do this in Woodmart theme in wordpress.

    Attachments:
    You must be logged in to view attached files.
    #360974

    Kanwal
    Participant

    I need solution urgent please

    #361047

    harshwe
    Participant

    Hello Elise,

    With respect to your response here – https://xtemos.com/forums/topic/related-products-popup/#post-360783

    I have already shared screenshot earlier, which clearly indicates that the code exists there in the functions.php of the Child theme, and is still lying there. I hope you have checked the Staging site, credentials of which I have already shared you earlier.

    Would have appreciated, if you could have checked by scrolling also or by using the Search term as HTML block number.
    Below is the latest screenshot for your kind reference, again –
    https://i2.paste.pics/GDJ58.png

    Also, can you please share the screenshot (or a Video), on HOW it will look like once after adding the custom code (that you shared earlier). Have you tested on your own demo.

    PS: You can try by enabling this code from Child Theme’s functions.php file of our Staging site.

    Regards

    • This reply was modified 2 years, 7 months ago by harshwe.
    #361178

    Hello,

    I have checked the provided code it works locally. The content is added to the top.

    Unfortunately, the sidebar as per your screen would require more complicated customization that is not covered by our support.

    Could you kindly advise the line where you inserted the code? I cannot find it: https://gyazo.com/1b7f2375feb19b87909350121235ae80

    Best Regards

    #361208

    Kanwal
    Participant

    Hi! You can see I have added this code in main function.php (Image: PopupCode). It is working but not my required output. Please see the other image (Image: MiniCart). It is showing below but i need this thing in another popup as i sent you screenshot earlier.

    Attachments:
    You must be logged in to view attached files.
    #361417

    harshwe
    Participant

    Hello Elise,

    With respect to your response here – https://xtemos.com/forums/topic/related-products-popup/#post-361178

    First of all, I would like to request you to please tag the name to which you are responding. It becomes very difficult to know, to which user you are responding and for what query.
    A tag like @harshwe – if you are responding to us or our post. Please, that would be very much appreciable and convenient.

    2. The line where the code is inserted is also Visible on that same screenshot. (If you had looked that screenshot earlier). I had even pointed out the Scroll bar position and the search term (8895), by which it can be located easily too.
    https://i2.paste.pics/GDJ58.png
    Anyways, the line number is 750

    3.

    I have checked the provided code it works locally…

    Also, can you please share the screenshot (or a Video), on HOW it will look like once after adding the custom code (that you shared earlier).

    PS: You can try by enabling this code from Child Theme’s functions.php file of our Staging site.
    For which credentials have already been shared.

    Regards

    #361430

    Hello,

    You need to add a popup element into the HTML block and Related products inside the popup content: https://xtemos.com/docs-topic/elements-and-widgets/

    If you have any questions please feel free to contact us.

    Best Regards

    #361502

    Kanwal
    Participant

    Hi Elise Noromit!
    First of all i would like to tell you that I’m using Elementor. The second and main thing is I have created popup in HTML block, there is it is working fine which i sent you screenshot earlier. The issue is that when I’m trying to open that popup from Shopping Cart popup with Read More button then popup is also opening but all the content which i have created in that HTML block is not visible in that popup. Please check this properly and i need this fix urgently because I have to deliver this to my client today at any cost.
    Thanks

    #361519

    Artem Temos
    Keymaster

    Sorry, but we can’t fix it in the shopping cart widget. It looks like such kind of content can’t work there and we don’t have an instruction for such customization. It is out of our theme support scope.

    Kind Regards

Tagged: 

Viewing 18 posts - 1 through 18 (of 18 total)

The topic ‘Related Products Popup’ is closed to new replies.