News:

Looking for documentation? Take a look on our wiki

Main Menu

Custom fields on separate lines in cart

Started by Ziggo, May 07, 2012, 12:29:36 PM

Previous topic - Next topic

Ziggo

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

Hi,

Are you talking about cart MODULE or cart PAGE?

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

Ziggo

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

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

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;}