Ash
Forum Replies Created
-
Forum: Plugins
In reply to: [Basic User Avatars] Image not getting updated from front endhi,
Thank you soo much. I got this issue sorted.
Forum: Fixing WordPress
In reply to: Issue with the menuhi,
Thanks for your response. @rossmitchell Same issue when viewed in different computer or different browserForum: Plugins
In reply to: [WooCommerce] how to add additional editable field in single product pageHey,
Thank you all for your support. Thank you @yukikatayama n i used this name your price plugin n it stood by my requirement. Thank you soo much.
Forum: Fixing WordPress
In reply to: How to hide the discount price taghello,
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
In reply to: [WooCommerce] How to change the cart subtotal based on the customised pricehi Praveen,
thanks for your suggestion. I have not used name your price plugin. I will try using it. Thank you.
Forum: Developing with WordPress
In reply to: How to do function call in wordpresshello,
Sorry for disturbing. Found the answer. You are correct. Mistake I made was didn’t declare wpdb as global variable.
global $wpdb;Forum: Plugins
In reply to: [WooCommerce] how to add additional editable field in single product pagehi,
thanks for the reply. The link u sent https://www.woocommerce.com/products/name-your-price plugin link u sent is dead.Forum: Developing with WordPress
In reply to: How to do function call in wordpressHello,
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
In reply to: [WooCommerce] how to setup conversion tracking in thank you pagehi,
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
In reply to: [WooCommerce] how to use the_editor() in wordpressHello,
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
In reply to: [WPC Product Bundles for WooCommerce] Clash with the other pluginThank you soo much for solving!!!!!
Forum: Plugins
In reply to: [WooCommerce] How to display payment gateway based on cart subtotalhello,
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
In reply to: [WooCommerce] How to display payment gateway based on cart subtotalThanks 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
In reply to: How to display payment gateway based on cart subtotalThis 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
In reply to: How to move woocommerce website to sub domainThank 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.