VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: isengart on November 20, 2015, 13:10:31 PM

Title: Insert buy button inside custom component
Post by: isengart on November 20, 2015, 13:10:31 PM
Hello , is there any way to dynamically create a product and add a buy button inside a custom component (something like shortcode) ?
Title: Re: Insert buy button inside custom component
Post by: balai on November 20, 2015, 13:28:33 PM
The question is a bit abstract

Just putting a button will make no sense.
A form should exist with the proper fields and also the corresponding scripts that call the ajax request for the add-to-cart functionality.

Have a look at the source code inside a product and check the source code
Title: Re: Insert buy button inside custom component
Post by: GJC Web Design on November 20, 2015, 14:27:08 PM
although we recently discovered this->  http://forum.virtuemart.net/index.php?topic=132011.0
Title: Re: Insert buy button inside custom component
Post by: Milbo on November 22, 2015, 18:40:08 PM
Just use this plugin

http://extensions.virtuemart.net/products/products-anywhere-detail