however, "10 ЛУЧШИХ ТОВАРОВ" and "РЕКОМЕНДУЕМЫЕ ТОВАРЫ" and category view (http://aleksandrshevchenko.org/store/categories/sermons) - there is no add to cart function without having to enter into the product details.
I looked for the code for over 45 min and can't find it. I understand that "popular items" is NSP GK4 - but i really love that functionality and think it should be part of the gavick esport template for all items in VM.
What would be the code that find/replace/add into the /templates/gk_esport/html/com_virtuemart/category/default.php for the category view to add this funtion (i don't know the file i'd edit for the VM popular/latest/recommended)
I found this in file /modules/mod_news_pro_gk4/tmpl/layout.parts.php
- Code: Select all
if($config['vm_add_to_cart'] == 1) {
$code = '';
$code .= '<form method="post" class="product" action="index.php">';
$code .= '<div class="addtocart-bar">';
$code .= '<span class="quantity-box" style="display: none">
<input type="text" class="quantity-input" name="quantity[]" value="1" />
</span>';
$button_lbl = JText::_('COM_VIRTUEMART_CART_ADD_TO');
$button_cls = '';
$stockhandle = VmConfig::get('stockhandle','none');
$code .= '<span class="addtocart-button">
<input type="submit" name="addtocart" class="addtocart-button" value="'.$button_lbl.'" title="'.$button_lbl.'" /></span>';
i tried adding it to /templates/gk_esport/html/com_virtuemart/category/default.php - but it's not working.