Skip to main content

Support Policy

We only provide official support for Solidres's subscribers, all subscribers can request support by using forum or support ticket system. For more information please check our Support Policy at www.solidres.com/support-policy

To add diet

More
1 year 4 months 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

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

More
1 year 4 months 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 year 4 months 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

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

More
1 year 4 months 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
1 year 4 months 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

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

More
1 year 4 months 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

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