cedcommerce
Forum Replies Created
-
Hello,
You need to give a Reset Filter button, in sidebar so that user can re-set the applied filters.
Have a look to the link,
https://docs.woocommerce.com/document/woocommerce-product-search/widgets/product-filter-reset/
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Changing “No products in the cart.” textHello @bielgirao ,
Please use this code in your active themes functions.php,
/** * Change the “No products in the cart” message over the mini-cart * */ function ced_text_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case ‘No products in the cart.’ : $translated_text = __( ‘new text here’, ‘woocommerce’ ); break; } return $translated_text; } add_filter( ‘gettext’, ‘ced_text_strings’, 20, 3 );Thanks,
- This reply was modified 6 years, 2 months ago by cedcommerce.
Forum: Plugins
In reply to: [WooCommerce] delete data in “customers”Hello @wpgsander ,
Which plugin you are using for “woocommerce> customers”, i.e customers section ?
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Product display Broken linksHello,
“Should I just remove the URLs using removals found under sitemaps?”
Yes you can do this.
“Or is there a different way of doing this without redirects?”
If you will not redirect them, then already ranked URL’s (i.e that are indexed) will keep on tending to 404
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Display of products not in orderHello @taubeundspatz ,
Please try these line of styles.
.row.products.masonry .selector { min-height: 360px; }Thanks,
Forum: Plugins
In reply to: [WooCommerce] sending emails for a new orderYou can keep it default, it will create the log and then you can view it easily.
Thanks
Forum: Plugins
In reply to: [WooCommerce] sending emails for a new order@akvb are you using any plugin, related to this functionality or to extend this ?
Please install this plugin,
https://wordpress.org/plugins/wp-mail-logging/
It will create the log of all the mails triggers with time, then we can check whether the mail is not triggering or gets interrupted in between.
Thanks,
Forum: Plugins
In reply to: [WooCommerce] sending emails for a new orderHello @akvb ,
The default woo provide this functionality, you can enable this by following the steps below:
WooCommerce >> Settings >> Emails >> New Order (Manage)
enable this checkbox,
Enable this email notificationThen the customer will start receiving the emails for the new orders.
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Waiting list subscribers don’t show anywhereHello,
In that case you can discuss this will the plugins providers, else if you are familiar with the Actions/ Filters then in the documentation they have mentioned few actions through which you can add this functionality also.
Thanks,
Hello,
Thank you for explaining the scenarios,
As you described, you accept PayPal on your site, the below line of code will always put the order status to completed/ processing, i have mentioned both the conditions, please use any,
add_action( 'woocommerce_thankyou', 'ced_change_order_status' ); function ced_change_order_status( $order_id ){ if( ! $order_id ) return; $order = wc_get_order( $order_id ); // Status without the "wc-" prefix // if want to put in completed state $order->update_status( 'completed' ); // if want to put in processing state $order->update_status( 'processing' ); }Thanks,
Forum: Plugins
In reply to: [WooCommerce] Adding product details button above add to cart buttonHello,
@above-the-circle , you can use ‘woocommerce_after_shop_loop_item’ hook, that will trigger your HTML in between Price and Add to Cart button.
add_action('woocommerce_after_shop_loop_item', 'ced_custom_button'); function ced_custom_button(){ // your HTML here }Thanks,
Forum: Plugins
In reply to: [WooCommerce] Product display Broken linksHello,
The reason for this is, every product has it’s own separate URL (link), that get crawled in sitemap.xml whenever you are deleting that product product gets deleted but not link, than that particular start tending to 404 (i.e broken)
That’s why are getting this “broken links”
Fixture:
Please remove that URL from sitemap and then again submit that, or create 301 redirect using any plugin or through .htaccess so that instead of 404 user will get land on any valid page.
Thanks
Forum: Plugins
In reply to: [WooCommerce] Remove out of stock items from cartYes, you can put that in your active theme’s functions.php
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Heading for each category in product pageHello,
You can use the below snippet for getting all the product categories.
$args = array( 'taxonomy' => "product_cat", 'number' => $number, 'orderby' => $orderby, 'order' => $order, 'hide_empty' => $hide_empty, 'include' => $ids ); $product_categories = get_terms($args);In $product_categories you will get all the categories.
You can use this, and display using short-code, or can create widget for that.
https://developer.wordpress.org/reference/functions/add_shortcode/
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Remove out of stock items from cartHello,
Please try this snippet,
function ced_out_of_stock_products() { if ( WC()->cart->is_empty() ) { return; } $removed_products = []; foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { $product_obj = $cart_item['data']; if ( ! $product_obj->is_in_stock() ) { WC()->cart->remove_cart_item( $cart_item_key ); $removed_products[] = $product_obj; } } if (!empty($removed_products)) { wc_clear_notices(); foreach ( $removed_products as $idx => $product_obj ) { $product_name = $product_obj->get_title(); //your notice here $msg = sprintf( __( "The product '%s' was removed from your cart because it is out of stock.", 'woocommerce' ), $product_name); wc_add_notice( $msg, 'error' ); } } } add_action('woocommerce_before_cart', 'ced_out_of_stock_products');