Results 1 to 3 of 3

Thread: generateAttribute HTML Output

  1. #1
    New user
    Join Date
    06-14-16.
    Posts
    26

    Default generateAttribute HTML Output

    In the backend I've made some product attributes as Checkbox button menu and I've put the values using the Options Manager.

    On the frontend if I use the generateAttribute('field_name') to display the value.

    How it's possible to insert HTML like list (ul) or paragraphe (p) in the Output ?

    Thanks!

  2. #2
    New user
    Join Date
    01-10-21.
    Posts
    27

    Default

    Hi! Did you ever get an answer?? I'm curious as to how to list all attributes on the frontend, without manually entering them by name in the template.

  3. #3
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    498

    Default

    Use
    PHP Code:
    <?php
    // template code
    dump($this->arrData);
    within your template. This will show you all available variables. With a PHP loop you then can build up your wanted lists.
    Last edited by Andreas; 03/29/2022 at 16:41.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •