Add to Cart in category page – virtuemart

Mrinmoy Dalabar

browse to components/com_virtuemart/views/category/tmpl/default.php and copy this file to the category folder you just made so the path will be

Open this file and paste the following code in around line 309 just after the below code.

<?php // Product Details Button
  echo JHTML::link ($product->link, JText::_ ('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name, 'class' => 'product-details'));?>

Paste in this code:

empty($product->prices)) {?>
empty($product->customfieldsCart)) { ?>
customfieldsCart as $field) { ?>
field_type ?>"> custom_title) ?> custom_tip) echo JHTML::tooltip($field->custom_tip, JText::_($field->custom_title), 'tooltip.png'); ?> display ?> custom_field_desc ?>
<?php } ?> </div> <?php…

View original post 299 more words

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s