add to cart in browse page

Ecommerce design Joomla template to start your online business with VirtueMart and additional eshop features.
GK User
Thu Jun 23, 2011 11:32 am
Hi,

It would be possible to add add to cart to the items showend on the browse page but I don't know how that works with code. And to remove the short desctiptionat that place.

Who knows how this works?

Regards,
Ronnie
User avatar
Expert Boarder

GK User
Thu Jun 23, 2011 11:52 am
Hi

Let me check and i get back to you ;)
User avatar
Platinum Boarder

GK User
Wed Jul 06, 2011 8:41 am
gk_browse:


<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );



mm_showMyFileName(__FILE__);



?>

<div class="browseProductContainer"> <a href="<?php echo $product_flypage ?>" class="gk_vm_product_image" title="<?php echo $product_name ?>"> <?php echo ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?> </a>
<h2> <a href="<?php echo $product_flypage ?>"><?php echo $product_name ?></a> </h2>
<p> <?php echo $product_price ?></p>

<p class="browseProductrating"> <?php echo $product_rating ?> </p>
<p> <a class="button_details" href="<?php echo $product_flypage ?>"><?php echo $product_details ?>...</a> </p><br style="clear:both;" />
</div>


I have tried the code from the other browse_1 etc. etc. but then the whole page collapse. It's handy to have the add to cart button there as well for fast shopping clients which don't want to read or see the flypage of the single product.

Does anyone know how to add the add to cart button in gk-browse?
User avatar
Expert Boarder

GK User
Sun Jun 03, 2012 9:26 pm
Forum doesn't give me the answer, but I find it myself :-)
Add this to gk_browse:
Code: Select all
<p> <?php echo $form_addtocart ?> </p>

You can use the attachment which has been modified

gk_browse.zip
User avatar
Expert Boarder


cron