Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all 102373 articles
Browse latest View live

How to make WooCommerce payment method field optional?

$
0
0

Replies: 0

Here is my current code on a plugin.

/**
     * Field Validation.
     */
    public function payment_process() {
        if ( 'woo_bkash' !== $_POST['payment_method'] ) {
            return;
        }

        $number   = sanitize_text_field( $_POST['bKash_acc_no'] );
        $trans_id = sanitize_text_field( $_POST['bKash_trans_id'] );

        if ( '' === $number ) {
            wc_add_notice( __( 'Please enter your bKash number.', 'bangladeshi-payment-gateways' ), 'error' );
        }

        if ( '' === $trans_id ) {
            wc_add_notice( __( 'Please enter your bKash transaction ID.', 'bangladeshi-payment-gateways' ), 'error' );
        }
    }

I want to make these fields optional by adding code on the function.php file of the child theme.


Billing and shipping html

$
0
0

Replies: 1

Hi,
please let me know where I can find the templates for billing and shipping in which the actual html of the input fields can be changed…I need to change the order of the html, so that the <label> comes AFTER the <input>, not before. I know there are form-billing.php and form-shipping.php, but in these the actual html of he input fieds is not displayed.

Thanks!

Variable product price show 0 only on checkout page

Problem loading CSS

$
0
0

Replies: 1

Hello everyone,

we are experiencing some problems loading CSS on product pages only. It seems, in fact, that when a product page is loaded for 1-2 seconds you see the CSS “broken”. At the moment we have “solved” this problem by using a preload, but we would like to fix it permanently.

Do you have any idea what the cause might be?

Thank you.

Show/hide input when quantity is increased

$
0
0

Replies: 1

Hi,

I didn’t see other people asking this question or maybe I haven’t seen it, but I would like to know if it’s possible, by using JS or PHP or using a plugin, to show/hide an input according to the quantity displayed? For example, and more precisely in my case, when the quantity is 2, I want that the customer sees two inputs instead of one where he has to inform the brand of his two vehicles.

I hope that you can help me with that issue.

Woocommerce Changing font

$
0
0

Replies: 0

Hello Guys, i Am trying to change font for Woocommerce For Example

I am Using Woodmart Theme And Need to change with Custom Font : compare , Wishlist , Profile

How it’s Posible to find right Class to change with my favourite font?

font name is “ქართული ფინტი” – this is called when i upload custom font.

Thank you.

Woocommerce Table Rate Shipping

$
0
0

Replies: 0

I have a question about the table rate shipping plugin. I want to create some rules like for 0 to 10kg shipping is calculated per order and for 10kg and above I want to calculate per kg cost. So can I create both rules in the same zone.?

  • This topic was modified 1 hour, 21 minutes ago by Anurag.
  • This topic was modified 1 hour, 20 minutes ago by Anurag.

REST API Retrieve an order: price as entered (with tax)

$
0
0

Replies: 0

I configured this option in the Woocommerce:
Tax options
Prices entered with tax: Yes, I will enter prices inclusive of tax

Querying the REST API
/wp-json/wc/v3/orders
is there a way to simply retrieve the price entered, including tax as the customer sees it?
If the prices are calculated by separating the VAT and then adding it, sometimes they round up + – 0.01 cents and this is a problem for my order export procedure which instead simply expects the price displayed to customers.


Charging UK VAT only when shipped to the UK

Limitare numero prodotti acquistati

$
0
0

Replies: 0

Salve a tutti voi. Cerco una soluzione per limitare il numero di prodotti che un utente può acquistare su negozio di woocommerce. Grazie.

Allow specific payment gateway by user id

$
0
0

Replies: 0

Hey there
we are currently thinking about some restrictions of our payment gateways.
i know that it´s possible to allow/ deny specifiy gateways by user roll and or price amount.
But this is not the way ne want it.
Any chance to allow some gateways by the id of the user?
Eveven better:
Is it possible to let custoemrs pay via a specific gateway only after lets say 5 orders?

.csv import – Variations not showing

$
0
0

Replies: 0

Hello,

I have an issue when importing a product in a .csv file.

So i created all variations (around 800) of my product in woocommerce, then exported it in .csv to modify the prices. All attributes were linked correctly (all of them global).

After modifying the prices and importing the file (i ONLY modified the prices), there was the issue with the product :

