Title: Ash's Replies | WordPress.org

---

# Ash

  [  ](https://wordpress.org/support/users/ash222/)

 *   [Profile](https://wordpress.org/support/users/ash222/)
 *   [Topics Started](https://wordpress.org/support/users/ash222/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ash222/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ash222/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ash222/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ash222/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ash222/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/ash222/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ash222/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Basic User Avatars] Image not getting updated from front end](https://wordpress.org/support/topic/image-not-getting-updated-from-front-end/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/image-not-getting-updated-from-front-end/#post-10947674)
 * hi,
 * Thank you soo much. I got this issue sorted.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Issue with the menu](https://wordpress.org/support/topic/issue-with-the-menu-2/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/issue-with-the-menu-2/#post-10932653)
 * hi,
    Thanks for your response. [@rossmitchell](https://wordpress.org/support/users/rossmitchell/)
   Same issue when viewed in different computer or different browser
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] how to add additional editable field in single product page](https://wordpress.org/support/topic/how-to-add-additional-editable-field-in-single-product-page/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/how-to-add-additional-editable-field-in-single-product-page/#post-10862415)
 * Hey,
 * Thank you all for your support. Thank you [@yukikatayama](https://wordpress.org/support/users/yukikatayama/)
   n i used this name your price plugin n it stood by my requirement. Thank you 
   soo much.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to hide the discount price tag](https://wordpress.org/support/topic/how-to-hide-the-discount-price-tag/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/how-to-hide-the-discount-price-tag/#post-10833999)
 * hello,
    the code that i have used to hide the variation price range is add_filter(‘
   woocommerce_variable_sale_price_html’, ‘detect_variation_price_format’, 10, 2);
   add_filter( ‘woocommerce_variable_price_html’, ‘detect_variation_price_format’,
   10, 2 );
 * function detect_variation_price_format( $price, $product ) {
 * // Main Price
    $prices = array( $product->get_variation_price( ‘min’, true ),
   $product->get_variation_price( ‘max’, true ) ); $price = $prices[0] !== $prices[
   1] ? sprintf( __( ”, ‘woocommerce’ ), wc_price( $prices[0] ) ) : wc_price( $prices[
   0] );
 * // Sale Price
    $prices = array( $product->get_variation_regular_price( ‘min’,
   true ), $product->get_variation_regular_price( ‘max’, true ) );
 * sort( $prices );
 * $saleprice = $prices[0] !== $prices[1] ? sprintf( __( ”, ‘woocommerce’ ), wc_price(
   $prices[0] ) ) : wc_price( $prices[0] );
 * if ( $price !== $saleprice ) {
    $price = ‘<span style=”text-decoration: line-
   through;”>’ . $saleprice . ‘</span> ‘ . $price . ‘‘; }
 * remove_action( ‘woocommerce_single_variation’, ‘woocommerce_single_variation’,
   10 );
    add_action( ‘woocommerce_before_variations_form’, ‘woocommerce_single_variation’,
   10 );
 * return $price;
    }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to change the cart subtotal based on the customised price](https://wordpress.org/support/topic/how-to-change-the-cart-subtotal-based-on-the-customised-price/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/how-to-change-the-cart-subtotal-based-on-the-customised-price/#post-10825203)
 * hi Praveen,
 * thanks for your suggestion. I have not used name your price plugin. I will try
   using it. Thank you.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to do function call in wordpress](https://wordpress.org/support/topic/how-to-do-function-call-in-wordpress/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/how-to-do-function-call-in-wordpress/#post-10821472)
 * hello,
    Sorry for disturbing. Found the answer. You are correct. Mistake I made
   was didn’t declare wpdb as global variable. global $wpdb;
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] how to add additional editable field in single product page](https://wordpress.org/support/topic/how-to-add-additional-editable-field-in-single-product-page/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/how-to-add-additional-editable-field-in-single-product-page/#post-10821373)
 * hi,
    thanks for the reply. The link u sent [https://www.woocommerce.com/products/name-your-price](https://www.woocommerce.com/products/name-your-price)
   plugin link u sent is dead.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to do function call in wordpress](https://wordpress.org/support/topic/how-to-do-function-call-in-wordpress/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/how-to-do-function-call-in-wordpress/#post-10817711)
 * Hello,
    Thanks for the reply. I followed the same structure. I called the function
   $balance= wallet_balance($user_id); //here user_id is not of current logged in
   user. This function is used within the hook woocommerce_order_refunded.
 * function wallet_balance($user_id){
    //my code goes here }
 * But in this case i get error. user_id got is empty
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] how to setup conversion tracking in thank you page](https://wordpress.org/support/topic/how-to-setup-conversion-tracking-in-thank-you-page/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/how-to-setup-conversion-tracking-in-thank-you-page/#post-10815103)
 * hi,
    I got it from the client n its of google ad. The instruction given is: 1.
   Copy the snippet below and paste it between the head tags (<head></head>) of 
   the page, right after the global site tag.
 * <!– Event snippet for Sales on Website conversion page –> <script> gtag(‘event’,‘
   conversion’, { ‘send_to’: ‘conversionId/purchase id’, ‘transaction_id’: ” });
   </script>
 * 2.To test the code, visit your conversion page by completing a conversion on 
   your site.
 * 3.In your web browser, view the source of the webpage. (In most browsers, you
   can do this by right-clicking the page and selecting View source). You should
   see the conversion tracking code between the <head> and </head> tags on your 
   page.
 * I want to track the conversion such that by passing order id as parameter I can
   prevent duplicate view-through conversions.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] how to use the_editor() in wordpress](https://wordpress.org/support/topic/how-to-use-the_editor-in-wordpress/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/how-to-use-the_editor-in-wordpress/#post-10802144)
 * Hello,
 * I would like to share the solution. I got this issue sorted. I replaced
    <?php
   echo htmlspecialchars_decode($CatbottomDesc); ?> with <?php echo apply_filters(‘
   the_content’, wp_kses_post(htmlspecialchars_decode($CatbottomDesc)) ); ?>.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPC Product Bundles for WooCommerce] Clash with the other plugin](https://wordpress.org/support/topic/clash-with-the-other-plugin/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/clash-with-the-other-plugin/#post-10770439)
 * Thank you soo much for solving!!!!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to display payment gateway based on cart subtotal](https://wordpress.org/support/topic/how-to-display-payment-gateway-based-on-cart-subtotal-2/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-display-payment-gateway-based-on-cart-subtotal-2/#post-10751942)
 * hello,
 * My issue got sorted. I am able to place order without selecting any payment mode.
   So no need to build a custom payment gateway.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to display payment gateway based on cart subtotal](https://wordpress.org/support/topic/how-to-display-payment-gateway-based-on-cart-subtotal-2/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-display-payment-gateway-based-on-cart-subtotal-2/#post-10749247)
 * Thanks for your response.Even if I set $payment_method_name = ‘cod’ I am not 
   able to get the result.At present the my payment_method_name is walt which is
   the value that is set to the payment gateway.
    $this->id = ‘walt’; $this->method_title
   = __(‘Reward Wallet’, ‘walt’);
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to display payment gateway based on cart subtotal](https://wordpress.org/support/topic/how-to-display-payment-gateway-based-on-cart-subtotal/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-display-payment-gateway-based-on-cart-subtotal/#post-10746004)
 * This is what I tried
 * add_filter( ‘woocommerce_available_payment_gateways’, ‘conditional_available_payment_gateways’,
   20,1);
    function conditional_available_payment_gateways( $available_gateways ){/*
   if ( WC()->cart->total == 0 ) { set( $available_gateways[‘cod’] ); } return $
   available_gateways;*/ global $woocommerce;
 *  // This line should be changed to reflect the name of the payment gateway you
   want to remove
    $payment_method_name = ‘cod’; // Could be bacs, cheque, paypal,
   epay_dk, etc.
 *  // The limit for the cart before we remove the specified gateway
    if($woocommerce-
   >cart->total == ‘0’) { set($available_gateways[$payment_method_name]); } return
   $available_gateways;
 * }
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to move woocommerce website to sub domain](https://wordpress.org/support/topic/how-to-move-woocommerce-website-to-sub-domain/)
 *  Thread Starter [Ash](https://wordpress.org/support/users/ash222/)
 * (@ash222)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-move-woocommerce-website-to-sub-domain/#post-10727459)
 * Thank you for your response. The issue is sorted. As per you told the url was
   set as custom link in menu and for shop page I changed the url and it started
   working.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/ash222/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ash222/replies/page/2/?output_format=md)