Forum Replies Created

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter benstewart906

    (@benstewart906)

    Hi ILLID, thank you so much for getting back to me.

    I did review the Pro Search Feature and understand you are able to search for users based on their roles/etc., but I am not entirely sure this functionality is exactly what I am looking for. While there are users that are assigned, for example, the role of “Vendor Admin”, I am not necessarily trying to search for those users. Rather, I am trying to search for the vendor store that they are an admin of.

    You can see the list of vendors I am trying to search through here: https://triggerdev.com/fmtg/browse-by-vendor/

    And an example of an individual vendor page here: https://triggerdev.com/fmtg/vendor/trigger-digital/

    Is it possible to search via vendor titles, rather than “Vendor Admin” usernames?

    I’m having the same problem as well. The labels (days, hours, minutes, seconds) appear fine but the numbers do not appear on the front end. They appear correctly within the Elementor editor though.

    Hi there, I realize you say this is a “theme issue”, but could you be more specific?

    I’m building a custom theme and when I search nothing happens, but when the 2019 theme is enabled search results display, similarly to the author of this post.

    Could you tell me what PHP template the search results use by default so that I can ensure my theme is compatible?

    Thread Starter benstewart906

    (@benstewart906)

    Alright I found it! I apologize I didn’t catch this earlier, but yes indeed the child had a tabs.php file that was overriding the default theme. I’ve renamed/disabled this and things are working perfectly!!!!

    I wish i could give you 6 out of 5 stars, you guys rock!

    Thread Starter benstewart906

    (@benstewart906)

    After inspecting via FTP woocommerce/templates/single-product/tabs/tabs.php DOES exist, and it appears to be identical to your code above.

    Additionally, here are is my single-product.php file:

    <?php
    /**
     * The Template for displaying all single products
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/single-product.php.
     *
     * HOWEVER, on occasion WooCommerce will need to update template files and you
     * (the theme developer) will need to copy the new files to your theme to
     * maintain compatibility. We try to do this as little as possible, but it does
     * happen. When this occurs the version of the template file will be bumped and
     * the readme will list any important changes.
     *
     * @see 	    https://docs.woocommerce.com/document/template-structure/
     * @package 	WooCommerce/Templates
     * @version     1.6.4
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    }
    
    get_header( 'shop' ); ?>
    
    	<?php
    		/**
    		 * woocommerce_before_main_content hook.
    		 *
    		 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
    		 * @hooked woocommerce_breadcrumb - 20
    		 */
    		do_action( 'woocommerce_before_main_content' );
    	?>
    
    		<?php while ( have_posts() ) : the_post(); ?>
    
    			<?php wc_get_template_part( 'content', 'single-product' ); ?>
    
    		<?php endwhile; // end of the loop. ?>
    
    	<?php
    		/**
    		 * woocommerce_after_main_content hook.
    		 *
    		 * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
    		 */
    		do_action( 'woocommerce_after_main_content' );
    	?>
    
    	<?php
    		/**
    		 * woocommerce_sidebar hook.
    		 *
    		 * @hooked woocommerce_get_sidebar - 10
    		 */
    		do_action( 'woocommerce_sidebar' );
    	?>
    
    <?php get_footer( 'shop' );
    
    /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */
    

    And lastly here is my content-single-product.php:

    <?php
    /**
     * The template for displaying product content in the single-product.php template
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/content-single-product.php.
     *
     * HOWEVER, on occasion WooCommerce will need to update template files and you
     * (the theme developer) will need to copy the new files to your theme to
     * maintain compatibility. We try to do this as little as possible, but it does
     * happen. When this occurs the version of the template file will be bumped and
     * the readme will list any important changes.
     *
     * @see     https://docs.woocommerce.com/document/template-structure/
     * @package WooCommerce/Templates
     * @version 3.6.0
     */
    
    defined( 'ABSPATH' ) || exit;
    
    global $product;
    
    /**
     * Hook: woocommerce_before_single_product.
     *
     * @hooked wc_print_notices - 10
     */
    do_action( 'woocommerce_before_single_product' );
    
    if ( post_password_required() ) {
    	echo get_the_password_form(); // WPCS: XSS ok.
    	return;
    }
    ?>
    <div id="product-<?php the_ID(); ?>" <?php wc_product_class( '', $product ); ?>>
    
    	<?php
    	/**
    	 * Hook: woocommerce_before_single_product_summary.
    	 *
    	 * @hooked woocommerce_show_product_sale_flash - 10
    	 * @hooked woocommerce_show_product_images - 20
    	 */
    	do_action( 'woocommerce_before_single_product_summary' );
    	?>
    
    	<div class="summary entry-summary">
    		<?php
    		/**
    		 * Hook: woocommerce_single_product_summary.
    		 *
    		 * @hooked woocommerce_template_single_title - 5
    		 * @hooked woocommerce_template_single_rating - 10
    		 * @hooked woocommerce_template_single_price - 10
    		 * @hooked woocommerce_template_single_excerpt - 20
    		 * @hooked woocommerce_template_single_add_to_cart - 30
    		 * @hooked woocommerce_template_single_meta - 40
    		 * @hooked woocommerce_template_single_sharing - 50
    		 * @hooked WC_Structured_Data::generate_product_data() - 60
    		 */
    		do_action( 'woocommerce_single_product_summary' );
    		?>
    	</div>
    
    	<?php
    	/**
    	 * Hook: woocommerce_after_single_product_summary.
    	 *
    	 * @hooked woocommerce_output_product_data_tabs - 10
    	 * @hooked woocommerce_upsell_display - 15
    	 * @hooked woocommerce_output_related_products - 20
    	 */
    	do_action( 'woocommerce_after_single_product_summary' );
    	?>
    </div>
    
    <?php do_action( 'woocommerce_after_single_product' ); ?>
    

    Which I do notice has the outpout_product_data_tabs line in it.

    Thank you so much for all your help

    Thread Starter benstewart906

    (@benstewart906)

    Hmm, yes that is the link I was using and although I have found the Products Tab module within the page builder, when I add it to the page it just displays a blank box, which leads me to believe the theme isn’t currently supporting tabs.

    When I view this topic here: https://kb.wpbeaverbuilder.com/article/485-create-a-singular-themer-layout-for-woocommerce

    …the screenshot does show the tabs enabled and visible within Beaver Builder, so I’m assuming it should be a default function, so I’m confused why they aren’t there.

    Could you give me a suggestion perhaps to ensure tabs are enabled either within the WooCommerce dashboard or via FTP by inspecting some of the template files?

    Thanks for your time!

    Thread Starter benstewart906

    (@benstewart906)

    Hi Kevin, I have added a product description and short description, as well as assigned and populate 4 additional custom tabs via this plugin. None of them are showing up though. Inspecting the code I don’t see them being hidden or anything either (just absent).

    I am using Beaver Builder to build my site, and I have a child theme active. It does allow to you build custom templates for single product pages, which I’ve experimented with but the “Product Tabs” module that exists within the page builder just displaying a white box (nothing).

    I’m assuming the tabs feature need to be enabled somewhere within the WooCommerce template files.

    Although i am building on a hidden dev directory, it is a clone of this site here: https://vedaecn.com/product/disposable-full-spectrum-vape/

    Thread Starter benstewart906

    (@benstewart906)

    Hi Kevin, thanks so much for the response. No the default tabs aren’t showing up either. How could I go about displaying them?

    Thread Starter benstewart906

    (@benstewart906)

    Solved! I simply needed to declare WooCommerce support in functions.php and the tab was added:

    function mytheme_add_woocommerce_support() {
    add_theme_support( ‘woocommerce’ );
    }
    add_action( ‘after_setup_theme’, ‘mytheme_add_woocommerce_support’ );

    Hope this helps someone in the future!

    Thread Starter benstewart906

    (@benstewart906)

    Making progress here: when I activated the “2017” theme, the Reviews tab displayed, so it is a theme issue.

    Here is a list of everything I’ve done so far that has not worked with my custom theme:

    – Within the Product Quick Edit, I’ve checked “Enable Reviews”
    – Within WooCommerce ? Settings ? Products, I’ve checked “Enable product reviews”
    – Within this same dashboard, I’ve also un-checked “Reviews can only be left by verified owners”
    – I’ve left a single placeholder review on the single product, which is “Approved” within the “Comments” section of the dashboard
    – I’ve deactivated all plugins to no avail.
    – I’ve inspected the code within the tabs and there is no CSS that is hiding the Reviews tab; it simply is not loading.

    Is there somewhere in my function I need to declare usage of the Reviews feature?

    Thread Starter benstewart906

    (@benstewart906)

    Bump. Any thoughts? Thanks!

Viewing 11 replies - 16 through 26 (of 26 total)