Template design - Access to selection parameters

  • Posts: 33
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
1 week 4 days ago #367297

-- 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.

Last edit: 1 week 1 day ago by michael.koch@breisig.live.

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

  • Posts: 26251
  • Thank you received: 4039
  • MODERATOR
1 week 3 days ago #367299

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,


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.

  • Posts: 33
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
1 week 1 day ago #367366

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?


Last edit: 1 week 1 day ago by michael.koch@breisig.live.

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

  • Posts: 26251
  • Thank you received: 4039
  • MODERATOR
1 week 4 hours ago #367407

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,


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: michael.koch@breisig.live

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

  • Posts: 33
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
1 week 52 minutes ago #367409

Hello :wuhuu: :dumm:

Here is the current configuration (not yet finished, some dyn. text is still missing):






Here is the PDF file:

This browser does not support PDFs. Please download the PDF to view it: Download PDF




btw: An export option for the configuration would be cool :)

THANK YOU !

Attachments:
Last edit: 1 week 28 minutes ago by michael.koch@breisig.live.

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

  • Posts: 33
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
1 week 30 minutes ago #367412

here are the fields:

product.location





product.seating


Last edit: 1 week 29 minutes ago by michael.koch@breisig.live.

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

  • Posts: 26251
  • Thank you received: 4039
  • MODERATOR
2 days 4 hours ago #367489

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,


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.

Moderators: Obsidev
Time to create page: 0.067 seconds
Powered by Kunena Forum