WP Native
Forum Replies Created
-
Forum: Plugins
In reply to: [Cart PDF for WooCommerce] Create an invoice numberWell, the second option is ideal where the button can be kept and will be redirected to login. How do i achieve this?
Forum: Plugins
In reply to: [Cart PDF for WooCommerce] Create an invoice number@dkjensen Thanks buddy, work like a charm. Also i just wonder, whether it’s possible to force users to login in order to download the cart (if they are non-logged in users). This becomes pretty obvious in our use-case, as we use the cart pdf as E-Quote.
Cheers.
Forum: Plugins
In reply to: [Cart PDF for WooCommerce] Create an invoice number@dkjensen Thanks for the update. A great feature indeed. It would be great if you can show an example how the below increment string can be achieved?
JMEP/INV/DATE/UNQUE-REFERENCEJMEP/INV/ Are static. Date and unique reference can be dynamic, let say unique reference can be in 10 thousands (10001).
Appreciate buddy!
Naz.Forum: Plugins
In reply to: [WooCommerce] Checkout T&C Checkbox, Size & ColorThe below snippet will make your checkbox bigger:
.ct-checkbox, .comment-form input[type="checkbox"], #ship-to-different-address-checkbox, .woocommerce-form__input[type="checkbox"], #wc-stripe-new-payment-method[type="checkbox"], .wpforms-container:not(.wpforms-container-full) input[type="checkbox"]{ padding: 7px!important; border: 1px #333 solid!important; /*border color*/ }The below snippet will make the T&C text bigger:
.woocommerce-terms-and-conditions-checkbox-text{ font-size: 16px!important; }All these snippet goes to Appearance> customize > Custom css
Cheers.
NazForum: Plugins
In reply to: [WooCommerce] Checkout T&C Checkbox, Size & ColorHey @sebstar82
i’m happy to help but couldn’t able to access your site as it’s on maintenance mode.
Naz.
Forum: Plugins
In reply to: [WooCommerce] How to hide Woo Home ScreenForum: Plugins
In reply to: [WooCommerce] Woo Allowing Out of Stock Items to be PurchasedHey
Navigate to WooCommerce > Settings > Products > inventory and make sure to uncheck the “Hide out of stock item from catalog”
Check this out hand 👉 https://prnt.sc/1smiabu
Hope this helps!
Nazreen.Forum: Plugins
In reply to: [WooCommerce] Checkout Feilds for virtual productsHey @mkaiit,
Add this snippet of code to your theme functions.php
<?php add_filter( 'woocommerce_checkout_fields' , 'woo_remove_billing_checkout_fields' ); /** * Remove unwanted checkout fields * * @return $fields array */ function woo_remove_billing_checkout_fields( $fields ) { if( woo_cart_has_virtual_product() == true ) { unset($fields['billing']['billing_company']); unset($fields['billing']['billing_address_1']); unset($fields['billing']['billing_address_2']); unset($fields['billing']['billing_city']); unset($fields['billing']['billing_postcode']); unset($fields['billing']['billing_country']); unset($fields['billing']['billing_state']); unset($fields['billing']['billing_phone']); unset($fields['order']['order_comments']); unset($fields['billing']['billing_address_2']); unset($fields['billing']['billing_postcode']); unset($fields['billing']['billing_company']); unset($fields['billing']['billing_city']); } return $fields; } /** * Check if the cart contains virtual product * * @return bool */ function woo_cart_has_virtual_product() { global $woocommerce; // By default, no virtual product $has_virtual_products = false; // Default virtual products number $virtual_products = 0; // Get all products in cart $products = $woocommerce->cart->get_cart(); // Loop through cart products foreach( $products as $product ) { // Get product ID and '_virtual' post meta $product_id = $product['product_id']; $is_virtual = get_post_meta( $product_id, '_virtual', true ); // Update $has_virtual_product if product is virtual if( $is_virtual == 'yes' ) $virtual_products += 1; } if( count($products) == $virtual_products ) $has_virtual_products = true; return $has_virtual_products; }Cheers 🍻
Nazreen.Forum: Plugins
In reply to: [WooCommerce] Ghost OrdersHey @problematichild
Sounds weird.Take a look at the checklist below;
Have you enable the option that enables customers to place order without account?
WooCommerce > Settings > Accounts & Privacy > Guest checkout. Disable if yes.Are you using some sort of POS system or have you integrated with any third party apps that can manage WooCommerce?
WooCommerce > Settings > Advanced > Rest API. Delete if there’s any key’s found unless you purposely have them.Cheers 🍻
Nazreen.Forum: Plugins
In reply to: [WooCommerce] Need help with my Woocommerce pageHello @ongkahyee
Add below css snippet by navigating to
Appearance > Customize > Additional css.woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images { width: 50%; opacity: 1!important; }Cheers 🍻
Nazreen.Forum: Plugins
In reply to: [WooCommerce] Checkout next button brokenForum: Plugins
In reply to: [WooCommerce] Hide Product Image from Cart Page?Hello @dhruvbatra2
Add the below snippet of code to your theme/child theme functions.php. Alternatively you can use this plugin too.
function sv_remove_cart_product_link( $product_link, $cart_item, $cart_item_key ) { $product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); return $product->get_title(); } add_filter( 'woocommerce_cart_item_name', 'sv_remove_cart_product_link', 10, 3 );Cheers 🍻
Nazreen.Forum: Plugins
In reply to: [WooCommerce] WooCommerce Gone After UpdateNavigate to your root directory via FTP client or Cpanel and see if there’s WooCommcerce folder exists under the plugins directory. Delete the WooCommerce folder if you find so and you should be able to reinstall WooCommerce once again.
(Deleting WooCommerce folder won’t delete products)
Cheers 🍻
Forum: Plugins
In reply to: [WooCommerce] Fatal Error after updateLogin to to your root directory via FTP or Cpanel and rename the
weight based shipping for woocommerceplugin folder name to something else. This should fix the issue.Cheers 🍻
Forum: Plugins
In reply to: [WooCommerce] REST API to get product variations not workingCheck your API credentials to see whether it has read and write permissions. Sharing a screenshot would help to look into this further.
Cheers 🍻