News:

Support the VirtueMart project and become a member

Main Menu

Change the view of a custom string field in cart view

Started by Ricardo78, December 15, 2015, 20:38:26 PM

Previous topic - Next topic

Ricardo78

Hello everyone, I have a need, I would change the view of the title of the custom field of type string in the basket, setting instead of the database field the title of the custom field the database field the description of the custom field.

I looked through your files but I can not find the string.

Does anyone know how I can do?

Thanks so much

PRO


Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Ricardo78

Thank you guys, I can't find where I can change this result in the docs...

I would like to show not the title of custom filed (type string) but the text are writed in them description...

Thanks a lot...

Ricardo.

Ricardo78

Hi Milbo,
please, can you help me?

Thanks a lot...

Ricardo.

PRO

post a link to your site with custom field string, then I will look

Ricardo78


PRO

I'm sorry, i looked into this, and dont know of a way to separate out the title

Ricardo78

Hi,

I ask to developers, there's a way to solve my problem?


Thanks a lot,

Ricardo.

PRO

The only way I was able to do it was



views/cart/default_pricelist.php

change this
echo $this->customfieldsModel->CustomsFieldCartDisplay ($prow) ;

to this
echo str_replace( 'Warranty', '', $this->customfieldsModel->CustomsFieldCartDisplay ($prow) );


you have to change the text "Warranty" to the text, you DO NOT want to display

Ricardo78

Hi at all and happy new year!

Pro thanks a lot, sorry if I don't speak english very well (I'm italian...) but I don't need to hide a text but I need to change the text are viewed, from the title of custom field to them description, for example I've a custom field type String titled "Variant" and in this description I've write "Choose this" (for example), I would like to show "Chose this" in the cart and not "Variant".

Can I to do this?

Thanks a lot again...
Ricardo.

PRO


Ricardo78

Becuase my customer has setup some one hundred custome fields...

Ricardo78


PRO

Quote from: Ricardo78 on January 03, 2016, 17:19:10 PM
Becuase my customer has setup some one hundred custome fields...

sorry I do not know how to help anymore.

I know you could change all the titles to descs with csv improved. Or csv file into the database