The variations get imported, but don’t show on the product page, whether i create a new product or update an existing one. I’ve deleted the product, cleaned up my recycle bin and imported again as a new product but same thing, the product is there, the attributes are there (and the “use as variations” box is checked), but the variations themselves are not there.

When exporting the product to check, i saw that all the variations, with the prices, were in the .csv.

Thank you for your help.

Wocommerce template overriding the bootstrap Css in the mobile version

$
0
0

Replies: 0

Hello Team,

We are using the Woocommerce my-account template pages functionality as the dashboard for our students, we are using the bootstrap dashboard template for the student. the template is working fine in the desktop view but in the mobile view, it shows the desktop view not showing the mobile version of the template. the template is fully responsive. Please look into it and please let us know what is the solution to solve this error.

Thank you.
Regards,
INSAID

  • This topic was modified 24 minutes ago by insaid.

I don’t see Image settings tab

$
0
0

Replies: 1

Hi! I have blurry catalogue pictures and I am following steps in this video, BUT I don’t see under Woocommerce Settings/Products a tab Display. I have the latest Woocommerce version and I use Woodmart theme. Can anyone please precise where I can change product images? I have added custom CSS but it didn’t solve blurriness.

Text and Terms-and-conditions-checkbox is skewed

$
0
0

Replies: 0

Hi,

I’m struggling with the Terms and Conditions checkout box not being in line with the text.
The box is there and then the text (in danish) appears under the box, instead of in line with it.

I am using the latest versions of Woocommerce and WordPress

Reproduce:
1. Add products to cart through page https://dfj-flywheel.flywheelsites.com/priser/
2. Make your way to the check-out page
3. See the checkbox at the bottom not being in line with the text.


Remove link from phone number

$
0
0

Replies: 1

When I get a new order email, the phone number shows up as a link in the billing address information. I’d like it to appear as xxx-xxx-xxxx and not xxxxxxxxxx

Any way to easily do this?

Local Pickup Plus set variable lead time

$
0
0

Replies: 1

HI all,

I am using Local Pick Plus. But since we have multiple types of products with basically two variable lead times we need to be able to configure this per product or category.

Am I missing out on something or is this not possible with this plugin to set a variable lead time?

Product A: 24 hours
Product B: 48 hours

Thanks

Categories and Subcategories bar

$
0
0

Replies: 1

Hello guys, i’m searching for a feature that gives me the possibility to add a bar above products in shop, where showing subcategories of the active category page. How can i do this? Example of the feature: https://ibb.co/Sr2sV8c

Seperate Categories to Diffrent Columns

$
0
0

Replies: 2

I am using this code to export images to diffrent column. It works for images. I want to print categories and subcategories in different columns by making some improvements. I’m making a mistake somewhere but I couldn’t figure it out. Can you help me?

add_filter('wp_all_export_csv_rows', 'wp_all_export_csv_rows', 10, 3);

function wp_all_export_csv_rows( $articles, $options, $export_id ) {
        if ( $export_id == '40' ) { // change to your export ID
            foreach( $articles as $key => $article ) {
                if ( array_key_exists( 'ID', $article ) ) {
                    $i = 1;
                    $product = wc_get_product( $article['ID'] );
                          $m_category = get_terms( ['taxonomy' => 'product_cat'] );
                       if ( ! empty( $m_category ) ) {
       // use $m_category->parent to check if it's a parent category or sub-category.
       $articles[ $key ]['Category '] = $m_category->name; //category name from category object
                                 }
                    if ( ! empty( $product ) ) {
    
                        $featured_img = wp_get_attachment_url( $product->get_image_id() );
    
                        if ( ! empty( $featured_img ) ) {
                            $articles[ $key ]['Image ' . $i] = $featured_img;
                        }
    
                        $other_imgs = $product->get_gallery_image_ids();
    
                        if ( ! empty( $other_imgs ) ) {
                            foreach ( $other_imgs as $id ) {
                                $i++;
                                $img = wp_get_attachment_url( $id );
                                $articles[ $key ]['Image ' . $i] = $img;
                            }
                        }
  
                            }
                        }
                    }
                }    
var_dump($m_category);
        return $articles; // Return the array of records to export
	
    }
    add_filter('wp_all_export_csv_rows', 'wp_all_export_csv_rows', 10, 3);

WooCommerce Email Customization – Button at bottom of email

Viewing all 102373 articles
Browse latest View live