Home › Forums › WoodMart support forum › Quick View for variable Product
Quick View for variable Product
- This topic has 19 replies, 3 voices, and was last updated 3 years, 8 months ago by
Artem Temos.
-
AuthorPosts
-
June 4, 2021 at 7:40 am #297519
iRomeKParticipantHey Guys,
when I add a linked product as a variation, so for example I want to show the ring in silver as linked products, cause the main product is in silver too. Then the variation will be shows in linked products section of the product page its assigned to. Nevertheless, when I click the “quick view” Icon, there will just be blank popup.
And the “new” Badge will be gone too.
When I add the parent product (not a specific variation) to the linked product, the quick view will work and the badge is there. How can I fix this?
Thank you and best regards,
iRomeKJune 4, 2021 at 9:56 am #297550
Aizaz Imtiaz AwanKeymasterHello,
Could you please elaborate what you actually want with some relevant screenshots and with the URL of the website to check it myself and help you out accordingly. Because your current explanation is not clear enough to understand what issue you are facing.
Best Regards
June 5, 2021 at 9:21 am #297742
iRomeKParticipantSure, and thanks for your answer.
Here you can see it stew by step. Staging Link below.
The stetup of the variation and the parent: https://ibb.co/7jPqyKz
The look of the variation: https://ibb.co/RcsdstC
klicking on quick view of variation https://ibb.co/vXGX3mT
not working pop up for variation: https://ibb.co/ZTrg6Xt
working parent: https://ibb.co/4f7vs6Mbest Regals,
iRomeKJune 5, 2021 at 10:16 am #297756
Aizaz Imtiaz AwanKeymasterHello,
I have tried to visit the URL you provided but was unable to visit. It is asking for username and password.
Please provide a login and password to check it myself and help you out accordingly.
Best Regards
June 6, 2021 at 8:28 am #297903
iRomeKParticipantHey,
sure. sorry. I thought you could visit it like normal.
User and PW in the PC.
Best regards and thank you,
iRomeKJune 7, 2021 at 7:37 am #298041
Aizaz Imtiaz AwanKeymasterHello,
I have visited your website and the other product variations are working on the quick view.
Screenshot for Clarification: https://gyazo.com/281a52bad0720704af393d53563e6f1c
The issue seems to be with the product. Please try recreating the product then add it to the linked product then check back.
Best Regards
June 7, 2021 at 4:38 pm #298194
iRomeKParticipantHey,
thank you for answering. Well you did use the parent product. you need to try the quick view on the silver one.
Here is the video: https://streamable.com/ke7mbm
Thank you and best regards,
iRomeKJune 7, 2021 at 4:49 pm #298198
iRomeKParticipantHey guys,
maybe I found the problem, this is what a genius developer of me found. Can you maybe change this line of code? Cause I think this will boost your theme as well! =)
What are your thought to this?
Thanks ans best regards,
iRomeKJune 8, 2021 at 7:22 am #298298
Artem TemosKeymasterHello,
We will add a WordPress filter/hook there so you would be able to customize that
post_typ
value in the child theme in our next theme update.Kind Regards
June 8, 2021 at 7:34 am #298301
iRomeKParticipantHey guys, you are awesome! Thank you! I have one more thing to make this variation product thing outstanding. For this we need one more filter/hook.
I added the php code below. With this one, I am able to show the “new” badge for variable products as well.
Would it be possible too for the next update to add sufficient hooks and filters to modify the output of badge function?
Thank you so much!
Best regards from Germany,
iRomeKJune 8, 2021 at 8:54 am #298340
Artem TemosKeymasterHello,
Could you please clarify where do you want to add the filter exactly in the theme code?
Kind Regards
June 8, 2021 at 9:03 am #298348
iRomeKParticipantHello, sure.
I added a plugin to make the search and filter options work accurate. So by filtering for a specific color, I want to show the right color, so the variation of the product with this specific color and not the parent Product like WooCommerce does by default. (there you need one more click to see the actual result).
So the filtering and searching is working quite well. The only problem is, that the “badge” is not showing up. I want the new badge to be displayed for all the variations, not just for the parent. With this code, we can make it show up, but we need a filter/hook.
As you can see in link above, the variations of the product (without the plugin I mentioned) are not showing up this badge as well by default nor works the quick view. But this is a really big deal to show accurate filtering. And the last step to make it work (I guess) is a way to make this code work too.
Best regards,
iRomeKJune 9, 2021 at 5:49 am #298534
iRomeKParticipantAnd here is the reply from the dev.
Thank you and best regards,
iRomeKAttachments:
You must be logged in to view attached files.June 9, 2021 at 6:15 am #298553
Artem TemosKeymasterHello,
OK, we will add the filter hook there as well.
Kind Regards
June 9, 2021 at 7:31 pm #298746
iRomeKParticipantOk thank you very much! =)
And can you send me an update copy so that my dev can start?
Best regards and thank you for the support,
iRomeKJune 10, 2021 at 6:21 am #298785
Artem TemosKeymasterIt would be better if he adds these hooks by himself and then, after the update, you won’t lose any changes. We can’t send an updated copy because it is under development and contains other changes as well.
June 22, 2021 at 5:43 pm #301512
iRomeKParticipantHey,
thank you for the update. Well we found some new hooks and make them work for our plugin.
Regarding the badge task, we will need a filter in woodmart_product_label() function inside
woodmart/inc/integrations/woocommerce/template-tags.phpIdeally the filter should be on $output variable before it is converted into a string. Somewhat like this (screenshot below).
Can you please add such a filter?
Thank you very much and best regards,
iRomeKAttachments:
You must be logged in to view attached files.June 23, 2021 at 12:49 pm #301814
Artem TemosKeymasterWe have added this hook in our 6.1.1 version that has been released just now.
June 25, 2021 at 11:10 am #302451
iRomeKParticipantThank you very much! =)
June 25, 2021 at 11:12 am #302455
Artem TemosKeymasterYou are welcome!
-
AuthorPosts
- You must be logged in to create new topics. Login / Register