Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Denford 130 posts 311 karma points
    1 week ago
    Denford
    0

    Create customised Cart for a customer to use as a Quote

    Not usre if this is at all posible or if anyone has tried to implement something like this, so basically want to create "Quotes" in Tea Commerce send this to a customer so the customer can retrieve it and complete that order.

    So was thinking this would probably involve these steps below and wanted to see if there is any suggestion on how best to archive this.

    • if someone is logged in as an admin user front end, have the option on the cart page to save the cart(quote) and generate a url to retrieve this e.g. domain/cart/{cart-guid} (bonus points if i can also have a drop-down with members and assign an member to the saved cart(quote) so when they open it, i either checked if they are logged in or have a text box to enter the email address to verify access to that saved cart but not necesary)
    • View this cart(quote) in the back end and to get the url or delete if not needed anymore
    • Email this to a potential customer, and when they access the cart (some verification either by email or as logged in but not necesary) they can complete the order or adjust/add more products if needed.
    • on order completion delete the saved cart.

    So basically my client deals a lot with customised quotes which is all manual at the moment and ideally they want to use the cart process to generate these and send them to customer.

    I appreciate this is probably not out of the box set up but any help welcome hopefully am not the only one attempting this complex bit of functionality :)

  • Matt Brailsford 2814 posts 14399 karma points MVP 7x c-trib
    1 week ago
    Matt Brailsford
    100

    Hey Denford,

    As you say, that's not out of the box, but it should be achievable.

    Generally, you can create a cart with the items in and you can have someone take over that cart by loading it into their session with TC.SetCurrentOrder() https://docs.teacommerce.net/3.4.0/api/order/#setcurrentorder

    Using this method, it makes the given order the current users current order so they can complete it.

    In your scenario then, you could create the order, then sent the URL to the customer, when they hit that URL, it creates a new session and sets the current order for that user to the order ID passed in the URL.

    We don't really have a means of creating orders in the back office so you might have to do this via the front end and maybe create a private page where you can enter the email address of the person to send the cart to using a custom email template.

    Those are my initial thoughts anyways.

    Hope this helps

    Matt

  • Denford 130 posts 311 karma points
    1 week ago
    Denford
    0

    Thanks Matt

    I will have a crack at that, wasn't sure if there was an already method i can hook into to set a users cart and looks like TC.SetCurrentOrder() is my guy.

    Didnt actually want to create the order/cart in the back office, just wanted to see if you can view them but guess regardless of how its created it can still be viewed in the orders list from the shop.

  • Matt Brailsford 2814 posts 14399 karma points MVP 7x c-trib
    1 week ago
    Matt Brailsford
    1

    Ahhh, then yea, you can view unfinalized orders in the back office so that should work for you there.

    Glad I could help

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft