News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

"add to cart" option not shown

Started by t_zaharia, December 31, 2012, 12:34:29 PM

Previous topic - Next topic

t_zaharia

Hello!
I' m new to virtuemart and to the forum, so firstly "Hi!"
We have installed Joomla! 2.5.8 and Virtuemart 2.0.14. Option "add to cart" is not shown in the product details page...
In default.php (joomla/components/com_virtuemart/views/productdetails/tmpl), there is the following code:


<?php
// Add To Cart Button
// if (!empty($this->product->prices) and !empty($this->product->images[0]) and $this->product->images[0]->file_is_downloadable==0 ) {
if (!VmConfig::get('use_as_catalog', 0) and !empty($this->product->prices['salesPrice'])) {
echo $this->loadTemplate('addtocart');
} // Add To Cart Button END
?>

If I uncomment the if-clause, nothing is shown at all......

Τί μπορεί να συμβαίνει? Φταίει κάτι στο virtuemart ή στο template του joomla?

Thanks in advance and Happy New Year!
Theoni
:)