Template design - Access to selection parameters
1 year 3 months ago - 1 year 3 months ago #367297
by P.M.
Template design - Access to selection parameters was created by P.M.
-- HikaShop version -- : 5.1.6
-- HikaSerial version -- : 5.1.0
-- Joomla version -- : 5.3.0
-- PHP version -- : 8.4.6
-- Browser(s) name and version -- : FF 138.0.4
Hello,
I've just got this far with the design of our admission ticket:
In the ticket itself, you can see the labels {product.location.title()} and {product.seating}. I want to use these labels to access selection parameters, but these are not resolved. For {product.seating}, for example, only the index 3 is displayed if the () is omitted from the image. How can I access the title of selection parameters?
Thanks.
-- HikaSerial version -- : 5.1.0
-- Joomla version -- : 5.3.0
-- PHP version -- : 8.4.6
-- Browser(s) name and version -- : FF 138.0.4
Hello,
I've just got this far with the design of our admission ticket:
In the ticket itself, you can see the labels {product.location.title()} and {product.seating}. I want to use these labels to access selection parameters, but these are not resolved. For {product.seating}, for example, only the index 3 is displayed if the () is omitted from the image. How can I access the title of selection parameters?
Thanks.
Last edit: 1 year 3 months ago by P.M..
Please Log in or Create an account to join the conversation.
1 year 3 months ago #367299
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Template design - Access to selection parameters
Hello,
Parenthesis are not handled by the plugin, it won't recognize it.
Please provide details regarding your custom fields, right now I don't understand what data you're dealing with so I can't give you any useful advice.
Regards,
Parenthesis are not handled by the plugin, it won't recognize it.
Please provide details regarding your custom fields, right now I don't understand what data you're dealing with so I can't give you any useful advice.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
1 year 3 months ago - 1 year 3 months ago #367366
by P.M.
Replied by P.M. on topic Template design - Access to selection parameters
Hello,
Okay, I will try to explain which data I want to access:
The data of a selection parameter should be displayed on the tickets. Let me explain how I created the data in the shop.
I have created a data field for the product called "location". This field is a simple list field:
Depending on what I select in the data field in the product, I can access the "value" in the example - in this case "jahnhalle" with the dynamic text {product.location}. then I get "jahnhalle" displayed on the ticket. but we don't want to display the value, but the title on the card. in this case that would be "Kulturschuppen ...".
I have already tried to read the title with the dynamic text {field.field_value(product.location)}, but unfortunately this did not work.
So my question is: How can I display the title of a list field?
Okay, I will try to explain which data I want to access:
The data of a selection parameter should be displayed on the tickets. Let me explain how I created the data in the shop.
I have created a data field for the product called "location". This field is a simple list field:
Depending on what I select in the data field in the product, I can access the "value" in the example - in this case "jahnhalle" with the dynamic text {product.location}. then I get "jahnhalle" displayed on the ticket. but we don't want to display the value, but the title on the card. in this case that would be "Kulturschuppen ...".
I have already tried to read the title with the dynamic text {field.field_value(product.location)}, but unfortunately this did not work.
So my question is: How can I display the title of a list field?
Last edit: 1 year 3 months ago by P.M..
Please Log in or Create an account to join the conversation.
1 year 3 months ago #367407
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Template design - Access to selection parameters
Hello,
I'll see if loading the custom fields could be possible within the plugin ; but for the moment I'm performing tests to see if using translations could be an alternative solution (and faster to add withing the plugin).
In order to test my current solution I would need a screenshot of your PDF Serial configuration to see how you display that field for the moment.
Regards,
I'll see if loading the custom fields could be possible within the plugin ; but for the moment I'm performing tests to see if using translations could be an alternative solution (and faster to add withing the plugin).
In order to test my current solution I would need a screenshot of your PDF Serial configuration to see how you display that field for the moment.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: P.M.
Please Log in or Create an account to join the conversation.
1 year 3 months ago - 1 year 3 months ago #367409
by P.M.
Replied by P.M. on topic Template design - Access to selection parameters
Last edit: 1 year 3 months ago by P.M..
Please Log in or Create an account to join the conversation.
1 year 3 months ago - 1 year 3 months ago #367412
by P.M.
Replied by P.M. on topic Template design - Access to selection parameters
Last edit: 1 year 3 months ago by P.M..
Please Log in or Create an account to join the conversation.
1 year 3 months ago #367489
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Template design - Access to selection parameters
Hello,
We're working on the improvement for the AttachSerial and PdfSerial plugins.
By using the tag "product.field.your_custom_field" it will load the product custom field, decode the values and use the corresponded entry of the product field value.
The feature/improvement should be ready for the next release.
Regards,
We're working on the improvement for the AttachSerial and PdfSerial plugins.
By using the tag "product.field.your_custom_field" it will load the product custom field, decode the values and use the corresponded entry of the product field value.
The feature/improvement should be ready for the next release.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
1 year 2 weeks ago - 1 year 2 weeks ago #368385
by P.M.
Replied by P.M. on topic Template design - Access to selection parameters
Hello.
Perfect. I have now installed the new version with the hotfix 6.0.0.
The retrieval of the tag "product.field.your_custom_field" works.
Thank you !
Perfect. I have now installed the new version with the hotfix 6.0.0.
The retrieval of the tag "product.field.your_custom_field" works.
Thank you !
Last edit: 1 year 2 weeks ago by P.M..
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.258 seconds