I'd like to present a quick All The Flavors Flavor Order Importer that I made.
This is a quick way to export the information from orders you placed and then auto-import them into All The Flavors.
Features:
- It adds the quantity (ml) you purchased to whatever quantity (ml) you already have on ATF and updates your cost and cost/ml based on the latest order.
- If you don't have a flavor, it adds it to your inventory and fills out the pricing info.
- If it fails to find a flavor, it removes the last word in the flavor and retries. For instance Dulce De Leche Caramel-TFA is listed on ATF as 'Dulce De Leche by TPA'. This may not be right in all cases but it was for several of the flavors that I picked up.
- If it finds more than one flavor match it adds the first one on the list. I think there will be instances where this is wrong but it was right for everything on my order. Will have to flesh out as I order more liquids.
- It only adds things that you buy by the ml.
- Support for BullCity Vapors and Ecig Express (Only stores I've ordered from and can look up the order summary at so far). I want to add other stores as I place more orders.
- Im changing tfa to tpa for this vendor, and might have to add tweaks for other vendors as well once I figure it out.
Here's a quick video of it in action: http://screencast.com/t/PwxgLGTtDz
The code is [here] (https://github.com/murtidash/atf).
The link to the chrome store version is [here] (https://chrome.google.com/webstore/detail/all-the-flavors-order-imp/nkpigghobpnpafhpnocbdamdnbjgjfan).
I'd love any feedback you guys have and any bug reports/issues.
NB: I did this on my own in a few hours so it's still kind of hacky in some places. If /u/queuetue wants to either integrate some of this functionality into his extension or wants me to take it down then I'll do those things and just keep using it personally. I just thought some other people might want to use this as well.
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
- [/r/alltheflavors] Order Importer for BullCity Vapors - Other vendors to be added
^(If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads.) ^(Info ^/ ^Contact)
I will look into this, but any attempt I found to automatically tie reseller data to vendor data resulted in way too many bad matches.
The fact that you saw some good efforts makes me agree it's worth looking into, but in my experience, resellers make up a lot of names. Looking forward to digging into it.
I ran the three big orders I've placed through it and didn't have any false matches.
That may be because I had already entered them by hand and your flavor list puts those flavors at the top of the flavor list.
Regardless I was pretty happy with the outcome and annoyed at the thought of putting in another 30 flavors by hand last night.
Also, I've done a shit ton of regex matching to take how they format it and convert it to your format before I pump it into your engine.
If you look at this you can see how hacky some of them are.
For instance on ecig express the quantity for inawera is in the title whereas for every other vendor I ordered it's in an item-options element.
Just watched the video, and you are a lunatic. :) Awesome job.
You've inspired me to go back and see how well I can do an automated mapping of BCV/Gremlin/ECX and I'll make this importer a real thing. :)
(Probably from pasting in confirmation emails - that's what my previous attempts did.)
I'm a test automation/dev ops guy, it's not as clean as I'd like but it'll do :P
If I wanted to do it right, I'd add a restful endpoint to ATF for searching for flavors and letting people do matches in the extension where it didn't have a guaranteed match before letting them then submit the flavor updates via another rest call. Or do it directly through the site cough
The only real annoying thing was I had to recreate your update_search function since I can't actually trigger main page dom elements from the extension dom.
I sent you a message last week about helping you out on the site, you should respond to it! :P
I saw your mail (both of them) but it's tough to bring a random person inside, there are thousands of people trusting me to keep their data secure and private...
If you worked for me, I could sue you, and if you do stuff on your own, it's between you and the user, but if I give you access, then suddenly I'm fully responsible for your actions.
I'd love to talk to you further about it if you're willing, I disagree with your concerns about data security. Having someone else contribute to a project doesn't equate to giving them access to the data that you have or your production environment, you absolutely want to severely control access to that. It's also very possible to establish a chain of review for any source before it gets anywhere near your production environment or your main branch code. I'd be willing to help you setup some of those processes if you're interested.
There is always some risk to you regarding your source/schema but that's why you have things like non disclosures and non competes which are pretty standard these days and give you similar legal backings that the employee/employer relationship does.
I assumed you hadn't seen them since I didn't even get a 'thanks but no thanks' which is what drove me to want to make this plugin. If you don't have a problem with me adding non affiliated things to your site for the features that I want though, then I'm happy to keep working on them on my own.
Especially as I get started out on flavor testing for real I think the concept of a schedule for flavor/recipe notes is super important along with the ability to take notes for a flavor at different percentages and have them be organized in a way that isn't a bunch of comments on the flavor. I don't want to build yet another recipe site but would love the ability to contribute and get some of those ideas in place.
would this work for all diy sites like diy flavours or one stop diy?
Since each site lists their flavors in a different way support for sites has to be added by hand. I don't have an issue adding more sites but I have to place an order with them to see how they format it. It will grow over time.
Not intending to one-up the work /u/murtidash did here, but if you look at your profile page you'll see you have a private email in the format of orders-xxxxxx@alltheflavors.com.
If you forward (recent) BCV order confirmations there, it'll import the flavors from the mail into your inventory and do the price calculations for you.
Note, this is a fragile process, and it depends on the BCV name being pretty close, and the email format not changing and ... a whole list of things. Moving forward, I'll work to maintain compatibility as BCV (and others) change their email format, but I probably will not support mails going into the past.
Murtidash's extension may work better for those old emails.
I have no issue with that and don't feel at all like you're trying to one up me.
Honestly if me building out a feature for you lights a fire under your ass to implement that feature then I accomplished what I set out to do which is have access to that functionality on your site. :P