cedcommerce
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Shortcode for products without name and priceHello,
As this is a default short-code, and render the output accordingly.
You can you use below trick to achieve your goal,
for removing the price:
add_filter( 'woocommerce_variable_sale_price_html', 'ced_remove_prices', 10, 2 ); add_filter( 'woocommerce_variable_price_html', 'ced_remove_prices', 10, 2 ); add_filter( 'woocommerce_get_price_html', 'ced_remove_prices', 10, 2 ); function ced_remove_prices( $price, $product ) { if ( ! is_admin() ) $price = ''; return $price; }for removing title:
.woocommerce-loop-product__title { display: none; }Thanks,
- This reply was modified 6 years, 2 months ago by cedcommerce.
Forum: Plugins
In reply to: [WooCommerce] Waiting list subscribers don’t show anywhereHello,
Seems like you are using WooCommerce Waitlist plugin.
Have a look to the documentation of the module, it will surely help you out.
https://docs.woocommerce.com/document/woocommerce-waitlist/
Thanks,
Forum: Plugins
In reply to: [WooCommerce] woocommerce check and redirect to login before checkoutHello,
You can manage this from here,
WooCommerce >> Setting >> Accounts & Privacy
You can enable and disable the check-boxes as per your requirements.
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Hide product quantity input field based on categoriesHello,
In first case, in place of is_product, you can use
is_category() and then it will work on category page.
In second case, we are getting the whole object of product, in $product. We can easily get the category of the product and then we can match the category using if conditions, and then return true.have a look on the basis of product type.
$pro_type = $product->product_type;
if( $pro_type == “variable” ) {
return true;
}
if( $pro_type == “external” ){
return true;
}and so on
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Shipping fee not adding upHello,
Can you please share screen-shot of shipping section you created.
Thanks
Forum: Plugins
In reply to: [WooCommerce] Hide shop menu based on User roleHello,
You can do this by following this approach.
Get the current user logged in ID using, and then find the user role from user id, then you can remove the menu (i.e on conditional basis),
$user_id = get_current_user_id(); $user_meta=get_userdata($user_id); $user_roles=$user_meta->roles; $menu_slug = 'menu_slug_you_want_remove'; if($user_roles == 'Wholesale user'){ remove_menu_page( $menu_slug ); }Thanks,
Forum: Plugins
In reply to: [WooCommerce] How to rename Checkout FieldHi @mayank29gupta ,
Please use this, it will work for sure,
function ced_text_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Postcode / ZIP' : $translated_text = __( 'Pin Code', 'woocommerce' ); break; } return $translated_text; } add_filter( 'gettext', 'ced_text_strings', 20, 3 );Note: ” case ‘Postcode / ZIP’ : ” this is case sensitive.
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Hide product quantity input field based on categoriesHello,
You can achieve this by multiple ways, here i am sharing ( i am explaining the case on the basis of product, you can modify it as per your needs) :
1. Using CSS:
add_action( 'wp_head', 'ced_quantity_wp_head' ); function ced_quantity_wp_head() { if ( is_product() ) { ?> <style type="text/css">.quantity, .buttons_added { width:0; height:0; display: none; visibility: hidden; }</style> <?php } }2. Using WP Filter:
add_filter( 'woocommerce_is_sold_individually', 'ced_remove_quantity_fields', 10, 2 ); function ced_remove_quantity_fields( $return, $product ) { // our conditions here }3. Using Option Sold Individually in Edit Product Page
=> Choose product where you don’t wish to show quantity field
=> Edit Product
=> From Bottom Click Inventory
=> Check the box Sold Individually
=> Update ProductIf still issue let me know.
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Woocmooercr product import and exportHello,
The file format uses is CSV, please go through with the documentation. This will surely help you out.
https://docs.woocommerce.com/document/product-csv-importer-exporter/
Thanks
Forum: Plugins
In reply to: [WooCommerce] Shipping fee not adding upHello,
Please check the shipping zone for which you have enabled the flat rate shipping fee. It is possible that the shipping is not applicable for the location you are trying.
https://docs.woocommerce.com/document/setting-up-shipping-zones/
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Upload Product Images from external URLHello,
You can use the following plugin to achieve your goal.
https://wordpress.org/plugins/featured-image-by-url/
Thanks
Forum: Plugins
In reply to: [WooCommerce] combine firstname and last name in checkout and remove usernameHello,
Please try this snippet of code,add_filter( 'woocommerce_billing_fields' , 'ced_remove_billing_fields' ); function ced_remove_billing_fields( $fields ) { unset($fields['billing_last_name']); return $fields; } add_filter( 'woocommerce_checkout_fields' , 'ced_rename_checkout_fields' ); // Change placeholder and label text function ced_rename_checkout_fields( $fields ) { $fields['billing']['billing_first_name']['placeholder'] = 'Name'; $fields['billing']['billing_first_name']['label'] = 'Name'; return $fields; }The first function will remove the last name, and through second filter you can rename the field according to your need.
Thanks,Forum: Plugins
In reply to: [WooCommerce] Error 429 when adding products since new updateHello, it is quite strange,
As you said you already discuss with your hosting provider. You should follow these steps to debug it:
1. Change your WordPress default login URL
2. Check whether your HTTPS internal links are causing the issue
3. Deactivate all your WordPress plugin (one by one)
4. Switch to a default WordPress theme (twenty seventeen, or similar)https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-429-too-many-requests-error/
and also are you facing the same issue while creating the post ?
Thanks,
Forum: Plugins
In reply to: [WP Advanced PDF] Duplicate ” Download PDF ” iconHello,
We can observe the one icon at the moment, i.e above the footer section.
Thanks & Regards,
Forum: Plugins
In reply to: [WP Advanced PDF] PHP codeHello,
For this feature can have a look to the PRO version of the plugin.
Thanks & Regards,