Forum Replies Created

Viewing 15 replies - 451 through 465 (of 514 total)
  • Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hi kayleythomas,

    We’re still trying to pin down the cause of this issue. Do you know if you have any type of server caching enabled? If so, can you try to disabling it temporarily to see if that helps?

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hi there,

    While the plugin doesn’t offer the option to hide PayPal on checkout, it can be done with a filter added to your functions.php file.

    The following will remove PayPal from the checkout page:

    add_filter( 'woocommerce_available_payment_gateways', '_wc_remove_braintree_pay_with_paypal' );
    function _wc_remove_braintree_pay_with_paypal( $gateways ) {
        unset( $gateways['paypalbraintree_paypal'] );
        return $gateways;
    }

    To remove the PayPal button from the cart page, you’ll need the following code:

    add_filter( 'wc_gateway_paypal_braintree_data', '_wc_remove_braintree_checkout_with_paypal' );
    
    function _wc_remove_braintree_checkout_with_paypal( $data ) {
        unset( $data['checkoutWithPayPal'] );
        return $data;
    }

    Please note that it is recommended to use a child theme when adding code to your functions.php file. Also, I would recommend having FTP access handy when adding the snippets above. Just in case you need to revert changes quickly.

    Let me know if that does the trick ??

    Plugin Contributor Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    It’s done but does not help.
    In WooCommerce settings:

    Enable PayPal Express Checkout
    Enable In-Context Checkout
    Allow buyers to pay without a PayPal account
    are checked.

    Can you confirm you’ve checked the setting I mentioned previously in your PayPal.com account?

    Plugin Contributor Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hey there,

    In your PayPal account there is setting, PayPal Account Optional, found at Profile > My Selling Tools > Website Preferences. Set that to On and let us know if that helps.

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    @toni Hoffman

    Have you verified that PayPal has been enabled on your Braintree account? Braintree has a guide here: https://articles.braintreepayments.com/guides/paypal/setup-guide.

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hi gzeynep,

    Yes, an SSL certificate is required with PayPal Powered by Braintree ??

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hey there,

    Error: PayPal Powered by Braintree did not supply a payment nonce. Please try again later or use another means of payment.

    That’s helpful. Thank you! Can you first make sure the plugin is up to date, then go into the PayPal Powered by Braintree Settings and select Save Changes without making any changes to the settings.

    After doing the above, let me know if you’re still seeing the error.

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hi veggiebunches,

    What happens when you select Place Order after choosing PayPal?

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hi 16cdesigns,

    We’ve seen this issue come up as a theme conflict. You can test this by temporarily switching to a default theme like Twenty Fifteen to see if the issue remains.

    Let me know if that helps.

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hi lindsayshelmire,

    Can you test with only WooCommerce and PayPal Powered by Braintree Payment Gateway activated while using a default theme? This would help identify any conflicts. If that helps, slowly enable features until you find the conflicting plugin or theme.

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    So the tape product is saying there is 1 other product with the tape tag. Did you check drafts and trash for a product with the tape tag? That shouldn’t be it but I can’t see any other reason its saying there is another product.

    Still, when I get some time, I’ll work on a query thats not all tags, or all categories.

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Sorry. I haven’t had time to work on this yet. But, I just tested this and for me, when no products with matching tags are found, it shows categories. So on that product it should try categories and load posts from the miscellaneous category.

    By any chance, do you have any draft or trashed posts with the tag tape?

    Do you still have YARPP enabled?

    Just to debug, try replacing that page with this(make a backup of your related.php if you’ve made any changes.)

    <?php
    /**
     * Related Products
     *
     * @author 		WooThemes
     * @package 	WooCommerce/Templates
     * @version     1.6.4
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    }
    
    global $product, $woocommerce_loop;
    
    if ( empty( $product ) || ! $product->exists() ) {
    	return;
    }
    
    //If product tag, get the terms
    if ($product_tags = get_the_terms($product->id, 'product_tag')) {
    
    	//Product Tags IDs array
    	$product_tag_ids = array();
    
    	foreach($product_tags as $product_tag) {
    		$product_tag_ids[] = $product_tag->term_id;
    	}
    
    	//Create the args
    	$count_args = array(
    		'post_type'				=> 'product',
    		'ignore_sticky_posts'	=> 1,
    		'posts_per_page'		=> $posts_per_page,
    		'no_found_rows' 		=> 1,
    		'orderby' 				=> $orderby,
    		'post__not_in'			=> array($product->id),
    		'tax_query'				=> array(array(
    										'taxonomy'	=> 'product_tag',
    										'field'		=> 'id',
    										'terms'		=> $product_tag_ids,
    									)),
    	);
    
    	$query = new WP_Query( $count_args );
    
    	//count products with tags
    	$count = (int)$query->post_count;
    
    	if ( $count == 0 ){
    
    		//if no related tags, try categories
    		if ( $product_cats = get_the_terms( $product->id, 'product_cat' ) ) {
    
    			//Product Tags IDs array
    			$product_cat_ids = array();
    
    			foreach( $product_cats as $product_cat ) {
    				$product_cat_ids[] = $product_cat->term_id;
    			}
    
    			//Create the args
    			$count_args = array(
    				'post_type'				=> 'product',
    				'ignore_sticky_posts'	=> 1,
    				'posts_per_page'		=> $posts_per_page,
    				'no_found_rows' 		=> 1,
    				'orderby' 				=> $orderby,
    				'post__not_in'			=> array($product->id),
    				'tax_query'				=> array(array(
    												'taxonomy'	=> 'product_cat',
    												'field'		=> 'id',
    												'terms'		=> $product_cat_ids,
    											)),
    			);
    
    			$query = new WP_Query( $count_args );
    			$count = (int)$query->post_count;
    
    			//if no related categories, do nothing.
    			if ( $count == 0 ){
    
    				return;
    
    			} else {
    
    				//if related categories, show them
    				$args = $count_args;
    
    			}
    
    		} else {
    
    			//if product has tags but no related, and no categories, run default related query
    			$related = $product->get_related( $posts_per_page );
    
    			if ( sizeof( $related ) == 0 ) return;
    
    			$args = apply_filters( 'woocommerce_related_products_args', array(
    				'post_type'            => 'product',
    				'ignore_sticky_posts'  => 1,
    				'no_found_rows'        => 1,
    				'posts_per_page'       => $posts_per_page,
    				'orderby'              => $orderby,
    				'post__in'             => $related,
    				'post__not_in'         => array( $product->id )
    			) );
    
    		}
    
    	} else {
    
    		//if related tags found, show them
    		$args = $count_args;
    
    	}
    
    } else {
    
    	//product has no tags, run default query
    	$related = $product->get_related( $posts_per_page );
    
    	if ( sizeof( $related ) == 0 ) return;
    
    	$args = apply_filters( 'woocommerce_related_products_args', array(
    		'post_type'            => 'product',
    		'ignore_sticky_posts'  => 1,
    		'no_found_rows'        => 1,
    		'posts_per_page'       => $posts_per_page,
    		'orderby'              => $orderby,
    		'post__in'             => $related,
    		'post__not_in'         => array( $product->id )
    	) );
    
    }
    
    $products = new WP_Query( $args );
    
    $woocommerce_loop['columns'] = $columns;
    
    if ( $products->have_posts() ) : ?>
    
    	<?php echo '<h2 style="color: red;">There are ' . $count . ' other products with a matching tag</h2>'; ?>
    
    	<div class="related products">
    
    		<h2><?php _e( 'Related Products', 'woocommerce' ); ?></h2>
    
    		<?php woocommerce_product_loop_start(); ?>
    
    			<?php while ( $products->have_posts() ) : $products->the_post(); ?>
    
    				<?php wc_get_template_part( 'content', 'product' ); ?>
    
    			<?php endwhile; // end of the loop. ?>
    
    		<?php woocommerce_product_loop_end(); ?>
    
    	</div>
    
    <?php endif;
    
    wp_reset_postdata();

    There should be some red text telling you if its somehow finding other products with the tag but can’t show them for whatever reason.

    Forum: Plugins
    In reply to: [WooCommerce] checkout page
    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hey Sunnylife. To remove the “Company Name” field, you can filter woocommerce_checkout_fields.

    add_filter( 'woocommerce_checkout_fields' , 'remove_company_fields');
    function remove_company_fields( $fields ){
    
    	unset($fields['billing']['billing_company']);
    	unset($fields['shipping']['shipping_company']);
    
    	return $fields;
    
    }

    To limit states to Bihar you can filter woocommerce_states.

    add_filter( 'woocommerce_states', 'custom_states');
    function custom_states( $states ){
    	$states['IN'] = array(
    		'BR' => 'Bihar'
    	);
    
    	return $states;
    }

    You would add those snippets to your functions.php file.

    To limit the city field to only Patna, you might try enabling Local Delivery as a shipping option and limit the city by Post Code.

    Hope that helps.

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    This can sometimes be an issue with session.save_path not being set in your php.ini file. Since the new installation works, that may not be the case. But its worth taking a look.

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    This templte is currently setup to be 9 columns out of 12 total. In the zerif-lite theme folder find woocommerce.php. Find this line:

    <div class="content-left-wrap col-md-9">

    and change 9 to 12:

    <div class="content-left-wrap col-md-12">

    It’s best to start a child theme to avoid overwriting any customization’s you make when you update the theme later.

Viewing 15 replies - 451 through 465 (of 514 total)