*** Multi-Browser OcUK Shopping Cart Bookmarklet (similar to the Chrome extension) ***

  • Thread starter Thread starter Pho
  • Start date Start date
Pho,

Is this something that could be easily added to the OcUK main site as a link? Instead of people having to hack it in themselves?

Sorry completely forgot about this thread.

Yeah it could be done fairly easily. I can wrap it up as a jQuery plugin if the shop wants it to do it "properly".
 
Unfortunately I don't have either an iPad/Nexus so I can't look into it myself. OcUK could buy me one so I can do some extensive testing however (Nexus please!) :p.

Surprised it doesn't work on Chrome, as I'd imagine it's using the same engine as the desktop version- or is it the shortcut you're unable to create?
 
Sorry only just seen that. It seems to work fine for me still on the cart page.

Is it a specific product which isn't working? It sounds like one which doesn't have a description (e.g. it's blank). Which browser are you using also?

Cheers.
 
I dunno what I am doing wrong. I got IE11, the Favorite bar is open, I drag the green box up and I just get the crossed out cant drop here symbol.

Is this working on IE11?

Oops completely forgot about this. Seems Microsoft have changed IE11 to not allow dragging/dropping bookmarks any more :confused:.

Not to fear, I've adding instructions to the install page to work around it.

It works fine in IE11 once this is done :).
 
Hi :) - I've been browsing the forum for many years but never really got involved. I did attempt to create a forum account many years ago, it got rejected for some reason but anyway I'm here now.

I was quite bored this afternoon, and I noticed that every time a new list is created, there's not really an easy method of getting that list to your basket, quickly and easily. Until now! I've been working on a little something. It's not ready but there's a little something to show and explain. If the interest seems significant, I'll happily make it work and see if Pho would like to contribute it to his code. It uses Pho's original source, but with an extra few lines, it saves the current cart list over to another server. This server then returns back a unique code, which can be used to pass on to quick add everything to your basket. (It also amends the BBCode text to add the link inside here)

Here's a quick example (The products in this list are just randoms! Not by choice lol)

http://d3v.me.uk/overclockers/compile/index/XLQKb0

This is what happens behind the scene for the techhie ones.

1 - You visit this link. In turn it asks for what items are registered against "XLQKb0"
2 - This then populates some Javascript in the back end, Product codes + Qty's for each Product.
3 - First time it will load an iframe to submit the first item to basket
- (You have to add one item to basket and wait for it to load, because when the basket is empty, there is no "ocukbasketid" cookie set, so you need a cookie set before any other items can be added, or else multiple baskets are created and you end up with 1 item in your basket) :confused:
4 - It will then spawn additional iframes and add the products to basket.
5 - When the final product has been loaded, you are then redirected to http://www.overclockers.co.uk/viewcart.php

There is a few downsides, there's no real way of "emptying" your basket unless you was to add another shortcut in your bookmarks. So you have to make sure your basket is empty first for a fresh list.

I could create an additional bookmark, which in turn asks you for the unique code, you paste it in and it will empty your basket, and add the items while your still on the OCUK website. That way the link is still useful to send to friends.

Anyway, before I loose you all and blabb on any more, I look forward to hearing your responses :)

Thanks.

Ooops, very late reply sorry. I've now subscribed to this thread as I keep forgetting about it.

Very awesome feature and a very interesting way of doing it :). Did you get any further with allowing it to work with a real basket rather than a made up one?

The easiest solution would be for OcUK to modify the shop to allow a cart to be saved against a GUID which you can give to other people to allow them to restore it but alas I doubt they'll do it (it's in their interest!).
 
Hi all,

Some of you may have heard that Google Code is shutting down in the next few months. I've migrated the project over to Github instead where it should be much safer :).

https://github.com/akiller/ocuk-shopping-cart-to-forum-converter

Could a few people please test this out for me to check it works? It's exactly the same version but now pointed at the Github servers instead. If it works OK I'll update the original post with the new links.

You'll need to reinstall your bookmarklet using the JavaScript code on the Github page above.

Thank you :).
 
Ah. Seems you can't hotlink from github.com with Chrome.

I've switched to hotlinking it to rawgit.com now instead which sets the necessary mime type to keep Chrome happy.

Could you reinstall the bookmarklet link please? Cheers :).
 
Last edited:
Not really. Used to be with Chrome, but not anymore. The clipboard area is client protected. Probably for your own good.

I believe you can do it in Internet Explorer, in fact there's actually code in the bookmarket to attempt to set the clipboard (as below) but for Chrome, Firefox etc most websites make use of a hidden flash applet to do it :(.

Code:
if (window.clipboardData && window.clipboardData.getData)
	window.clipboardData.setData("Text", cartBBCode);


I always wondered how forum users were showing baskets in their posts.....why on earth isn't this thread a sticky?

No idea, you'd think it would be by now really Who wants to set-up a change.org petition? :p
 
You might have been using the Google Code hosted version, giving it's shutting down I've now moved it over to Github which should be around for a very long time :).
 
Has anyone had any issues with the add-on since the Chrome update? I no longer get the basket icon despite uninstalling/reinstalling the addon and clearing browser cache!!

Sounds like you're talking about Oliver's Chrome extension not this bookmarklet - they're different things :).

The bookmarklet should still work, see the first post for how to install it.
 
I'm back again :)

Was wondering if I should continue with what I mentioned last time if you fancy banging heads together to come up with a nice streamline solution ?

Email notifications are still broke it seems, no idea why it didn't tell me about your reply :(. Probably good timing with the shop change though - not sure if there's still benefit to us doing anything?
 
Back
Top Bottom