To add diet

More
1 month 5 days ago #21009 by Simonoviq
To add diet was created by Simonoviq
Hello,

How to add or change the type of food in Experiences, on Diet?

Thank you,
Andrija
Attachments:

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

More
1 month 4 days ago #21010 by solidres
Replied by solidres on topic To add diet
Hi,

You can alter the list here:

/plugins/solidres/experience/layouts/experience/bookform/activity.php

Regards,

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

More
1 month 2 days ago #21014 by Simonoviq
Replied by Simonoviq on topic To add diet
Hallo,
I wanted to add the option to choose fish too, so I did it my way, but it doesn't appear in frontend.

Thank you,
Andrija
Attachments:

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

More
1 month 1 day ago #21015 by solidres
Replied by solidres on topic To add diet
Hi,

Your custom code is not correct, you must copy the whole <option></option> tag to make it work properly:

<option<?php echo isset($data[$i]) && $data[$i] == '3' ? ' selected' : ''; ?>
value="3"><?php echo Text::_('SR_EXP_DIET_FISH'); ?></option>

We would consider adding this option into the next release as well.

Regards,

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

More
4 weeks 20 hours ago #21018 by Simonoviq
Replied by Simonoviq on topic To add diet
Hello,
I changed it, but it's not right, again.
I tried also putting Fish instead of Vegan, but it appears SR_EXP_DIET_FISH (Capture-2).

Thank you,
Andrija
Attachments:

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

More
3 weeks 6 days ago #21021 by solidres
Replied by solidres on topic To add diet
Hi,

You must also add your SR_EXP_DIET_FISH into the Experience language folder as well to make it translatable.

Regards,

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

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?