Major update to this mod. I now have a list of products working with a single add to cart button.
(Please see screenshot below.)
This has been tested with
- Joomla 1.0.8
- VirtueMart 1.0.3
The altered files are
- /classes/ps_cart.php
- /classes/ps_product.attribute.php
- /html/shop.browse.php
- /html/shop.product_details.php
- /html/basket.php
- /html/shop.cart.php
The modification relies on child products but retains all the functionality if no child products exist.
The mod changes the way the cart is displayed, it's not!! Not until you select view cart.
Everytime the add to cart button is clicked the items are updated and the quantity fields are updated from the cart contents. You then stay on your current product page not the cart page.
to update the contents just alter the quantity fields.
If using child products, only the parent product page is displayed, which means descriptions, related products etc are taken from the parent.
no need to duplicate descriptions for like products.
The list now has only 1 add to cart button.
The attached file contains both the modified files and a patch file for those that prefer it.
To install just overwrite the files in /administrator/components/com_virtuemart
PLEASE BACKUP YOUR FILES FIRST
SAVES HEADACHES IF SOMETHING GOES WRONG
[/size][/size]
The modified mini cart can be found here
http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=16326.0
New version for 1.0.4 can be found here
http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=15697.msg37613#msg37613Mark
[attachment cleanup by admin]