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
templates/beez_20/html/com_virtuemart/category/default.php

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

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

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

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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