The Shapeways Blog: 3D Printing News & Innovation

Shapeways Blog


Shop Owner Tips: Widget in the Wild!


Comments

Display comments as (Linear | Threaded)

Any updates on our feature request for the "Buy on Shapeways" button to enable specifying a material? That's what's keeping us from using (something very similar to) this more prominently on our site.
#1 TheMarchHare (Homepage) on 2012-07-13 02:01 (Reply)
The buy button will add to cart in your default, specified material.
#1.1 Duann on 2012-07-14 12:10 (Reply)
Hey TheMarchHare,

As Duann said, it will add the default material already, but we can look into adding an optional material selector if that would be useful.
#1.2 Brad Dickason (Homepage) on 2012-07-14 12:27 (Reply)
I read somewhere that this was already possible?

Just change the url to include material_id[]=
So it would like this:
http://www.shapeways.com/cart/addMultiple?model_id[]=36851&material_id[]=62
I lost the link to the material id list, but you can find it easily by changing the material on the product page and do an add to cart, it will update the url to include the id.
62=PWS
6=WSF
28=Alumide
#1.3 virtox on 2012-07-15 14:38 (Reply)
Quick mockup (never mind the layout ;-)

http://shapeways.virtox.net/
#1.3.1 Virtox on 2012-07-15 15:33 (Reply)
It was Nancy here:
http://www.shapeways.com/forum/index.php?t=msg&&th=9853&goto=49763#msg_49763
#1.3.2 Anonymous on 2012-07-15 15:35 (Reply)
More details here:
http://www.shapeways.com/tutorials/shoppingcart/index.html
#1.3.3 Anonymous on 2012-07-15 15:37 (Reply)
Here are some more quickly hacked examples for people to play with:

Select box for material:
http://shapeways.virtox.net/index2.html

And a full-blown example including vat and shipping:
http://shapeways.virtox.net/gyro.html
#2 Virtox on 2012-07-15 18:43 (Reply)
Thanks virtox and Anonymous for reminding me of this! I just went back through my notes and realized that we are actually using this already. This goes to show that I am getting old and confused... I guess what was lingering in my mind, and what I was actually meant to be referring to, is a way to link directly to a model page with the material already selected. Because we feel that sending a user from our page to a pre-populated shopping cart is bad style. Sorry about mixing these two things up :-(

@virtox I tried your examples from your last comment. Not sure if this is a browser-specific issue but when I click "Buy on Shapeways", the items don't appear in the cart. After refreshing the cart, they do. I am testing this in the latest version of Chrome.
#3 TheMarchHare (Homepage) on 2012-07-15 18:53 (Reply)
Anonymous is also me, the blog keeps calling me a spammer, so I post from a different browser sometimes and forget the fields ;-)

To preload a material on a model page use this syntax:
http://www.shapeways.com/model/35861/?modelId=36851&materialId=45

I cannot reproduce your cart issues though, both firefox and chrome seem to work well with the examples, but I'm no expert, I just like hacking ;-)
#3.1 Virtox on 2012-07-15 19:17 (Reply)
typo:
http://www.shapeways.com/model/36851/?modelId=36851&materialId=45
#3.1.1 virtox on 2012-07-15 19:19 (Reply)
Got it working : )
Loolks really good too!
http://colorsofbirch.com/store/store/
#4 Colors of Birch (Homepage) on 2012-07-17 04:50 (Reply)
Wow! That looks great!
#5 Natalia on 2012-07-17 15:11 (Reply)

Add Comment



Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

  
  
The Shapeways Blog: 3D Printing News & Innovation

Learn More »