Rafsun Chowdhury
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Edit Label Button CouponTry adding this in your theme’s function.php :
function woocommerce_rename_coupon_field_on_checkout( $translated_text, $text, $text_domain ) { // bail if not modifying frontend woocommerce text if ( is_admin() || 'woocommerce' !== $text_domain ) { return $translated_text; } if ( 'Apply Coupon' === $text ) { $custom_text = 'Apply Custom text'; return $custom_text; } return $translated_text; } add_filter( 'gettext', 'woocommerce_rename_coupon_field_on_checkout', 10, 3 );
Forum: Plugins
In reply to: [WooCommerce] Customers Cannot log inTry changing the theme, looks like an issue from the theme CSS
Forum: Plugins
In reply to: [WooCommerce] Beginner question. Any answer welcome :)Try this plugin :
https://www.ads-software.com/plugins/woocommerce-stock-manager/
Forum: Plugins
In reply to: [WooCommerce] Displaying Quantity/Stock on a non-product pageIt depends on how did you manage to show the other product details on that page.
Are you using any Visual Editor ?? Or are you editing the PHP template ?Forum: Plugins
In reply to: [WooCommerce] Add username to customer invoiceAdd this line to get all user data for that customer by id:
<?php $user_info = get_userdata($order->customer_user);?>
then print like this :
<?php printf( __( "Username %s", 'woocommerce' ), $user_info->user_login ); ?>
Forum: Plugins
In reply to: [WooCommerce] Displaying Quantity/Stock on a non-product pageif you have the
$product_id
, you can get the stock value with this :$stock = get_post_meta( $product_id, '_stock', true );
then you just need to echo the $stock value as needed.
Forum: Plugins
In reply to: [WooCommerce] Change Password Email – How to use standard WordPressGo to Woocommerce > Settings > Emails > Select the password template. You will see the template you need to over write this here if you want to send a different template.
You can’t just send wordpress default emails while using woocommerce login options.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Booking PluginYou want to show the admin Booking calendar on the front-end?? In that case it’s not possible by default as that calendar is meant for admin use only unless you customize the plugin.
Hi,
The address values of Dokan Vendors are saved under ‘dokan_profile_settings’ user meta with a key of [‘address’]. So, Meta query on that is not possible .
What you can do is override the
/dokan-plugin/templates/store-lists-loop.php
template and within the for loop do a check if$store_info['address']['city ']
matches your provided city and only then print the listing.Forum: Plugins
In reply to: [WooCommerce] Change field order of custom fields in dashboardYou can set priority in your action hook where 10 is default. 5 means much earlier and 20 means much later.
Try this :
add_action( 'woocommerce_product_options_inventory_product_data', 'woo_add_custom_inventory_fields', 5 );
- This reply was modified 8 years, 1 month ago by Rafsun Chowdhury. Reason: formatting
Forum: Plugins
In reply to: [WooCommerce] woocommerce coupons restriction per phone numberBy default woocommerce has no phone number in registration, so you must be using custom code to add phone number while saving that you should check that phone number is not associated with other email, it will do the trick by only allowing unique phone numbers to each emails
Forum: Plugins
In reply to: [WooCommerce] Easiest way to custom tracking and oreder detalis pagesYou need to create a folder in your theme named woocommerce and within that you will place your custom templates as they are in within the plugin like woocommerce/templates/.
i.e : If you want to override Orders template , copy the Orders folder from woocommerce/templates then paste it into your themes woocommerce folder.
Forum: Plugins
In reply to: [WooCommerce] restrict shipping based on product categoryTry using shipping classes :
https://docs.woocommerce.com/document/flat-rate-shipping/#section-3
and then you can bulk assign them to your products.
Forum: Plugins
In reply to: [WooCommerce] 404 at Email page in settingsRe-install woocommerce and check.
Forum: Plugins
In reply to: [WooCommerce] Sales Prices for special offers have disappearedTry changing your theme. If you see they appear then it’s your theme’s fault.