Shop Cart Module

Ecommerce design Joomla template to start your online business with VirtueMart and additional eshop features.
GK User
Sat Apr 27, 2013 3:59 am
I want to use K2 store and uninstalled Virtuenart.

I activaded the "K2 Cart" module in the "cart" position.

a) The portion "Go to Checkout" points to Virtuemart.(index.php/component/virtuemart/?view=cart) How can I change this link?
b) The counter does not work. How can I eliminate the counter?

Best
HP
User avatar
Fresh Boarder

GK User
Mon Apr 29, 2013 7:52 am
Hi,
please go to layouts/blocks/logo.php and find:
Code: Select all
<a href="index.php?option=com_virtuemart&view=cart" class="button"><?php echo JText::_('TPL_GK_LANG_GO_TO_CHECKOUT'); ?></a>

and change href attribute to k2 cart.
To remove counter please try add to override.css
Code: Select all
#gkCartBtn #gkItems {
display:none !important;
}

and remember to enable override.css option in template settings.
User avatar
Gold Boarder

GK User
Tue Apr 30, 2013 2:48 pm
Thanks a lot Konrad. I appreciate your help.

The change worked well.

One more question:
Instead of eliminating the counter, what would be the code changes to make the counter working with K2 store?

Please send me same level instructions for the change.

Best Regards
Hanspeter Tschupp
User avatar
Fresh Boarder

GK User
Tue Apr 30, 2013 2:51 pm
If you would like adapt counter to k2 you have to edit javascript code for it located in js/gk.scripts.js
User avatar
Gold Boarder

GK User
Tue Apr 30, 2013 5:02 pm
Thank you!
I found the file under templates/gk_yourshop/js/gk.scripts.js

when I look through the js scripts on this page I assume it is the following part:
}
// cart checker
if($('gkCartBtn')) {
var gkvalue = $$('#gkCart .total_products');
if(gkvalue[0]) {
var numb = gkvalue.get('text').toString().match(/\d{1,}/g);
document.id('gkItems').getElement('strong').innerHTML = '';
document.id('gkItems').getElement('strong').innerHTML = (numb != null) ? numb[0] : 0;
} else {
document.id('gkItems').getElement('strong').innerHTML = '';
document.id('gkItems').getElement('strong').innerHTML = '0';
}

(function() {
var gkvalue = $$('#gkCart .total_products');
if(gkvalue[0]) {
var numb = gkvalue.get('text').toString().match(/\d{1,}/g);
document.id('gkItems').getElement('strong').innerHTML = '';
document.id('gkItems').getElement('strong').innerHTML = (numb != null) ? numb[0] : 0;
}


Where exactly and how would I have to change? Any help is appreciated.
User avatar
Fresh Boarder


cron