VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Ricardo78 on December 15, 2015, 20:38:26 PM

Title: Change the view of a custom string field in cart view
Post by: Ricardo78 on December 15, 2015, 20:38:26 PM
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
Title: Re: Change the view of a custom string field in cart view
Post by: PRO on December 15, 2015, 22:26:10 PM
do you have firebug?

style the css,
Title: Re: Change the view of a custom string field in cart view
Post by: Milbo on December 16, 2015, 00:49:01 AM
you may find something in the manual http://docs.virtuemart.net/
Title: Re: Change the view of a custom string field in cart view
Post by: Ricardo78 on December 19, 2015, 18:25:53 PM
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.
Title: Re: Change the view of a custom string field in cart view
Post by: Ricardo78 on December 22, 2015, 10:22:34 AM
Hi Milbo,
please, can you help me?

Thanks a lot...

Ricardo.
Title: Re: Change the view of a custom string field in cart view
Post by: PRO on December 22, 2015, 13:32:38 PM
post a link to your site with custom field string, then I will look
Title: Re: Change the view of a custom string field in cart view
Post by: Ricardo78 on December 22, 2015, 14:12:34 PM
Thank you PRO, this is the link: www.lyddawear.com
Title: Re: Change the view of a custom string field in cart view
Post by: PRO on December 22, 2015, 19:07:21 PM
I'm sorry, i looked into this, and dont know of a way to separate out the title
Title: Re: Change the view of a custom string field in cart view
Post by: Ricardo78 on December 30, 2015, 09:00:45 AM
Hi,

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


Thanks a lot,

Ricardo.
Title: Re: Change the view of a custom string field in cart view
Post by: PRO on January 01, 2016, 23:32:16 PM
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
Title: Re: Change the view of a custom string field in cart view
Post by: Ricardo78 on January 03, 2016, 13:09:07 PM
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.
Title: Re: Change the view of a custom string field in cart view
Post by: PRO on January 03, 2016, 16:20:21 PM
why not change the title to the description?
Title: Re: Change the view of a custom string field in cart view
Post by: Ricardo78 on January 03, 2016, 17:19:10 PM
Becuase my customer has setup some one hundred custome fields...
Title: Re: Change the view of a custom string field in cart view
Post by: Ricardo78 on January 12, 2016, 18:02:37 PM
Hi, there is not solution?
Title: Re: Change the view of a custom string field in cart view
Post by: PRO on January 12, 2016, 21:08:33 PM
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
Title: Re: Change the view of a custom string field in cart view
Post by: jenkinhill on January 12, 2016, 23:56:11 PM
Or to change a text string on the fly, no matter where it is, you can use Repeplacer.  https://www.nonumber.nl/extensions/rereplacer