Post by PlusCybernet » Thu Nov 14, 2013 11:19 pm

I have multiple attributes for a product, and wish to show one of attribute out of the attribute table ... means after product title ... how can I do it?

Example: I have Author, Publisher and Date as attributes to a product.

So, I wish to show Author attribute after product title ...

User avatar
Active Member

Posts

Joined
Sun Dec 25, 2011 12:01 pm

Post by solution2u » Thu Nov 14, 2013 11:31 pm

I think this extension is a good start.
http://www.opencart.com/index.php?route ... on_id=9716

You just need to modify it to show attribute you want. Good luck!

>> Beautiful Opencart Responsive Theme : $35 - $50

>> Hire me for Opencart instant support


Active Member

Posts

Joined
Sun Sep 23, 2012 2:36 pm

Post by PlusCybernet » Fri Nov 15, 2013 1:09 am

In this extension, any clue where should I define the name of that particular group & attribute name?

Code: Select all

<?php foreach ($attribute_groups as $attribute_group) { ?>
      <tbody>
        <?php foreach ($attribute_group['attribute'] as $attribute) { ?>
        <div>
          <?php echo "<strong>",$attribute['name'], ":\n</strong>"; ?>
          <?php echo $attribute['text']; ?>
	</div>
        
        <?php } ?>

User avatar
Active Member

Posts

Joined
Sun Dec 25, 2011 12:01 pm
Who is online

Users browsing this forum: No registered users and 309 guests