Home › Forums › WoodMart support forum › Related Products Popup
Related Products Popup
- This topic has 17 replies, 4 voices, and was last updated 2 years, 7 months ago by Artem Temos.
-
AuthorPosts
-
March 10, 2022 at 10:49 am #359525
KanwalParticipantHi! I want to show “YOU MAY ALSO LIKE” popup with Shopping Cart popup. How can i do it?
March 10, 2022 at 7:27 pm #359717
Elise NoromitMemberHello,
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
March 11, 2022 at 8:34 am #359820
KanwalParticipantCan you please explain some more where is Product grid?
March 11, 2022 at 3:11 pm #359969
Elise NoromitMemberHello,
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
March 11, 2022 at 11:21 pm #360041
harshweParticipantHello Elise,
After adding code to Child theme, it shows below error –
https://i2.paste.pics/GC5RB.pngadd_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
RegardsMarch 12, 2022 at 11:14 pm #360228
Elise NoromitMemberHello,
Please insert the site admin access into the Private content below the message area.
Best Regards
March 13, 2022 at 7:30 pm #360333
harshweParticipantHello 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.pngRegards
March 14, 2022 at 11:24 am #360551
KanwalParticipantThis 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.March 15, 2022 at 12:32 am #360783
Elise NoromitMemberHello,
I do not see the code added to the function.php of the child theme: https://gyazo.com/0c138a87e3c84afba7f2a1ef9905e4b5
Best Regards
March 15, 2022 at 5:04 am #360813
KanwalParticipantHi! 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.March 15, 2022 at 11:13 am #360974
KanwalParticipantI need solution urgent please
March 15, 2022 at 2:48 pm #361047
harshweParticipantHello 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.pngAlso, 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.
March 16, 2022 at 2:07 am #361178
Elise NoromitMemberHello,
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
March 16, 2022 at 5:08 am #361208
KanwalParticipantHi! 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.March 16, 2022 at 5:04 pm #361417
harshweParticipantHello 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 7503.
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
March 16, 2022 at 6:55 pm #361430
Elise NoromitMemberHello,
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
March 17, 2022 at 4:43 am #361502
KanwalParticipantHi 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.
ThanksMarch 17, 2022 at 6:49 am #361519
Artem TemosKeymasterSorry, 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
-
AuthorPosts
Tagged: elise
The topic ‘Related Products Popup’ is closed to new replies.
- You must be logged in to create new topics. Login / Register