The add-to-cart form on the flypage is a pretty complicated template. Many advanced features of VirtueMart, such as child product, advanced attributes, and custom attributes are related to this form. You probably recall we have a template of the same name in the browse templates. The two templates are different in a number of ways. The major difference is that the product listing page will have several add-to-cart forms on the same page while there will only be one add-to-cart form in the product details page. Several forms on the same page with potentially very complex child products and attribute settings caused the VirtueMart development team to use a separate template for the product listing and the product details.
Within the includes
subdirectory of the product details template group, we can see many template files with names starting with addtocart
. Obviously, these files all relate to the add-to-cart form. The remaining two start with quantity_box
. This...