Adding short description as an excerpt to the TD Composer Woo Product Block

Posted in: Newspaper
Post count: 24

We already added the code that we need to the functions.php for the displaying of the short description like an excerpt for the woocommerce products.

https://snipboard.io/R1D9Gn.jpg

We would like to implement it to show on the TD composer Woo Product Block. Between the title and the price. Something similar to the image below. Please lead us in the right direction.

https://snipboard.io/CGkH5T.jpg

Thank you!

Post count: 24

You also should consider in adding this to the Woo Product Block as an option in a future update for the TD composer. Adding little stuff like this makes such a difference. Your theme already proves as a game changer in woocommerce.

Post count: 27744

Hello,

You can find the file for product block in this path => wp-content/plugins/td-woo/modules/td_woo_product_module.php and like a suggestion, you can add this line of code -> https://i.imgur.com/UjJJC1i.png
I informed our developers about this request, to add it in the coming updates.

Thank you!

Post count: 121

???

Post count: 121

Do you have a quick solution in limiting the characters of the short description?

php echo $this-> product->get_short_description()
, 0,200 ); echo ‘…’

???

Thank you

Post count: 121

The code from this image wasn’t even enabled and the code you gave us automatically showed up in the woo product block. So I figured that we can limit the characters in the php tag within the actual woo product block code.

https://snipboard.io/R1D9Gn.jpg

Post count: 121

so in other words I’m assuming we can adding the limit characters in the code you provided below in the image you gave us.

https://imgur.com/UjJJC1i

Post count: 121

Hello????

Post count: 27744

Hello,

Please remove the above code and try this code https://pastebin.com/ZNepnDKG
You can change the value (0, x).
Let me know the results.

Also, at the moment the support is a bit crowded.

Thank you for your understanding!

Post count: 121

Anamaria you rock!!!

It works perfect!

Thank you!

Post count: 121

the new newspaper updated deleted everything uggggghhhh!

Post count: 27744

Hello,

Unfortunately, the files will be overwritten when you make the update, so you need to add them again.

Thank you for understanding!

Post count: 24

So I just recently updated to the latest version and RE-UPDATED manually the code in the correct files and it still doesn’t work now ;-(

Post count: 24

The latest update also messed up the cloud templates plugin. It doesn’t stay activated.

Help!!!

Post count: 27744

Hello,

In the next update will be this option on the Woo Product Block.
Also, I added the code in the file and for me works https://i.imgur.com/S77jTQy.png

Thank you!

Viewing 15 posts - 1 through 15 (of 15 total)
The forum ‘Newspaper’ is closed to new topics and replies.