Jump to content

kongondo

PW-Moderators
  • Posts

    7,379
  • Joined

  • Last visited

  • Days Won

    139

Posts posted by kongondo

  1. Hi @Spinbox,

    Not sure I understand this one. All you have to do is make the product 'not shippable' in the product settings as shown in the screenshot below. Padloper will not apply shipping to non-shippable items.

    shippable_product_types.thumb.png.fa1c12e12b459af41328cf056119bf86.png

    Is this what you were after?

    Thanks.

  2. For the present question about 1 product per user, here is example code:

    <?php
    
    namespace ProcessWire;
    
    $eventProductID = 2678;
    
    $customerEmail = 'wario_best@gmail.com';
    /*
    NOTES
    1. line-time -> padloper-order-line-item (order line item template)
    2. product_id -> subfield in padloper_order_line_item field with product ID value
    3. parent.order_customer -> Order is the parent of line items. padloper_order_customer is the field with customer details
    */
    
    // $boughtTicket = $padloper->get("template=line-item, line_item.product_id={$eventProductID},parent.order_customer.email={$customerEmail}");
    // if ($boughtTicket instanceof NullPage) {
    // 	// NOT YET BOUGHT TICKET 
    // } else {
    // 	// BOUGHT TICKET ALREADY
    
    // }
    
    # OR
    
    $boughtTicketID = (int) $padloper->getRaw("template=line-item, line_item.product_id={$eventProductID},parent.order_customer.email={$customerEmail}", 'id');
    
    
    if (empty($boughtTicketID)) {
    	// NOT YET BOUGHT TICKET 
    
    } else {
    	// BOUGHT TICKET ALREADY
    
    }

    Let me know if you need clarification.

    Sorry for the delay!

    Thanks.

  3. Hi @Spinbox,

    I have made this hookable so you have access to $response and $options. However, we have no dedicated field for saving this value. You could add a text field to your order template. Then save the latest_charge value to that field. This way, it stays together with the order and you can easily retrieve and add it to your invoices. Does this make sense or you need example code?

    Thanks.

    • Like 1
  4. 22 hours ago, Spinbox said:

    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?

    Hi @Spinbox,

    Just acknowledging that I have seen this. I'll get back to you with a detailed answer. There's various ways to approach this (all easy 😃).

  5. @Spinbox

    You are the boss 😄!  Thank you so much for the detailed response!

    22 hours ago, Spinbox said:

    I'm using a single 4k OLED 42" C2 tv as monitor for over a year now.

    I've heard great things about the C2.

    22 hours ago, Spinbox said:

    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)

    This guy has some helpful tips on screen splitting (PowerToys FancyZones, Aquasnap and Groupy).

     

    22 hours ago, Spinbox said:

    One thing; if you are used to this, working on dual monitors is not very pleasant (especially 2x 1080p).

    Was 2x 1080p your previous setup?

    Thanks again for the detailed answers!

    • Like 1
  6. Hi @sebibu,

    On 3/6/2024 at 7:09 PM, sebibu said:

    Your screencast, the ideas and conversations look very promising and I would love to buy and use the new version already. But unfortunately no progress on this for a long time. Can you surprise us?😉

    Yes. I am hoping to do so soon 😃. I'll post an update later this week.

    On 3/6/2024 at 7:09 PM, sebibu said:

    Your shop seems to be in maintenance mode for a long time, if I‘m not wrong!?

    Yes, sorry, this (see bit about shop):

     

    • Like 1
    • Thanks 1
  7. 1 hour ago, wbmnfktr said:

    I don't know if the video above answers all your questions but maybe it gives some more insights

    Thanks. It was one of the first ones I watched 😄. I've watched at least a dozen, maybe more. I have watched some that are like a series...now, 6 months later, 2 years, later, etc! Some people have gone back to PC monitors, others have stuck it out, others have gone for smaller TVs, etc. Like you said, there's quite a lot of factors to take into account as well as end use of the thing. Gamers, for instance,  seem to like the LG C series a lot. 

    • Like 1
  8. Anyone using a 4K TV as a computer monitor? What has your experience been? Primary use would be coding and video editing (not gaming or graphics or for smart TV features). 43 inch, maybe LED or QLED (not OLED). What I've found out so far:

    1. Distance from screen!
    2. Anything bigger than 50 inch is asking for trouble (ergonomics).
    3. QLED best for bright rooms.
    4. OLED best for darker rooms but...
    5. OLED burn-in! and pricey!
    6. Eye strain + possible headaches (see #1).
    7. Refresh rate (not important for coding?).
    8. Auto dimming.
    9. Font aliasing (reverse RGB to BGR if possible).
    10. One big screen might be better than two smaller ones (central focal point) - YMMV!

    Thoughts?

    Thanks.

  9. Hi everyone.

    Padloper 009 is ready! The release has been delayed by issues with my site. It is currently offline as I work on upgrading it. I hit a number of issues which I am currently resolving. I am hoping this won't extend beyond two weeks. I request your patience please, thanks.

    Best.

    • Like 4
    • Thanks 2
  10. Hi @alexm,

    Sorry, I saw this late.

    3 hours ago, alexm said:

    S'all good. I created 2 new children (order line items) under the order page and then went in the DB and added the relevant data in there

    Yes, that's the easiest way to do do it. You could also have done this programmatically but much easier at the DB level especially if you don't have many line items. A third way would have been to recreate the whole order manually in the backend using Padloper but this would have meant creating a new order.

    4 hours ago, alexm said:

    They asked if I can switch it off and foolishly, I went and edited it under Admin -> Shop -> Padloper -> Orders and there was an option to disable taxes on the order, so I hit that and then save and the items have disappeared from the order. Is there a way I can manually add them back in?!! EEEEEEEEK

    As you have found out the hard way, manual order creation and frontend orders are not compatible (for now) 😀

     

    • Like 1
  11. On 12/11/2023 at 3:32 PM, ryan said:

    Worth mentioning too that PW will happily serve multi-site already, so long as you add all the hostnames to $config->httpHosts and use conditionals like if($config->httpHost === 'host.domain.com') to decide what content to serve.

    I didn't know this! Where does this code go, ready.php or init.php? Or in config.php?

    • Like 1
  12. 10 hours ago, joe_g said:

    Thanks for getting back.

    No worries 🙂.

    10 hours ago, joe_g said:

    I don't mean this as criticism

    I didn't for once consider it that way 😄. Everything you said was spot on and constructive. I am just frustrated at myself that I have not been able to bring the docs to a reasonable standard (yet).

    10 hours ago, joe_g said:

    I personally much prefer text documentation, since I can copy paste examples and scan the page quicker. For example FieldtypeTable has mostly video documentation and to try and find out how the selectors should look like to search a FieldtypeTable is an exercise in scrubbing back and forth in that one particular video

    I take your point and will consider this. My plan has been to make short (5 minutes maximum) video.

    Thanks.

     

    • Thanks 1
  13. Hi @joe_g,

    Apologies for the very late reply. I have been away.

    First, thanks for your continued interest in Padloper despite the difficulties you have previously encountered.

    On 11/16/2023 at 9:53 AM, joe_g said:

    I tried about a year ago and the docs were somewhat missing.

    The docs are still not great, sorry. I am currently working on releasing version 009 of Padloper after which I'll introduce a soft feature freeze and solely focus on working on documentation and bug fixes. I decided to focus on video documentation rather than written ones at the moment.

    On 11/16/2023 at 9:53 AM, joe_g said:

    My problem, at the time, was the examples was written with a lot of HTMX. HTMX is amazing but it's hard to read, and there was no plain non-HTMX example from what I remember.

    You are right. I focused on using htmx since that was the easiest way I could illustrate how to build a shop using ajax. It was my intention to quickly follow this up with other examples using jQuery and non-ajax examples. Apologies that I never got round to this but my plan for the video documentation is to start from scratch with very simple examples, first without ajax, then with ajax and subsequently cover more advanced techniques.

    On 11/16/2023 at 9:53 AM, joe_g said:

    From what I remember padloper itself was returning a lot of markup, where I'd rather create all the markup myself.

    I take full responsibility for this misconception.  Padloper does not produce any markup except for a checkout form which you don't have to use. Perhaps my (complicated) htmx examples created the impression that the markup was coming from Padloper. Padloper closely aligns with the ProcessWire approach; it gets out of your way but is always on hand to assist you with its powerful API. 

    On 11/16/2023 at 9:53 AM, joe_g said:

    I've got another opportunity to start a webshop project and I'd love to avoid doing a shopify integration, but I'm not too keen on spending days going through existing markup like last time. So therefore I'd be curious to hear other peoples experiences.

    I don't know what your timescales are but I think this would be a great opportunity to learn how to use Padloper's API. I know the video docs are not ready but perhaps your project could help shape my video documentation? Please let me know.

    Thanks.

    • Like 1
  14. On 11/13/2023 at 6:17 PM, gornycreative said:

    I was looking at the progress you have made on this product... I have an idea that I was looking to implement on the backend but realized dynamic selects might already cover it.

    Hi @gornycreative,

    I have been away so just picking up messages now. Thanks for your interest in Dynamic Selects. I'll respond to your questions ASAP. There might be a delay as I settle in after a long absence, thanks.

    • Like 1
  15. On 10/18/2023 at 11:05 AM, MrSnoozles said:

    @kongondo Is there more to see in the meantime? 🙂

    Hi @MrSnoozles, all.

    Sorry I have been awfully quiet. I have been very busy with a number of projects. This has caused a delay regarding MM Next work. I am going to be away this week for about 2 weeks without access to the internet. This will quieten down a bit then with the other projects and I'll be able to continue with MM Next. Apologies for this!

     

  16. Hi both,

    On 10/25/2023 at 10:44 AM, Spinbox said:

    Hi @kongondo,

    Do you have an update for the 'Gift Cards/Vouchers' feature and 'Discounts' feature?

    Actually, this was supposed to be last week! I was hoping to release version 009 of Padloper which is packed with a number of new features including discounts but life got in the way! I am now going to be unavailable from this week for a number of weeks (at least 2) without access to internet. Hope to finish this quickly when I get back.

    On 10/25/2023 at 12:41 PM, alexm said:

    👍🏻 let's wait and see what he says. If it's going to be a while before it's released, we'll get it sorted!

    Nice work all the same!

    • Like 2
  17. Hi @ank,

    Sorry I missed this!

    On 10/17/2023 at 10:48 PM, ank said:

    Is there a way to change the order of the products in the webshop.

    Currently we use the ProcessWire Lister inbuilt InputfieldSelector. This is on my TODO list to make more intuitive and at least relevant to the current view (products, orders, etc).

    Screenshots

    Add filters

    01_sort_products_add_filter.thumb.png.1f89962d355780b05ab45c927508d25a.png

    Select sort

    02_sort_products_choose_sort_filter.thumb.png.2eae91857c94f93d112adb3ee6e8ab0e.png

    Select sort criteria

    03_sort_products_choose_sort_by.thumb.png.bc859b13ab6d82412eb57fe01349a0c2.png

     

    Doe this work for you for now?

    Thanks.

  18. Hi @Guido,

    On 9/22/2023 at 10:00 AM, Guido said:

    thank you for your wonderful work so far!

    Glad you are enjoying Padloper! 😀

    On 9/22/2023 at 10:00 AM, Guido said:

    I'm almost done implementing a shop for a local café and roastery in germany.

    Can't wait to see the showcase 😀.

    On 9/22/2023 at 10:00 AM, Guido said:

    We try to archive a csv export on the order bulk edit menu and i couldn't really find a good way to implement this, could you help with that? Is there a hook to use?

    Apologies again for the delay in getting back to you.

    I'll have a think about how best to achieve this and get back to you by tomorrow. 

    There is a new version of Padloper coming soon, hopefully in a fortnight or 3 weeks. It has more order statuses as well as other stuff. I'll base my solution on this latest version of Padloper. This means, if you don't mind, I might request you to please test the solution on the latest Padloper (beta) which I'd send to you separately before releasing to all users. I hope this is OK.

    Thanks.

×
×
  • Create New...