plugins – Woocommerce Subscriptions weekly billing issue: Customer is charged twice in first week

Expected behaviour:
Trying to have customers pay when they signup THEN align with the renewal day of Wednesday, obviously excluding the current billing cycle which they have already paid for.

Actual behaviour:
1.Customer signs up on e.g. Tuesday and pays full price
2.THEN our weekly billing day (Wednesday) is reached and they are charged again for the subsequent delivery. This means they are being charged twice before they even receive the product!!.

WooCommerce REST API: Filter orders by advanced custom field

I am using WooCommerce and Advanced Custom Fields for the orders.
Is there a way to filters orders using the WooCommerce REST API by a custom field?

I’m guessing if there is no built in solution, perhaps some custom function can allow this.

Thank you.

Fully automated WooCommerce dropshipping | AliExpress

Hi, is there anyone who has ever had or created a fully automatic dropshipping eshop on woocommerce?
We researched the AliDropship plugin, but we would need full bulk automation of order processing.

We had a dropshipping eshop already and process 300-500 orders daily was terrible and unsustainable in the long run.

Is here somebody who is experienced in this?

Thank you!

Porto | Multipurpose & WooCommerce Theme | Nulled Scripts Download

+ Added: Porto Elementor recent portfolios widget
+ Added: Porto Elementor Circular Bar widget
+ Added: font size, font weight, letter spacing, padding and extra class input fields for Porto WPBakery Button element
+ Added: a margin bottom field for Porto Elementor Counter widget

– Fixed: Image lazyload issue in Owl Carousel with infinite loop
– Fixed: some order by fields were not working for products, blog and portfolio elements
– Fixed: Porto popup menu type wasn’t working on mobile for…

.

ajax – Dynamic City dependent Area woocommerce Checkout

I am developing a plugin for shipping and I want to implement city/area dynamically. I have added the custom field and I want to populate the area field whenever the city is selected or changed. The area dropdown is fetched from a custom API using another action

Here is the jQuery code I am using. When the city is changed, the response shows the page is populated but like this
enter image description here

function cities_areas_settings() {
$text_domain = 'woocommerce';

global $woocommerce;

if (isset($_POST('liveCity'))) { 
    
    $towns = (1122 =>ABA, 1123 => IBADAN, 1124>oyo );
}
       
return array($towns);

}

add_action(‘wp_footer’, ‘custom_checkout_js_script’);
function custom_checkout_js_script() {
if( is_checkout() && ! is_wc_endpoint_url() ) :
// Initializing
$text_domain = ‘woocommerce’;
$karachi_areas = array( ” => __(‘Choose your area’, $text_domain) );

$areas = cities_areas_settings(); // Load settings



?><script language="javascript">
jQuery(function($) {
    var a = 'select(name="billing_city")',
        b = 'select(name="billing_area")',
        o = <?php echo json_encode($areas); ?>,
        s = $(b).html();

    // Utility function to fill dynamically the select field options
    function dynamicSelectOptions(opt) {

        var options = '';

        for (var i = 0; i < opt.length; i++) {

            console.log(opt.length)
            options += '<option value="' + opt(i) + '">' + opt(i) + '</option>';

        }
        $(o).html(options);

        // $.each( opt, function(key, value ){
        //     options += '<option value="'+key+'">'+value+'</option>';
        // });

    }

    // On Start (once DOM is loaded)
    if ($(a).val() != '') {
        console.log("testa");
        dynamicSelectOptions(o);
    }

    console.log($(a).val());

    // On billing city change live event
    $('form.woocommerce-checkout').on('change', a, function() {
        var test = $(this).val();;
        jQuery(document).ready(function($) {
            var data = {
                'action': 'my_action',
                'liveCity': test
            };

            jQuery.post(window.location, data, function(response) {
                //  console.log('Got this from the server: ' + response);
            });
        });


        var testing = dynamicSelectOptions(o);
        console.log(testing);

    });
});

How to create digital Product on Woocommerce

How can i do that, and what is the best payment processor for such kind of goods[URL="https://teleg… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1834618&goto=newpost

plugin development – How to modify product page in a woocommerce?

I am new in woocommerce. I have woocommerce custom theme which I downloaded from the Underscores.me. I have to change the layout of the product page so I found some link on the Stack Overflow to edit the page and below is this link

wp-content/plugins/woocommerce/templates/content-single-product.php

So I open the content-single-product.php and found some code

enter image description here

To much of code 🙂 let’s delete some comment code

enter image description here

Now, What I did, I have added the parent div called added_Custom_Div on woocommerce_before_single_product_summary and comment out the woocommerce_after_single_product_summary

So below is the final code (I have to add many more div. This is the example)

<div id="product-<?php the_ID(); ?>" <?php wc_product_class( '', $product ); ?>>

    <div class="added_Custom_Div">
        <?php do_action( 'woocommerce_before_single_product_summary' ); ?>
    </div>

    <div class="summary entry-summary">
        <?php do_action( 'woocommerce_single_product_summary' );?>
    </div>

    <?php //do_action( 'woocommerce_after_single_product_summary' );?>
</div>

<?php do_action( 'woocommerce_after_single_product' ); ?>

So I want to know, Is this the right way to do? Also If I update the woocommerce plugin the will I lose all my custom code?

plugins – YITH WooCommerce Membership Premium If statement

I use “YITH WooCommerce Membership Premium” plugin

but I have a problem
I need a php code to show some contents only for premium members like this

if ( is_user_logged_in() ) {
// SHOW SOMETHING FOR premium members
}
else {
// SHOW SOMETHING ELSE for others
}

Woocommerce: changed attributes of product variations

In a woocommerce website we have 2 attributes persons and destinations and 80 variable products (each one is the starting point of the excursion).

Persons is the number of persons a vehicle can hold (1-4, 5-10, 11-20, 21-50). So we created all the variations and add the prices. But customer asked to break 11-20 attribute to 2 values (he changed his vehicles’ types) so 11-20 is now 11-15 and 16-20.

Which is the best way to face this change? I thought that by exporting all the variations, delete them, create the new values for attribute persons, importing them back (with some csv manipulation) then I could just update the new variations prices. Is that correct? If so how I can regenerate all the variations for all variable products using all attributes without visiting every variable product one by one?

Is there an easier way and more efficient?

wordpress.com hosting – Woocommerce attributes

I have two attributes Size and colour.
the variation in Size are Small, Medium, Large and Extra Large and when we select the variation of Size attribute certain colours appear. The issue I am facing is if I select small size rest of variation of size attribute disappear which I don’t want to ? any ways to show all the variation of “Size” attribute even after selection?