magento2.4 – M2: How to display billing address first at checkout?

For some reason Magento 2 asks shipping details first at checkout. This is a bit problematic in some cases. For example if customer want’s to pick up the order instead of it being shipped she does not understand why shipping details are asked in the first place.

There are also cases where customer’s are puzzled when they need to give EU VAT ID and they have different billing and shipping addresses. They might give it only in shipping details and leave it out of the billing details. Or they might leave it our from the shipping details and give it only in billing details.

One case is that a company makes the order and company’s name must be in the Billing address, but the order is going to be delivered to customer’s personal address, so Shipping details might not have EU VAT ID at all and that results wrong VAT calculation because of tax settings (tax based on shipping destination).

We need the billing address to have the EU VAT ID so that it get’s printed into Invoice. But it is also required to be in the Shipping details as the tax calculation is better to be based on shipping address than on billing address because of the EU VAT regulations in cross border sales where VAT is usually based on the customer’s shipping destination country.

(Also problematic is the fact that when customer registers she already gives EU VAT ID, but that is not used in VAT calculations, but that is another story.)

Some of these problems might be avoided if billing address would be asked first. There should also be a checkbox “My billing and shipping address are the same” just below the Billing address fields. Is there a way to do these changes and what would be the effects?

I’m guessing that some extensions might use the shipping address, but would that be a problem if by default the checkout would save the billing address to be the same as shipping address?

One solution could also be that there would be a selection for the customer “Are you a business customer with an EU VAT ID?”. Then it would present the VAT ID field only when needed and only once (not for shipping and billing separately).

A warm salute to brand-new Prepaid Billing & Halloween discount! | Proxies-free

1. Halloween Promotion

No Halloween celebration can do without a fully-fledged trick-or-treat. And it so happens that ModulesGarden is an exceptionally generous host this year! Feel the mystical Halloween vibe with our fang-tastic 7% discount applicable until the end of this week to every single product available in our Marketplace!

Promo Code: 7%Halloween!

To turn this spooktacular event into a really memorable experience, we invite you to maximize the savings by combining the Halloween deal with other promotions, such as the deal of the day and week, the discount for a bulk order as well as for the purchase of products we recommend specifically.

Get ready for the spine-tingling treat!

2. Advanced Billing For WHMCS v3.6.0

Have you ever experienced how one simple tool can make your work routines a whole lot easier? This is exactly how our Advanced Billing For WHMCS works its wonders – it makes billing your clients for the exact resource usage not only possible, but also incredibly simple!

To enhance your billing strategies even further, we have just brought out the module’s brand new 3.6.0 version. Apart from the perfect compatibility with WHMCS V8.0.4, you can now take full advantage of Prepaid Billing allowing you to charge your customers for their products by collecting only the prepaid credits. To keep the entire process as transparent as possible, the use of credits will be shown in the summaries instead of generating invoices.

Explore the ins and outs of Advanced Billing For WHMCS v3.6.0!

3. cPanel Survey – Last Call

Have you already put to use the 10% promo code received after completing our 60-second survey?

If you have not yet claimed your exclusive gift for answering a few questions about your cPanel experience, there isn’t much time left to do so, as the discount is valid only until the end of October! Let us know how you feel about the recently introduced price increase of cPanel plans, and what solutions you plan to incorporate to lower your running costs. Your valuable input will be rewarded with a special 10% discount for all modules available on our website!

Have your say right away!

4. Polish Language Translation For WHMCS v1.4.0

With our highly regarded Polish Language Translation For WHMCS, you can choose Polish to be default language in both admin and client area of your WHMCS, or even give visitors the freedom to switch between language settings as they please. If this introduction excited your interest already, you’d better keep on reading!

It is with indescribable joy that we present to you today the spanking new 1.4.0 version of our translation, updated comprehensively to secure tip-top integration with WHMCS V8.0.4. Almost 800 new and updated translation records remain at your full disposal!

Hungry for more? Grab the source code of our spick-and-span translation available for the next 24 hours as our Deal Of The Day and save 30% in the process!

Rediscover your WHMCS V8.0.4 with Polish language version!

4. Last but not least, make sure to follow other updates that we have lately released as well:

Need Custom Software Development For Your Business?

Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!

How do you update a Stripe customer’s usage record at the end of a billing cycle?

For a metered pricing plan, rather than running a daily cron to create usage records for every customer, I’m listening for the invoice.created event triggered at the end of a billing cycle and updating the invoice with metered usage.

Unfortunately, I can’t add a usage record because ERROR: Cannot create the usage record with this timestamp because timestamps must be after the subscription's last invoice period (or current period start time). So I have to manually create a new line item instead of using the pricing plan.

It would be great if usage records created during the draft period of an invoice could be added to that billing cycle. Is that possible? I imagine it would save Stripe a massive amount of api hits if it were. Is there another webhook right before an invoice gets created I can hook into?