Post by bronts » Tue Jul 10, 2018 8:05 am

Hello fellow Opencarters :-)

I need of your advice and support please.
The module https://www.opencart.com/index.php?rout ... load_id=55 I recently installed is working as it should be but I am personally not happy with how certain aspects of the event pages look and would like to edit it.

The shop in questions: www.redraglyn.com and the calendar is in the left column.
When clicking on, for example July 19 it brings up...
www.redraglyn.com/index.php?route=infor ... 2018-07-19
This is a condensed version of the event description and i don't like how...
1. customers don't know you have the click the event name to bring up the full description
2. It's squishy, with some spaces removed
So I would like to make the description show in full.

I have asked the developer for assistance and have only been emailed the links to the files to edit.
catalog\view\theme\default\template\information\event.twig
catalog\view\theme\default\template\information\event_sub.twig
catalog\view\theme\default\template\information\ events.twig

In catalog\view\theme\default\template\information\ events.twig
I found on line 36: <p>{{ v.shortDesc }}</p>
I think it might be best for me, if that just has the normal event details and not the condensed short version.
I will just keep all future entries short lol

My question to you all is, do i replace that v.short.Desc and if so, with what? so the normal event details show or how do I go about changing it so what i want shows?

Thank you :-)
Last edited by bronts on Tue Jul 10, 2018 5:17 pm, edited 2 times in total.

User avatar
Active Member

Posts

Joined
Sat Jul 14, 2012 12:56 pm
Location - QLD Australia

Post by straightlight » Tue Jul 10, 2018 8:47 am

You are requesting information about a downloaded extension. While the extension link was not provided on the first post, it would be suggested to contact the extension developer in order to know the best option with that specific variable.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by bronts » Tue Jul 10, 2018 8:55 am

OOops sorry, here is the link to the extension...
https://www.opencart.com/index.php?rout ... load_id=55
Thank you straightlight for your reply, I did contact/ask the developer, but I was only emailed which files to edit

User avatar
Active Member

Posts

Joined
Sat Jul 14, 2012 12:56 pm
Location - QLD Australia

Post by bronts » Tue Jul 10, 2018 5:22 pm

An awesome oc forum member solved the issue by...
On this file:
catalog/controller/information/event.php
Replacing this:

Code: Select all

$data['available_events'][$k]['shortDesc'] = substr(strip_tags(html_entity_decode($v['description'])), 0, 700) . "...";
With this:

Code: Select all

$data['available_events'][$k]['shortDesc'] = html_entity_decode($v['description'], ENT_QUOTES, 'UTF-8');
Thank yo so very much xxvirusxx I appreciate your help and support :-)

User avatar
Active Member

Posts

Joined
Sat Jul 14, 2012 12:56 pm
Location - QLD Australia

Post by xxvirusxx » Wed Jul 11, 2018 3:11 am

Welcome.

And that developer can kill yourself for great support....

And..by the way..I am hardware IT...

Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Who is online

Users browsing this forum: No registered users and 4 guests