-
Posts
52 -
Joined
-
Last visited
Profile Information
-
Location
Berlin, Germany
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Jan Fromm's Achievements
Full Member (4/6)
17
Reputation
-
useBillingAddress in Custom Order Customer Form
Jan Fromm replied to Jan Fromm's topic in Padloper Support
Hi @kongondo, Thanks for checking! No hurry – it’s not urgent from my end. -
useBillingAddress in Custom Order Customer Form
Jan Fromm replied to Jan Fromm's topic in Padloper Support
Hi @kongondo, I may have discovered a bug. I am using billingAddressCountry in the Customer Checkout form: <select id="billingAddressCountry" name="billingAddressCountry"> <option> </option> <option value="1195">Belgium</option> <option value="1205">Germany</option> <option value="1454">United Kingdom</option> </select> After submitting the form, $orderCustomer looks like this: ... ["billingAddressCountry"]=> string(4) "1205" ["billingAddressCountryID"]=> int(0) ... However, it should look like this: ... ["billingAddressCountry"]=> string(7) "Germany" ["billingAddressCountryID"]=> int(1205) ... Apparently $orderCustomer->billingAddressCountry is not determined based on the submitted Country ID of billingAddressCountry. Or did I understand this wrong? -
useBillingAddress in Custom Order Customer Form
Jan Fromm replied to Jan Fromm's topic in Padloper Support
Awesome – thanks @kongondo! -
useBillingAddress in Custom Order Customer Form
Jan Fromm replied to Jan Fromm's topic in Padloper Support
I would like to provide the customer with an optional license address (and occupy the billing address fields for this). In this case, useBillingAddress would be very useful for form validation: when this checkbox is selected, the billing address input fields become required. I can solve this in another way, but useBillingAdress seems well suited for this. -
Hi @kongondo, I am trying to place useBillingAddress in a Customer Checkout Form: <input name="useBillingAddress" id="useBillingAddress" type="checkbox" value="1"> <label for="useBillingAddress">Use Billing Address</label> I’m not sure if this is really required, but I also referred to this field in the checkout template: $customFormFields = [ [ 'input_name' => 'useBillingAddress', 'type' => 'integer' ], ]; Anyway, no luck. When I look in $orderCustomer during checkout confirmation, it always shows ["useBillingAddress"]=> int(0), whether the checkbox is selected or not. The documentation doesn’t list useBillingAddress as a Supported Form Input field – Should I assume it’s not possible this way? Thanks!
-
It did! I got it to run with two custom fields in the order-template. These are populated with a hook in __orderSaved and then shown at checkout-confirmation and on the invoice. Thanks again for your help, @kongondo!
-
Hi @kongondo, Sorry for the long silence. I finally had a chance to look into the demo and am amazed that your VAT validation code is already 99% functional! I just had to take into account the country prefixes and now it runs like a charm. Anyway, one milestone passed, and the next one is just around the corner. I’d like to store the customers VAT number in OrderCustomer so I can display it on the confirmation page and on the invoice. I guess I need to add a custom field to the OrderCustomer template, right? I’m not sure where to do that, unfortunately. My second issue is to show a note on the invoice if Reverse Charge applies (customer has valid VAT number and gets an invoice without VAT). My idea is to hook in __orderSaved and add this hint to the order using the Notes feature. Unfortunately I have not found any information about this in the demos and the forum. As always, I appreciate any hints and help. Thanks!
-
You are really amazing @kongondo. Big thanks! I’ll take a look at it.
-
No rush @kongondo. Thanks in advance! BTW: I found a promising PHP class for VAT validation. In case you want to take a look at it.
-
Probably with a SOAP call to the EU VAT Information Exchange System (VIES). That would already make sense. Thanks a lot!
-
Hi @kongondo, Have you been able to check this? I am currently thinking about how I could add this functionality. My current idea looks like this: 1) Add new textfield »VAT« to custom customer form 2) Hook processCustomOrderCustomerForm and process VAT validation 3) Hook isChargeEUDigitalGoodsTax At the moment, digital goods taxes are collected IF 1 It is set in the store settings AND 2 The customer is located in the EU AND 3 It is a digital product This must be extended by 4 The customer does NOT have a valid VAT number, unless he is located in the same country as the shop owner. Is this possible? There are some pitfalls for sure, but that would be my approach. Thanks further hints, ideas or doubts!
-
Adding Properties on Product Page does not work
Jan Fromm replied to csaggo.com's topic in Padloper Support
Just tested it, I can add properties and dimensions, search is working fine. Padloper 0.0.2, version from 27 June PW 3.0.184 -
It does. Thanks for the explanation, @kongondo!
-
Somehow related: $padloper->getOrderTotalAmount() returns 0 once the order is confirmed. I am trying to display the order net amount (Excluding taxes and shipping) in the order-products-table.php template. In /checkout-custom/confirmation/ it works, but in /checkout-custom/success/ it returns 0.
-
Removing item from cart right before order placement fails
Jan Fromm replied to Kholja's topic in Padloper Support
Thanks @kongondo for clarification and the swift update. I’ll print this out and put it on my wall ?