Wednesday, 11 August 2010 12:33

Show Attributes on Browse Page

Written by 
Rate this item
(1 Vote)
To show Simple Attributes on the browse page, apply the following changes to Virtuemart:

After line 16 in addtocart_form.tpl.php (browse template, includes folder) add:
<?php echo $ps_product_attribute->list_advanced_attribute($product_id);?><br />

This shows the combobox for your simple attributes (for example: a color picker)


 

Around line 410 in shop.browse.php (administrator component, html folder) comment/remove the following bit:

&& !ps_product::product_has_attributes( $db_browse->f('product_id'), true )
leave the rest of the if statement alive
this shows the add to cart button, that is normally hidden when you have simple attributes set up.


Read 666 times
Administrator

Website: www.concomwebdesign.co.uk Email This e-mail address is being protected from spambots. You need JavaScript enabled to view it

1 comment

  • Comment Link mindsurfer Thursday, 26 May 2011 21:47 posted by mindsurfer

    exelent, thank you man

Leave a comment

Who's Online

We have 6 guests online