Custom field display

  • Posts: 20
  • Thank you received: 3
4 years 3 months ago #326308

Hello,
I have a custom field but i would like to change the display so that the number is closed to the label and the symbol € after the number.
Can you help ?
Thanks !!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 3 months ago #326315

Hi,

You should be able to change that with a bit of CSS. What CSS to use will depend on the CSS already added to the page by your template so I can say what it would be exactly.
Could you provide the URL of that page so that we can check the CSS there ? Then, we should be able to tell you what you can add where.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 3
4 years 3 months ago #326341

sure here it is

This message contains confidential information


Thanks a lot !

Last edit: 4 years 3 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 4816
  • Thank you received: 654
  • MODERATOR
4 years 3 months ago #326358

Hello,

Thanks for your element, from what I see, I have some suggestion, follow me step by step :
Custom field configuration :
1. Modify your label to have only "** dont eco-participation(en"
2. Then, like you do now in product backend only number 0.3

=> Result so far :
"** dont eco-participation(en 0.3"

Css customization :
We will complete this with some css :
1. Have a look on this tutorial , to see how to add custom css to your frontend file.
2. Use this command :

tr.hikashop_product_custom_ecopart_line span.hikashop_product_custom_value:after {
    content: "€)";
}
3. To suppress the space between the label & the value, use this css code :
tr.hikashop_product_custom_ecopart_line td {
    float: left;
    display: inline-block;
}

Hope this will meet your expectations.
Regards

Last edit: 4 years 3 months ago by Philip.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum