Forum Replies Created
-
AuthorPosts
-
December 10, 2015 at 8:46 am in reply to: Reviews Star Rating disappeared when not logged in #550220
Switch to multiple themes and it works fine.
Switch to enfold, the Your Review, Your Rating labels and star ratings disappear as per screen shot attached above.
Star Rating appears when mouseover.– Tried disabling all plugins except woocommerce and it doesn’t help
– Tried disabling child theme and use enfold parent theme, still the same.
– Tried disabling all code snippets, plugins(except woocommerce) and use a default Enfold theme, still the sameI reckon is Enfold’s CSS.
I’m using the latest version of woocommerce, enfold and wordpress.Thanks.
- This reply was modified 9 years ago by senso.
December 10, 2015 at 4:25 am in reply to: Reviews Star Rating disappeared when not logged in #550135Hi Yigit,
It is not online.
Refreshing and clearing cache doesn’t help.I think I’ve opened a can of worms… …
1. With any contents added below the product thumbnail, it is wrapped within the image class div.
2. Any a href tag auto generates rel=product_images[grouped].
3. By manually adding a </div> (to close the image class) before the custom content, the content on the right and sidebar (if any) will be pushed below the product thumbnail. If the sidebar has removed, it will produce an empty space above the product title. The empty space is due to the hidden sidebar..
4. The HTML output the sidebar despite being removed. http://i.imgur.com/x4ubf8t.png
I’ve also noticed by adding a url to that section, it automatically generates below code within the a tag
rel=product_images[grouped]
<span class="image-overlay overlay-type-extern" style="display: none;"> <span class="image-overlay-inside"></span> </span>
I’m very confused now.
I just simply need to add my custom section after the div image class, not within it. Is it very difficult to achieve this?
You can replicate the issue with a default enfold and woocommerce setup.
Hi Yigit,
Hiding the error messages by turning debug off, is it normal and will there be any issues with it?
Thanks
Hi Yigit,
Thanks for the help.
No. It doesn’t work either with commenting out
echo "</div>"
I reckon the product thumbnail is wrapped with sidebar? I’m curious why is it done in this way?Hi Andy,
All the error messages disappeared after I turn off wordpress debug.
define('WP_DEBUG', false);
Are there any issue that I should watch out for?Hi,
Arghh….After more search, I found in this file enfold/config-woocommerce/config.php, want to check if is what causing the issue I experienced?
# # wrap single product image in an extra div # add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2); add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20); if(!function_exists('avia_add_image_div')) { function avia_add_image_div() { echo "<div class='single-product-main-image alpha'>"; } } if(!function_exists('avia_close_image_div')) { function avia_close_image_div() { global $avia_config; if(is_product()) { $avia_config['currently_viewing'] = "shop_single"; get_sidebar(); } echo "</div>"; } }
Thanks for the patience!
Hi Basilis,
With other theme, I don’t have this problem. It seems Enfold added this extra </div> tag. You can replicate the problem with the default enfold theme and woocommerce. Additional set up I did is “remove” Sidebar.
Try to add some custom content after the product thumbnail and you’ll get what I mean. The additional content is wrapped within the <div class=”images”> </div>.
For testing purpose snippet
add_action( 'woocommerce_product_thumbnails', 'include_test_info', 40); function include_test_info() { echo 'abcdefg' ; }
I have attempted to use “wc_get_template” to display the custom content and the problem persists.
Hi Yigit,
Thanks for the help. I doubt it works with the extra </div> added. With and without my custom code, by adding the extra </div> as suggested, the right sidebar appears and pushed the content(product title, tabs, price…etc) below.
May I know where is the original closed div found? I can’t find any reference to it. I’ll just have to add the custom content after the original </div> tag.
- This reply was modified 9 years, 1 month ago by senso.
Hi Basilis,
Sorry, it is offline.
Are there any areas that sound confusing in my first post? I’ll try to explain again.
ThanksYou have been a great help! Thanks!
That works perfectly Ismael! Thanks!
Hi Basilis,
Certainly not. That snippet is to remove the product tabs. I’d like to move it, not remove it. In addition to that, not hiding it using CSS.
- This reply was modified 9 years, 1 month ago by senso.
Hi Ismael,
I have this error
Notice: Undefined variable: post_id in /var/www/html/wp-content/themes/enfold-child/includes/loop-search.php on line 34
Notice: Undefined variable: post_id in /var/www/html/wp-content/themes/enfold-child/includes/loop-search.php on line 34
Notice: Undefined variable: size in /var/www/html/wp-content/themes/enfold-child/includes/loop-search.php on line 34
Notice: Undefined variable: attr in /var/www/html/wp-content/themes/enfold-child/includes/loop-search.php on line 34
—————————————————————-
I have the above errors.Hi Ismael,
If I may trouble you, can I verify if you are able to replicate the problem that I mentioned? If I interpret your posts correctly, you seem not to have this problem?
To double and triple check, I tried it on a default set up with enfold and woocommerce. The problem is there. I’ll try to explain again
– I use the snippet posted on #531794
– The page and tabs load correctly as intended if I access the single product page directly http://www.domain.com/shop/product-name
– Homepage is set up with a right sidebar and woocommerce recent reviews widget, if I click on the links via recent reviews widget, the url produced is http://www.domain.com/shop/product-name/#comment-25. The page is anchored at #comment-25 but the tabs contents do not show (refer to screenshot posted on #531815)
– The tabs content is visible if I clicked on the tab heading.I’ve spent more than a week trying to find a fix for this but to no avail. It is driving me insane …… I appreciate if anyone can let me know if I am the only one who have this problem?
Thanks greatly!
This html output produces
<div id="tab-description" class="panel entry-content wc-tab" style="display:none;">
However, I’ve searched everywhere but couldn’t find reference of style=”display:none;” to change it to block. Anyone knows where and how?
Hi Ismael,
The above code (#533033) tried but does not remove review tab.
The content(product description,additional information) is there but it needs to be clicked to show.
I’ve tried to disable all plugins except woocommerce and is not caused by any plugins.
I tried to set min-width for the tabs but the content is still not showing.
I tried to add clear:both to tabs and #reviews but still no avail.
Completely clueless what is causing thisSigh…………
- This reply was modified 9 years, 1 month ago by senso.
Hi Ismael,
Really appreciate your help!
It displays normally when the single product page is viewed.
However, if it is access via Woocommerce Recent Review Widget, the url is http://domain.com/product-name/#comment-21, It anchors at #comment-21 but the tabs contents is missing/closed as the above attached. The tabs’ contents displays only when it is clicked.- This reply was modified 9 years, 1 month ago by senso.
Many thanks Ismael!
It is still the same. The product tabs panel is still display none.
It seems like an easy fix but is driving me crazy not able to fix it.
The tabs’ content shows when the tab’s title (description / additional information) is clicked. My guess is the review content that is moved below is “open” and thus the other tabs is “closed”. However, when the hashtag #comment-21 is removed from the url, the tabs’ contents load properly.
Been searching everywhere and trying all possible ways I can think of…. …. but to no avail.
Hi yigit,
I’m using latest version.
I’m using blog as home page. And set to show full length article. When click on the title, it goes to the single entry and the “share the entry” shows. However, the “share the entry” does not show on the home page.
Did I miss any setting?
August 21, 2015 at 12:57 am in reply to: Hide Woocommerce product type and term from showing up in post meta #491130Hi Ismael,
It does exclude but not seeing separator/comma. The screenshot is done after adding the provided code snippet.
Sorry, my bad, re-read the posts and realized it works with tags and it does work. Is it possible to work with taxonomy too?
Hi lookashow,
Thought it might help… I just downloaded the latest 3.3 version from TF today. I hope this info help.
August 20, 2015 at 8:23 am in reply to: Hide Woocommerce product type and term from showing up in post meta #490577Hi Ismael,
Thanks for the help! Sorry for not being clear on the comma/separator. I hope I can explain myself better with a screenshot http://imgur.com/GOrAmOU The red arrow shows where the comma/separator is missing.Thanks!
- This reply was modified 9 years, 4 months ago by senso.
Oops! Didn’t know it requires extra work for making this work but the logic does flow right? Been pulling my hair out to decide how to use attributes and custom taxonomy. Will take a rain check on this until I figured out what I need to do. It is still a “trial and error” phase now.
It is great to know you guys provide customizing services as an option! If we engage other developers for customization, it could be more expensive for the extra time required to study the code. Will keep this in mind!
Hi Basilis,
Thanks for the willingness to help. I’m quite confused by the use of attributes and custom taxonomy despite spending days to google and read. I know I can’t become a developer just by reading a few articles over nights but I tried my best.
I’m not sure if I’m doing it correctly but here is what I’ve done so far.
Under Woocommerce Products Post Type
I have categories as below:
Cleansers
— Cleansing Foam
— Cleansing Lotion
Moisturizers
— Moisturizing Lotion
— Moisturizing CreamI have attributes as below:
Brand
Size
Skin Type
I have custom taxonomy as below:
Skincare Categories
— Eye Care
— Lip Care
— Sun Care
— Anti Aging
Skin Concern
— Fine Lines
— Wrinkles
— Under Eye CirclesCurrently, what I would like to achieve is – When there is an article about Anti-Aging, I can display relevant products under Anti-Aging and relevant articles on Anti-Aging respectively. When there is an anti-aging product, I can display relevant articles on anti-aging.
The Blog Post element does not have the column and sort by function. The Product Grid can’t use custom taxonomy. So I don’t know what to do now.
- This reply was modified 9 years, 4 months ago by senso.
August 17, 2015 at 7:04 am in reply to: Hide Woocommerce product type and term from showing up in post meta #488594Hi Ismael,
Thanks for the help. I tried this but it doesn’t provide a comma separator between different categories/taxonomy. Is there a way to include the separator? Is there a way to select what to be included instead of what to be excluded? Is there a way to make the blog post element to display in columns with sort function like product grid element?
Really, sorry for asking for more but have really tried to google for solutions these few days but to no avail.
- This reply was modified 9 years, 4 months ago by senso.
Hi Ismael,
Thanks for the prompt support as usual! I did tried using blog posts element but I come across this problem -> https://kriesi.at/support/topic/hide-woocommerce-product-type-and-term-from-showing-up-in-post-meta/
And I am not able to display them in column and sort like product grid elements.- This reply was modified 9 years, 4 months ago by senso.
-
AuthorPosts