nyenius
Forum Replies Created
-
Solved after copying css header comment from this:
https://github.com/stuartduff/storefront-child-themeForum: Plugins
In reply to: [WooCommerce] Woocommerce 2.6.x conflict – Missing chosen jQuery FilesI add this to my functions.php and it’s gone 😀
add_action( ‘wp_enqueue_scripts’, ‘get_rid_chosen’, 99 );
function get_rid_chosen( ) {
wp_dequeue_style( ‘woocommerce_chosen_styles’ );
}Got the solution from: https://wordimpress.com/how-to-load-woocommerce-scripts-and-styles-only-in-shop/
Forum: Plugins
In reply to: [WooCommerce] Woocommerce 2.6.x conflict – Missing chosen jQuery FilesYes this also happens on my site. But to trace which plugin / themes does that seems lot of work. Does disabling the style could solve this?
Like this document said Disable the default stylesheet
NOTE:
I add this to my functions.php and it’s gone 😀add_action( ‘wp_enqueue_scripts’, ‘get_rid_chosen’, 99 );
function get_rid_chosen( ) {
wp_dequeue_style( ‘woocommerce_chosen_styles’ );
}Got the solution from: https://wordimpress.com/how-to-load-woocommerce-scripts-and-styles-only-in-shop/
Forum: Plugins
In reply to: [Content Aware Sidebars - Fastest Widget Area Plugin] Side Bar in bbpressYes, i’m experiencing this problem too. It’s not responding to any on bbpress pages.
Yup, in the template itself, it seems there’s nowhere the customer name is called. I also want to show customer name in the invoice and packing slips.
It strange if invoice and packing slip doesn’t include name of the receiver. Or is it only available in paid version?
I still don’t get how to use wc_get_order_item_meta() though. Can anybody give an example?
Forum: Plugins
In reply to: [Woocommerce Admin Theme] How to get back?same here, it seems this plugin has been neglected 🙁
Forum: Plugins
In reply to: [Woocommerce] Change Order of Catalog page to AscendingHi, can we sort the products beside title, date, price? Like based on stock maybe?
This what i’ve done so far, and it works.
add_action('woocommerce_before_single_product', 'your_function_name'); function your_function_name() { $postid = get_the_ID(); $post_custom = get_post_custom($postid); $current_stock = get_post_meta($postid, '_stock', 1); if($current_stock < 1 ){ // delete all product_cat related to this product wp_set_object_terms( $postid, NULL, 'product_cat' ); // Stock is empty, so we set to "preorder" category (mine is 15) wp_set_object_terms( $postid, array(15), 'product_cat' ); }else{ // // delete all product_cat related to this product wp_set_object_terms( $postid, NULL, 'product_cat' ); // Stock is empty, so we set to "Ready Stock" category (mine is 14) wp_set_object_terms( $postid, array(14), 'product_cat' ); }And for specific product category, I use tags.
The author has shown the way in this topic : add email to invoice
please check the woocommerce-delivery-notes-print.phpfile inside the plugin folder. the right functions are:
wcdn_billing_phone(); wcdn_billing_email();The author has shown the way in this topic : add email to invoice
please check the woocommerce-delivery-notes-print.phpfile inside the plugin folder. the right functions are:
wcdn_billing_phone(); wcdn_billing_email();Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] print postcode under phoneTry go to /plugins/woocommerce/classes/class-wc-countries.php and edit your country localization address format.
Or add custom filter like in the faq :
How can I change the address format of the recipient?
WooCommerce includes address formats for many different countries. But maybe your country format isn’t included. For such cases you can define your own format with a filter in your functions.php if you know your country code (ie LI).function custom_localisation_address_formats($formats) { $formats['LI'] = "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}"; return $formats; } add_filter('woocommerce_localisation_address_formats', 'custom_localisation_address_formats');Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] exploit possibility?I say this is closed
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] exploit possibility?I think it’s other plugin’s fault. not this plugin 😉
Yes, I want to add phone number to invoice or shipping note. It will save a lot of my work process.
i’ve been searching through codes, but got no clue how to add phone number. I’ve gone to woocommerce class-wc-orders.php and class-wc-countries.php but the address format does not include phone number.
Waiting for hint or solution 😉