Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Basket to Post script

135

Comments

  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    Okay yeah, maybe there might be a little bit of bias mixed in there,
    but Google collect so much information about us already I don't want to be giving them more.

    It's open source but have you looked through every line of code to make sure it's not recording your credit card info (slight over exaggeration :P)


  • Registered Users, Registered Users 2 Posts: 77 ✭✭tdh


    please excuse my ignorance but is this script still working?
    I copied the latest script into the same page hardwareversand, press enter and add stuff to my basket. Nothing happens for me. Is there supposed to be stuff on the clipboard or? I tried adding stuff to my basket then using the script but same thing.
    I'm sure I must be doing something wrong. Thanks.


  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    If you follow the bookmarking method to use the script it should work fine.

    It seems since I made the original post most of the browsers have stopped you from running JavaScripts from the address bar.


  • Registered Users, Registered Users 2 Posts: 77 ✭✭tdh


    cool, its working like that. thanks a lot! really nice script


  • Moderators, Computer Games Moderators Posts: 4,282 Mod ✭✭✭✭deconduo


    Shipping is now €18.99 :)


  • Advertisement
  • Moderators, Science, Health & Environment Moderators, Social & Fun Moderators, Society & Culture Moderators Posts: 60,119 Mod ✭✭✭✭Tar.Aldarion


    That's great! Nice one.


  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    deconduo wrote: »
    Shipping is now €18.99 :)
    haha, thanks I'll get right on it :)
    I might actually include the 18.99 in the price, makes more sense.


  • Registered Users, Registered Users 2 Posts: 7,181 ✭✭✭Serephucus


    Sounds like a good idea. Similar to how the Dabs one is done.

    "[price + shipping] (including [shipping])" or something.


  • Moderators, Computer Games Moderators Posts: 4,282 Mod ✭✭✭✭deconduo


    Serephucus wrote: »
    Sounds like a good idea. Similar to how the Dabs one is done.

    "[price + shipping] (including [shipping])" or something.

    Or like this?

    Item|Price
    Intel Core i3-2120 Box, LGA1155|€106.34
    ASRock H61M-HVS (B3), Sockel 1155, mATX|€40.60
    8GB-Kit G.Skill PC3-10667U CL9|€33.31
    Samsung SpinPoint F3 500GB, SATA II (HD502HJ)|€69.99
    BitFenix Merc Beta|€32.12
    Super-Flower Amazon 80Plus 450W|€41.89
    LiteOn iHAS122-18 schwarz SATA|€16.68
    Club 3D Radeon 6670 1024MB, AMD Radeon 6670, PCI-Express|€58.90
    Shipping|€18.99
    Total|€399.83


  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    For the moment I have updated it to €18.99.

    I will look into getting it to work as you have suggested deconduo.
    Problem is, I can't just hard code the Shipping and Total to the bottom in a table format, as you will lose the ability to create your own format then. That's probably fine for us here, but I don't know if the script is being used on reddit or other forums where they need a different specific format and if I change something big like that it will most probably break their scripts.

    So I'll probably do it like the other 'variables' that you can use.
    But it's late now, I'm watching Lord of the Rings and actually have a busy few days ahead of me so hopefully get to look at it during the week :)

    Thanks for the suggestions :D


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    Thanks to deconduo (again) I have updated the script to his above specifications and like I said above it's done in a similar fashion.

    Probably the easiest way to get the new functionality is just remove the three format variables at the beginning of your scripts, e.g.
    [php]var format = '{itm_quantity}{itm_name}|{itm_price}';var before = "Item|Price";var after = "Shipping|{shipping}\nTotal|{total}";[/php]
    or if you like those format variables above are the one's needed to get the Total and shipping at the bottom.
    The reason removing the variables will work is I have updated the default setting to use the new one. So if you have no format set, this is the format your gonna get!

    More detailed overview:
    I introduced two new 'tags', they are,
    {total} and {shipping}
    These only get replaced in the before and after variables and not the format variable. Other than that I think you will all be able to figure it out :)

    Oh and I updated all the working sites so that the "Empty Basket" now actually works for all sites and not just hwvs.

    I will try make a fully re-write of the OP and get Sol or another mod to replace it so that it's all up to date.


  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    I just got a comment about by above post not being the clearest.

    So to get the new format working correctly if you just grab the script in the OP and use it, you should get the new format :)


  • Registered Users, Registered Users 2 Posts: 7,181 ✭✭✭Serephucus


    (I was a bit confused as well)

    Nice and clear! :P


  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    Yeah very sorry about that, I am very lazy and sometimes I forget how confusing messing with a JavaScript is :)
    Next time I do it someone slap me real hard to wake me up!


  • Moderators, Technology & Internet Moderators Posts: 18,382 Mod ✭✭✭✭Solitaire


    Warning - As of 27/3/12 scripts has been updated by our resident genius! Check the OP for the freshest version hot out of the oven!


  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    Just added three new sites to the script, although most of you won't really care about them tbh :)

    http://komplett.ie/
    http://www.specialtech.co.uk/
    http://www.aria.co.uk/

    Any issues or requests let me know :)


  • Registered Users, Registered Users 2 Posts: 7,181 ✭✭✭Serephucus


    Specialtech, nice one!


  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    I thought you might like that one Serep!
    Any other sites you actually use just let me know :)


  • Registered Users, Registered Users 2 Posts: 881 ✭✭✭Bloodwing


    I can't seem to get the script to work for me on HWVS. I'm using the script from the first post and the bookmark procedure. I've tried it on Firefox , chrome and IE. When i click the bookmark on the basket page nothing happens, anyone got any ideas? I'm obviously doing something wrong!


  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    hmm seems the JavaScript Compressor site I use breaks the script now :(
    I've uploaded an uncompressed version so it should be back working for now, while I try figure this out :eek:

    Thanks for the heads up


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 881 ✭✭✭Bloodwing


    Fluffy88 wrote: »
    Thanks for the heads up

    No problem. The uncompressed version worked perfectly. Thanks.


  • Registered Users, Registered Users 2 Posts: 712 ✭✭✭deejer


    Ok i give up. :mad:

    I really have not got a clue when it comes to things like this. Can someone please explain to me (very slowly :o) what I need to do to get this to work in Chrome.

    Much appreciated!


  • Registered Users, Registered Users 2 Posts: 2,861 ✭✭✭FlyingIrishMan


    deejer wrote: »
    Ok i give up. :mad:

    I really have not got a clue when it comes to things like this. Can someone please explain to me (very slowly :o) what I need to do to get this to work in Chrome.

    Much appreciated!

    Open a new tab.
    On the bookmarks bar, right click, and then click "Add Page"
    Name it Basket (name doesn't matter) and then in the URL bar, paste in the script.
    Then go to your basket on one of the websites, and click the bookmark called Basket. You'll likely have to click Show Bookmarks Bar to see the bar on all pages.


    Also, never heard of that aria.co.uk site, they seem pretty cheap. 174euro for an i5 2500k. Everything else I looked at also is either cheaper than HWVS or around the same price.


  • Registered Users, Registered Users 2 Posts: 7,181 ✭✭✭Serephucus


    Minor problem noted:

    When using Specialtech, "Â" appears directly before the "£" symbol for the price of each item.

    Extremely bloody handy otherwise though!


  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    Hopefully I didn't break something else, it should be fixed now :)

    Thanks!


  • Registered Users, Registered Users 2 Posts: 7,181 ✭✭✭Serephucus


    Looks good, cheers. :)


  • Registered Users, Registered Users 2 Posts: 4,979 ✭✭✭Tea_Bag


    could you get the script to work on www.computeruniverse.net if possible please?


  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    I've actually been in the mood to do some programming the last few days, just wasn't sure what to do :)
    I'm on it!! When I get home from work :P


  • Registered Users, Registered Users 2 Posts: 1,414 ✭✭✭Fluffy88


    Item|Price
    Samsung Galaxy S3 i9300 16GB Android blue|€ 541,-
    3 x Belkin Pocket Case schwarz|€ 44,70
    bugatti Skinny grau|€ 9,79
    Shipping|€11.99
    Total|€607.48


    Should be working now :)


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 4,979 ✭✭✭Tea_Bag


    you're a gentleman and a scholar.


Advertisement