-
Posts
79 -
Joined
-
Last visited
Everything posted by Spinbox
-
Padloper 009 Released
Spinbox replied to kongondo's topic in ProcessWire Commerce (Padloper) Support
After updating I can't simply save an existing product. Is it possible to keep the compare price empty? Looks like it's not possible and it resets to 0. Probably because of the database type. -
Padloper 009 Released
Spinbox replied to kongondo's topic in ProcessWire Commerce (Padloper) Support
Great stuff ? Can't wait to use it! -
Saving Stripe's charge_id to order
Spinbox replied to Spinbox's topic in ProcessWire Commerce (Padloper) Support
I have managed to save the charge id to the order. For this to work I needed to make captureOrder hookable. This is probably not the right way tough.. $wire->addHookAfter('PadloperProcessOrder::captureOrder', function(HookEvent $event) { $paymentIntent = $event->return; $orderId = $paymentIntent->metadata->reference_id; if ($paymentIntent && $paymentIntent->status === 'succeeded') { $chargeId = $paymentIntent->latest_charge; // Load the order page using the order ID and save the charge ID $orderPage = wire()->pages->get("template=padloper-order, id={$orderId}"); if ($orderPage->id) { $orderPage->of(false); $orderPage->set('stripe_charge_id', $chargeId); $orderPage->save(); } } }); -
Hi @kongondo, I'm trying to generate product variants on two different installations but when the InputfieldTextTagsSelect tries to get options I get a 404 error.. (It just shows not found page) /find-padloper_product_attributes/?id=2388&field=padloper_product_stock&parent_id=3092&context=options&q=tes I'm running 3.0.229 and 3.0.200 on php 8.2 and Paloper 008 . Are you familiar with this problem?
-
Thanks, ? I was positive I had that selected, but I can't seem te reproduce ?, don't tell anyone.
-
Saving Stripe's charge_id to order
Spinbox replied to Spinbox's topic in ProcessWire Commerce (Padloper) Support
Thank you for the pointers, I feel like a newb sometimes, let me cook something up. -
Saving Stripe's charge_id to order
Spinbox posted a topic in ProcessWire Commerce (Padloper) Support
I need to include Stripe's Charge ID to invoices. This way some accounting software can relate the payment to the invoice via Stripe. On successfull payment (Order complete); Inside the Stripe Payment Processer I found that 'isSuccessfulPaymentCapture($response, $options = [])' $response is returning it's latest_charge (the charge_id). How can I save this to the order? -
In addition, the same padloper-product, padloper_type=1242 (event in this case) should have no shipping fee. I made 2 rates (standard 7,- for normal products, and free). Can I preselect the 'matchedShippingRate', but only if there are only event-typed products in the cart?
-
Yes I have PowerToys, but the habit of just using 50/50 is strong in me haha. Windows 11 can group 2 windows when you asign them for example with windows+leftarrow. I have to use 2x1080p occasionally when working on location. At home I have used 3440x1440p before this. And dual 1080p before that.
-
I want to limit the purchase of some 'event'-typed product to 1 per user. Currently when an event is purchased the user get's added to a pagearrayfield which in turn grants them access to some pages. How could I limit the amount of a product to be added to the cart to 1? And after they bought it, how can I prevent them from buying it again?
-
I'm using a single 4k OLED 42" C2 tv as monitor for over a year now. Using same distance as normal dual monitors I wouldn't go any larger True and 5. If you have no direct window behind you, the glossy screen is great (there are some matte monitors with 4k out there right now, but I personally would go for oled for the deep blacks, which are not that deep on matte screens.. There is also coming an oled monitor from LG with glossy). No burn-in, I do have screensavers and hide the taskbar just in case. Burn-ins really should only occur when something is there for a VERY long time. My pc is on all day long. ^ I have no problem myself I have 120hz, personally I really like that when I move windows around it's a bit smoother Autodimming can be disabled for mine (some program is needed) Small fonts not looking great when it's a particular color combination, like red on yellow. This might be different for different TV panel types. I'm usually splitting the screen in 2, but this is particular a personal preference. (It's possible to have 25%/50%/25% but the 25% would be a bit narrow for a code editor) Perhaps looking at the new (and not yet released) 4k oled monitors could be an option. If OLED is a no-go then I would still have a 42" monitor. One thing; if you are used to this, working on dual monitors is not very pleasant (especially 2x 1080p).
-
Order of displaying products
Spinbox replied to ank's topic in ProcessWire Commerce (Padloper) Support
Hi @kongondo , The admin currently has to select a field and select a value to get the results they want. In this case I only want to show a certain product type. I want to make it a bit easier to use (specially for this product type). What is the best way to have this easily accessible? Thanks, -
Pending Release: Padloper 009
Spinbox replied to kongondo's topic in ProcessWire Commerce (Padloper) Support
Looking forward to it! And good luck ? -
Actually looking for this too! Anyone! ❤️ I'm looking for something lightweight
-
RockShell - a ProcessWire Commandline Companion ⌨️
Spinbox replied to bernhard's topic in Modules/Plugins
It's probably easier to use Adminer (since I also use tracy). I have been using phpmyadmin for so long that I didn't think about alternatives ? I have tried to get the pw:install command working. It looks like the stepAdmin data isn't being saved (url, user credentials,) or executed properly, the install files don't get deleted either. owever, this does work when I use them as options --name=Name etc. Not sure why that is. After some more testing I found out I actually didn't delete the previous databases these tries. My bad. -
RockShell - a ProcessWire Commandline Companion ⌨️
Spinbox replied to bernhard's topic in Modules/Plugins
It isn't anymore. but the following code can be changed for ddev get ddev/ddev-phpmyadmin # Automatically add phpMyAdmin to .ddev/config.yaml echo "services:" >> .ddev/config.yaml echo " phpmyadmin:" >> .ddev/config.yaml echo " type: phpmyadmin" >> .ddev/config.yaml echo " port: 8036" >> .ddev/config.yaml When you have to choose Timezone you have to set an integer (god knows which), instead of for example Europe/Amsterdam I will try to look into the specifics -
RockShell - a ProcessWire Commandline Companion ⌨️
Spinbox replied to bernhard's topic in Modules/Plugins
Yes, I have added rockshell alias, and a function to make it some less effort to get default setup. function setup_spinbox_project() { # Convert project name to lowercase local project_name=$(echo "$1" | tr '[:upper:]' '[:lower:]') # Check if project name is provided if [[ -z "$project_name" ]]; then echo "Please provide a project name." return 1 fi # Clone the repository and check for success git clone git@gitlab.com:#############################.git "$project_name" if [ $? -ne 0 ]; then echo "Failed to clone the repository. Check your access rights." return 1 fi # Change to the project directory cd "$project_name" || return # Run ddev config ddev config # Automatically add phpMyAdmin to .ddev/config.yaml echo "services:" >> .ddev/config.yaml echo " phpmyadmin:" >> .ddev/config.yaml echo " type: phpmyadmin" >> .ddev/config.yaml echo " port: 8036" >> .ddev/config.yaml # Start ddev ddev start # Run RockShell commands rockshell pw:download rockshell pw:install echo "Setup for $project_name complete." } -
RockShell - a ProcessWire Commandline Companion ⌨️
Spinbox replied to bernhard's topic in Modules/Plugins
Awesome stuff @bernhard I have incorperated rockshell to my workflow (together with ddev, thanks for that video, just found it). Togerther with RockMigrations they are a great improvement. A thing I noticed it doesn't delete install file and folder (and also non-used site profile, though I'm not sure the default installation deletes these) -
Thanks, looks great already ?
-
Hi @kongondo, Do you have an update for the 'Gift Cards/Vouchers' feature and 'Discounts' feature? Thank you
-
Automate Repeater Matrix types creation with RockMigrations
Spinbox replied to Ivan Gretsky's topic in RockMigrations
Say what, more Rock? Any update to this? -
Change in stripe payment module
Spinbox replied to Spinbox's topic in ProcessWire Commerce (Padloper) Support
Thank you, I'm actually sending the information in handelSubmit. You first have to hide them, but it's still required. -
Change in stripe payment module
Spinbox replied to Spinbox's topic in ProcessWire Commerce (Padloper) Support
I honestly can't find an option to disable it inside Stripe. Read somewhere it could be location based. It's also only with iDeal, Klarna, Bancontact, but not with cc. -
I've made a change to the js file of the stripe payment module, removing the name input from payment methods. If I update the Padloper module in the future this will of course be overwritten. What's the best approach in changing such a thing? getPaymentElement: function (elements, mount_id) { const paymentElement = elements.create('payment', { fields: { billingDetails: { name: 'never', email: 'never', } } }); }, handleSubmit: async function (stripe, elements, event) { event.preventDefault() padloperPaymentStripe.setLoading(true) ///////////////////////// // @see: https://stripe.com/docs/payments/quickstart AND https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#enable-payment-methods const { error } = await stripe.confirmPayment({ elements, confirmParams: { payment_method_data: { billing_details : { name : document.getElementById("clientName").value, email : document.getElementById("clientEmail").value } }, // payment completion page return_url: PadloperPaymentStripe.getReturnURL(), }, }) ... }