Hi Rfay,

I installed Amazon and Amazon Store ( just for the cart, in fact). So i created Amazon product in node. Created a personnal View to show them. So il would like to add, the add to cart, on teasers in my View, and full node page. Can we add easily this fonction in an amazon product which is a node ?

regards.

Comments

F.G’s picture

So after a couple of hours...this code give me the add to cart in my tpl, but with too much informations. Like merchant form....and the ajax message broke my small design.

drupal_get_form('amazon_store_addcart_form', $myasin);

So can we add product directly via url and what'is the link ? mysite/amazon_store/cart.php?add=XX&asin=XXX and open the cart in a modal window for example....

regards

rfay’s picture

Category: support » feature

I don't think there's any way to add to cart via a GET URL. It wouldn't be a bad idea. It also wouldn't be hard to provide views integration for Amazon Store, but there's none at this point.

F.G’s picture

thanks rfay,

the add to cart should be a sub module for drupal amazon, with only one ajax button.
default text : add to cart and after a selection, added.

So i let go, it's hard for my knowledge.

willvincent’s picture

Assigned: Unassigned » willvincent
willvincent’s picture

Issue summary: View changes

mistake

rj’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new9.58 KB

The attached patch includes a views handler that adds the add-to-cart form as a field.