VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: z-analysts on September 10, 2015, 21:30:50 PM

Title: sublayouts/products.php - Is there a better way?
Post by: z-analysts on September 10, 2015, 21:30:50 PM
Hi,

I want to have a product summary display that has the product image thumbnail on the left and product name, price and add to cart bar on the right. To achieve what I have so far I created an override for sublayouts/products that put the image thumbnail in a div width = 30% and the product info in a div width = 70%, float = right and margin-top = -100px. While it works I am looking for recommendations for a better way.

Please take a look at http://gamersedge.co.za/index.php/spirits and respond with your recommendations.

Thank you!

VM 3.0.8
Title: Re: sublayouts/products.php - Is there a better way?
Post by: GJC Web Design on September 11, 2015, 00:07:52 AM
float both left and loose the weird -100 margin

but your really handicapping yourself with an articrap template

also why only 900px wide?