Forum Replies Created

Viewing 15 replies - 1 through 15 (of 34 total)
  • Thread Starter leahjm77

    (@leahjm77)

    No need I found some code. Thank you.

    Thread Starter leahjm77

    (@leahjm77)

    Hi, thank you for your reply. I have been back and forth with my theme developers and they said ajax is installed. I am also using Advanced Woo Search which is an ajax search function and it is working on mobile. I like your ajax cart but can’t figure out why it’s not working on mobile. I tried the WPC ajax add to cart plugin you mentioned but it affected other things from working properly. Any other ideas? If not I will try to find something else that works, I just liked yours ?? Thank you.

    I am having the same issue – SalesPop is not showing even though it says it’s turned on and synced. My site is jrmhockeyart.com. Thank you

    Thread Starter leahjm77

    (@leahjm77)

    That worked great – thank you!!

    Thread Starter leahjm77

    (@leahjm77)

    hello? just wondering if this is possible? Thank you

    Thread Starter leahjm77

    (@leahjm77)

    just wondering if you’re still offering support?

    Thread Starter leahjm77

    (@leahjm77)

    Hi Kevin, I just have one question. I upgraded to the Pro version today and all is working well. The only thing is I have checked the option to hide the “Additional Information” tab but it’s still showing the title above my ‘related products’ section. I can’t hide the title using CSS because it hides all the tab titles then. I was just wondering if you might know why that tab is still showing or how I could hide it? You can see an example at this link near the bottom of the page – https://jrmhockeyart.com/products/ken-dryden-2/. Thank you

    Thread Starter leahjm77

    (@leahjm77)

    Hi Kevin, thank you for your reply. I could probably remove the reviews link at the top of each page or I might keep both for the products that do have product specific reviews. I was actually able to make all the tabs open by default by following your instructions from a previous support request, so that’s great. I will be purchasing the Pro version so I can add custom tabs to all products at once rather than individually. Thanks again for your help.

    @branahr thank you very much for your reply, I really appreciate it. I was mistaken in that I originally was using the code that @johnlunceford provided. I also have a bit extra code because I’m using the Woo Discount Rules plugin. I tried changing the original part of the code to what you provided. It seemed to work but then I found an issue in my cart. I switched back to the code I had which solved the cart issue except for the one product that’s not showing the prices correctly. I was wondering if you would know how to edit this code to exclude a product as you provided previously? Thanks again, I really appreciate it.

    add_filter( 'woocommerce_variation_option_name', 'display_price_in_variation_option_name' );
    
    function display_price_in_variation_option_name( $term ) {
        global $wpdb, $product;
    
        $result = $wpdb->get_col( "SELECT slug FROM {$wpdb->prefix}terms WHERE name = '$term'" );
    
        $term_slug = ( !empty( $result ) ) ? $result[0] : $term;
    
        $query = "SELECT postmeta.post_id AS product_id
                    FROM {$wpdb->prefix}postmeta AS postmeta
                        LEFT JOIN {$wpdb->prefix}posts AS products ON ( products.ID = postmeta.post_id )
                    WHERE postmeta.meta_key LIKE 'attribute_%'
                        AND postmeta.meta_value = '$term_slug'
                        AND products.post_parent = $product->id";
    
        $variation_id = $wpdb->get_col( $query );
    
        $parent = wp_get_post_parent_id( $variation_id[0] );
    
        if ( $parent > 0 ) {
            $_product = new WC_Product_Variation( $variation_id[0] );
            return $term . ' (' . woocommerce_price( $_product->get_price() ) . ')';
        }
        return $term;
    
    }
    
    function woocs_fixed_raw_woocommerce_price_method($tmp_val, $product_data, $price){
        remove_filter('woocs_fixed_raw_woocommerce_price', 'woocs_fixed_raw_woocommerce_price_method', 10, 3);
        global $flycart_woo_discount_rules;
        if(!empty($flycart_woo_discount_rules)){
            global $product;
            if(empty($product)){
                $discount_price = $flycart_woo_discount_rules->pricingRules->getDiscountPriceOfProduct($product_data);
                if($discount_price !== null) $tmp_val = $discount_price;
            }
        }
        add_filter('woocs_fixed_raw_woocommerce_price', 'woocs_fixed_raw_woocommerce_price_method', 10, 3);
    
        return $tmp_val;
    }
    add_filter('woocs_fixed_raw_woocommerce_price', 'woocs_fixed_raw_woocommerce_price_method', 10, 3);
    

    @branahr thank you for your code. It works great in my website for all products except for one. Is it possible to edit the original code you provided to exclude one specific product ID or product category, OR for it to apply to only specific product categories? If so, how would I edit the php you provided to be able to do that? Thank you in advance!

    Thread Starter leahjm77

    (@leahjm77)

    Please disregard, I found the issue.

    Thread Starter leahjm77

    (@leahjm77)

    Further to my last message … if needed I can set it so it doesn’t show any amounts but rather let the customer set the amount they want. I tried doing that in a test page at https://jrmhockeyart.com/products/gift-card-copy/ but I noticed one thing that’s confusing. Under ‘Gift Card Amount’ it says ‘choose your amount’ and then only shows the option of $0.00. Only underneath that does it say “Other Amount” where it lets the customer enter a custom amount. It seems confusing that they have to choose $0 before they can enter a custom amount. It would make more sense to have the words ‘choose custom amount’ instead of $0. Is there a way to make that less confusing for people or change the $0.00 to something else?

    Thread Starter leahjm77

    (@leahjm77)

    Hi Kevin, thanks for your help. I am aware of the other tab layout in my theme, but it changes the product page layout in other ways that I don’t like (and it moved the tab content to be over in only half of the page). I was just wondering if there was a fairly easy way to add code to make the tabs stay open one after the other but keep the same product page layout I’m using. If it’s difficult or not possible then don’t worry about it. Thank you.

    Thread Starter leahjm77

    (@leahjm77)

    For sure, here’s a product link – https://jrmhockeyart.com/products/marc-andre-fleury/

    Thanks again! I really appreciate this.

    Thread Starter leahjm77

    (@leahjm77)

    Sorry about that! Will try again.

    <?php
    /**
     * Single Product tabs
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/single-product/tabs/tabs.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/
     * @author  WooThemes
     * @package WooCommerce/Templates
     * @version 2.4.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    
    /**
     * Filter tabs and allow third parties to add their own.
     *
     * Each tab is an array containing title, callback and priority.
     * @see woocommerce_default_product_tabs()
     */
    $tabs = apply_filters( 'woocommerce_product_tabs', array() );
    $single_type = qode_woocommerce_single_type();
    $tabs_position_class = 'left';
    if($single_type == 'tabs-on-bottom'){
    	$tabs_position_class = 'center';
    }
    
    if ( ! empty( $tabs ) ) : ?>
    	<?php if($single_type != '') { ?>
    		<div class="q_tabs horizontal <?php echo esc_attr($tabs_position_class);?>">
    			<ul class="tabs-nav">
    				<?php foreach ( $tabs as $key => $tab ) : ?>
    					<li class="<?php echo esc_attr( $key ); ?>_tab">
    						<a href="#tab-<?php echo esc_attr( $key ); ?>"><?php echo apply_filters( 'woocommerce_product_' . $key . '_tab_title', esc_html( $tab['title'] ), $key ); ?></a>
    					</li>
    				<?php endforeach; ?>
    			</ul>
    			<div class="tabs-container">
    				<?php foreach ( $tabs as $key => $tab ) : ?>
    					<div class="tab-content" id="tab-<?php echo esc_attr( $key ); ?>">
    						<?php call_user_func( $tab['callback'], $key, $tab ); ?>
    					</div>
    				<?php endforeach; ?>
    			</div>
    		</div>
    	<?php } else { ?>
    
    		<div class="q_accordion_holder toggle boxed woocommerce-accordion">
    			<?php foreach ( $tabs as $key => $tab ) : ?>
    
    				<h6 class="title-holder clearfix <?php echo esc_attr($key) ?>_tab">
    					<span class="tab-title"><?php echo apply_filters( 'woocommerce_product_' . $key . '_tab_title', esc_html( $tab['title'] ), $key ); ?></span>
    				</h6>
    				<div class="accordion_content">
    					<div class="accordion_content_inner">
    						<?php call_user_func( $tab['callback'], $key, $tab ) ?>
    					</div>
    				</div>
    
    			<?php endforeach; ?>
    		</div>
    
    	<?php } ?>
    
    <?php endif; ?>
Viewing 15 replies - 1 through 15 (of 34 total)