VirtueMart 2 + 3 > Product creation

Custom Field Types (Explained)

<< < (24/24)

be:
Hi,

I used the layout position to show my customfield where I need it.
But now I have a field from the field-type "Allgemeine Variable für Produktvarianten" (i don't know how this is called in english) and use this as a list width different standardvalues.
I added a screenshot with all customfield values.

My problem now is if i want to output the customfield in that way:

--- Code: ---$custom_title = null;
    foreach ($this->product->customfieldsSorted[Ausgabe] as $field) { ?>
            <?php if ($field->display) {
                if ($field->custom_title != $custom_title) { ?>
                    <span class="product-fields-title" ><?php echo JText::_($field->custom_title); ?></span>
                <?php } ?>
                <span class="product-field-display"><?php echo JText::_($field->display); ?></span>
            <?php } ?>
    <?php }

--- End code ---

The field will not be shown. What have I to change to get this work?

Cheers

PRO:

--- Quote from: be on March 13, 2017, 18:37:12 pm ---Hi,

I used the layout position to show my customfield where I need it.
But now I have a field from the field-type "Allgemeine Variable für Produktvarianten" (i don't know how this is called in english) and use this as a list width different standardvalues.
I added a screenshot with all customfield values.

My problem now is if i want to output the customfield in that way:

--- Code: ---$custom_title = null;
    foreach ($this->product->customfieldsSorted[Ausgabe] as $field) { ?>
            <?php if ($field->display) {
                if ($field->custom_title != $custom_title) { ?>
                    <span class="product-fields-title" ><?php echo JText::_($field->custom_title); ?></span>
                <?php } ?>
                <span class="product-field-display"><?php echo JText::_($field->display); ?></span>
            <?php } ?>
    <?php }

--- End code ---

The field will not be shown. What have I to change to get this work?

Cheers

--- End quote ---


what vm version,  and where are you trying to have it display?

Navigation

[0] Message Index

[*] Previous page

Go to full version