Author Topic: sublayouts/products.php - Is there a better way?  (Read 1056 times)

z-analysts

  • Jr. Member
  • **
  • Posts: 162
sublayouts/products.php - Is there a better way?
« 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10448
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: sublayouts/products.php - Is there a better way?
« Reply #1 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?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation