Author Topic: Custom fields on separate lines in cart  (Read 2295 times)

Ziggo

  • Beginner
  • *
  • Posts: 6
Custom fields on separate lines in cart
« on: May 07, 2012, 12:29:36 pm »
Hello,

I hope someone can help me with the following issue.
I've add some custom fields to my products. This is working fine. But all the input from this fields are shown on one single line in the cart. I want the input from every custom field on a new line.

For example I have the following fields: size and color.
Now it is shown in the cart as: size L color red
I want it to be shown like:
size L
color red

I hope someone can help me.

JtouchMobile.com

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 96
  • Mobile Solutions for VirtueMart 2
    • JtouchMobile.com
Re: Custom fields on separate lines in cart
« Reply #1 on: May 08, 2012, 10:56:35 am »
Hi,

Are you talking about cart MODULE or cart PAGE?

;)
Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

Ziggo

  • Beginner
  • *
  • Posts: 6
Re: Custom fields on separate lines in cart
« Reply #2 on: May 08, 2012, 11:37:14 am »
I'm talking about both.
But I think the module shows a copy of the cart page. I suspect when this is changed in the cart page, it will also be changed in the module.

flexiblewebdesign

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 42
    • Virtuemart Templates
Re: Custom fields on separate lines in cart
« Reply #3 on: May 08, 2012, 15:06:37 pm »
module and cart have different CSS class names.

You can try to add these CSS rules to your
/components/com_virtuemart/assets/css/vmsite-ltr.css

.vm-customfield-cart span {
display:block;
}

for cart, and

.vm-customfield-mod span {
display:block;
}

for module.
Responsive Joomla Virtuemart Template - SportMart
https://www.flexiblewebdesign.com/Joomla-Virtuemart-Templates/SportMart

The New Virtuemart 3 Template - CleanMart
https://www.flexiblewebdesign.com/Virtuemart-Templates/CleanMart

Ziggo

  • Beginner
  • *
  • Posts: 6
Re: Custom fields on separate lines in cart
« Reply #4 on: May 08, 2012, 20:31:18 pm »
Thank you for your answer. I add the following line in vmsite-ltr.css and it works great!

.vm-customfield-cart span, .vm-customfield-mod span {display:block;}