Contribute
Full source-code or any patches or updates you want to write can be found on the OcUK Shopping Cart to Forum Converter Google Code site. Please do contribute.
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)
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)
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
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)
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)
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
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)
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)
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
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!).
YOUR BASKET
1 x "RENDA P-X3" Intel Xeon v3 Professional Graphics Workstation£1020.00 - 1 x No Hard Drive Upgrade£0.00 - 1 x Seagate Barracuda 7200RPM 1TB SATA 6Gb/s 64MB Cache - OEM (ST1000DM003) HDD£43.99 - 1 x Samsung 128GB SSD 850 PRO SATA 6Gbps 3D NAND Solid State Drive (MZ-7KE128BW)£92.99 - 1 x No Crossfire Upgrade£0.00 - 1 x No Crossfire Upgrade£0.00 - 1 x PNY Nvidia Quadro K2000 Graphics Card - 2GB GDDR5 - 384 CUDA Core£404.99 - 1 x Crucial 16GB (4x4GB) DDR4 PC4-17000C16 2133MHz Quad Channel Kit (CT4K4G4DFS8213)£155.99 - 1 x Intel Xeon E5-2620 v3 2.4GHz 6-Core with Hyperthreading (Socket 2011-3) - Retail£335.99 - 1 x Microsoft Windows 7 Professional SP1 64-Bit - OEM (FQC-08289)£116.99 - 1 x Standard Build Systems - Dispatched within 7 working days£0.00 - 1 x NO OPTICAL DRIVE INSTALLED£0.00 - 1 x Networking Not Selected£0.00 Total : £2,191.93 (includes shipping : £17.50).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.