Jump to content

Accessing the Commerce product description


Recommended Posts

I am trying to generate a shorter preview text for a Commerce package in a plugin template, but I can’t figure it out. 

Doing a strip_tags on $item->description has no effect, since the product description is a translatable item. 
And $item->truncated(), which I see being used in some theme templates doesn’t seem to work from the plugin. (Call to undefined method IPS\nexus\Package\Product::truncated()) 

Anyone got any ideas?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...