• Resolved newshop

    (@newshop)


    Hello,
    I would like to show the product’s attributes (“Size: M”) under the product name.
    You recommend to add this code to the custom template:
    <?php if(!empty($item['product'])) $this->product_attribute('Attribute name', $item['product']); ?>
    But if I get it right, I’ll first have to replace ‘Attribute name’ by the attribute key like “pa_size”. But I want it to show all available attributes automatically without specifying specific ones.

    Is there a way to achieve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hi @newshop

    You might need to use the product object function get_attributes(), and after that loop through them with a foreach, calling the code you posted for each attribute name. Unfortunately this falls into the custom development territory and not into the free plugin support.

    Hope that helps!

    Thread Starter newshop

    (@newshop)

    Thanks, but it seams that the solution is simply
    <span class="item-meta"><?php echo $item['meta']; ?></span>

    Hi,

    I am using this plugin to generate automated invoices. But unfortunately 2 of my checkout form fields i.e. “Alternate Phone No” and “Landmark” are going to missed in the invoice.

    Please help me. [sabziadda.com]

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hello @sunnylife,

    Could you please create a new topic with your question? This way we keep the forum organized and avoid annoy @newshop with email notifications unrelated to their query.

    I’ll answer you there! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add attributes dynamically’ is closed to new replies.