Jump to content

Jan Fromm

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by Jan Fromm

  1. You are really amazing @kongondo. Big thanks! I’ll take a look at it.
  2. 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.
  3. Probably with a SOAP call to the EU VAT Information Exchange System (VIES). That would already make sense. Thanks a lot!
  4. 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!
  5. 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
  6. It does. Thanks for the explanation, @kongondo!
  7. 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.
  8. Thanks @kongondo for clarification and the swift update. I’ll print this out and put it on my wall 😉
  9. Hi @kongondo, Thanks again for your quick help and customization of the module. Unfortunately I have to ask another stupid question, which probably has nothing to do with Padloper, but with my setup. I installed your update and added the new parameter. Now the product is deleted from the cart and the order, but only when Tracy Debugger is active. When I test without Tracy Debugger, only the cart is updated, but not the order. I have refreshed the module several times, and also cleared the cache with Cache Admin. Still, the updated code doesn’t seem to be applied in every context. Sorry to bother you again with such small stuff.
  10. Me again 🙂 The same happens when I try to remove the product programmatically: $cartRowID = $padloper->cart->checkIfProductInCart($fontID); $padloper->cart->removeProduct($cartRowID); This removes the product from the cart, but not from the order. I have also tried setting the quantity to zero: $padloper->cart->updateProduct($cartRowID, 0); But that gives the same result. Do you maybe have a hint?
  11. That was the trick. Thanks! Assuming that only digital products are to be sold, would it be enough to only care about the tax rates of EU countries? The other countries could be created without tax rates, right? Fantastic. Thanks again.
  12. Hi @kongondo, I would be interested to know to what degree Padloper handles EU taxes for digital products, and what may need to be added by the developer. As I’m sure you know, this varies greatly depending on whether the seller is based in the EU or not, whether the customer is based in the EU or not, and whether it's private (without VAT number) or business (with VAT number). There is this option »Charge EU Digital Goods VAT Taxes« in the tax settings. As far as I can see, this has no effect yet. Or did I miss something? Is this still WIP? Or what are your plans? Thanks!
  13. One more thing – What happens now is when you enable variants, the product gets disabled. 1) Content tab: Check enabled -> Save 2) Settings: Enable Product Variants: Yes -> Save 3) Content tab: Checkbox disappeared 4) Settings: Enable Enable Product Variants: No -> Save 5) Content tab: Checkbox re-appeared, but is unchecked
  14. Sorry, my mistake. I had placed the hooks in the products template. Now they are in _init.php and are applied properly. Thanks again @kongondo!
  15. Thanks @kongondo for reviewing my setup. The non-existent page ID is from an accidentally deleted product.
  16. Sorry @kongondo, the error came up again after I re-enabled TracyDebugger. With TracyDebugger disabled, everything is fine. Calling a member function count() on null It is this function in .../site/modules/Padloper/includes/order/PadloperCart.php:108 private function getProductThumb(page $product) { $thumb = null; if ($product->padloper_images->count()) { // Get common ProcessWire thumb $thumb = $product->padloper_images->first()->height(260); } return $thumb; }
  17. Hi @kongondo, The price hook $this->addHookAfter('PadloperCart::getProductPrice', null, 'customProductPrice') is not applied completely. I have added it according to the documentation. It works as expected at first – When adding a product, the hook fires and changes the price in cart-edit and cart-view. But when proceeding to the checkout page, the stock price gets applied instead of the custom price. I think that is because the price of an ordered product is not stored in the database, only product ID and quantity. But the price should be saved too for the hook to work, right? The same goes for the customProductTitle hook.
  18. Hi @kongondo, I have just tested this with the latest update. I can still add non-enabled products to the cart and order them.
  19. Hi @kongondo, This explains a lot, thanks for that!
  20. To explain my issue: I have about 120 digital products (fonts). Each of the products can be purchased for 3 license types, each of the license types has different factors based on the volume of usage. I could map this with product variations. But I would have over 4000 in total - a nightmare to create and maintain. On top of that, the product variations only differ in price, the rest stays the same. My idea is to create only the 120 basic products in the backend. In the frontend one would select (Padloper-independent) the product, the license type and the license volume. This information would then be passed to a PHP file that adds the product to the cart, and uses a hook to calculate the price and change it accordingly. I don’t need an add-to-cart form for this, but would rather do it like this: $cart = $padloper->getCart(); $cart->addProduct($product); Unfortunately, using this syntax doesn’t work. If anyone has any tips to point me in the right direction, I would be incredibly grateful.
  21. Is it possible to add products to the cart without the card-add form, but with a simple php wrapper instead? Something like this: $cart = $padloper->getCart(); $cart->addProduct($product); I remember that this once seemed to work with Padloper 1: Any hints are appreciated – thanks!
  22. @kongondo No big deal, just FYI: Found out that the checkbox »Enabled« (If unchecked, customers will not be able to buy this product.) on shop/products/edit has no impact at all. You can buy this product, no matter if checked or not.
  23. I have also seen that error, but can’t reproduce it. I deleted the cookies in the meantime, and the error was gone. Will do!
×
×
  • Create New...