Use of EB values on different places

  • John
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 1 month ago #93999 by John
Hi Tuan,

As per now I have around 1000 events (boat trips) and soon this will app double. As such I try to make some things automatic and need a bit of help. I use a program (sourcerer) that allows me to load PHP in the description field of an event and even in the meta description field. There are two things I tried to achieve but failed:

1. The meta description field:
As many of my events are the same, but Google seems to punish me for same descriptions, I have a standard description and would just like to add the event_date behind. So when I display an event the description will be automatically unique.
I thought this to be a piece of cake with:
Code:
<?php echo JHtml::_('date', $event->event_date, 'd', null); echo JHtml::_('date', $event->event_date, 'M', null); echo JHtml::_('date', $event->event_date, 'Y', null); ?>
But it seems to return the day of today and not the event start date. Some extra step needed that I cannot figure out.

2. The description field
My events are actually boat trips and there are prices for different cabins. As such I used the description area also for loading pictures of the cabins and below them I display the prices. Great, only this is now all manual.
I would like to use a bit of PHP to lift the individual_price from the displayed event and show it under the standard cabin. To that price I could then add fixed amounts to display the more luxurious cabins. Take a look and it will all be clear: LINK
Again I thought piece of cake with:
Code:
<?p echo $event->discounted_price;?>
Unfortunately not that simple as it shows nothing.

I guess in both cases I miss something to point at specifically that event. Thought by entering this within the description field I worked already "within the specific event".

Tuan, any hint highly appreciated. Number one I could still live without but number 2 is would really be a life saver . . . even though I would need to chance by hand then 1000 events . . . just hard work for easier future.

Thank in advance.

Please Log in or Create an account to join the conversation.

  • John
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 1 month ago #94001 by John
Replied by John on topic Use of EB values on different places
Should probably mention that for SEO nowadays it is important not to have duplicated titles.
I would be good if the also the title field would have a bit more options. I know that you can add the the ID to it to make it unique but I believe it only adds it to the alias and therefore to the URL and not the title field.

Best would be separation from the title field for on page use and for use between the title tags in the code Only then SEO would be achieved.

Currently I use RSSeo for achieving this, but, that is a lot of work to go through all titles again.

Will post this also in feature wish list in better words perhaps

Please Log in or Create an account to join the conversation.

  • John
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 2 weeks ago #95827 by John
Replied by John on topic Use of EB values on different places
Hi Tuan,

Never got an answer or hint to this one and worked around it now for a few months. As it is very time consuming to keep adapting by hand this big amount of events, I would like to revive my question and see if you can help me now with the main issue.

My events are often discounted by the suppliers. I use simply for this the early bird discount with as the early bird date the event start date. (You me once that standard discount only works for user groups other than Public/Guest and is not displayed at the front end for non logged in users) No other way to give a clear discount.

Of course it is a must to show people that prices are discounted so I would like to add to each event a small piece of PHP code that checks if there is an early bird discount applied and if so display the original priced or the applied discount. I guess just a small piece of code with an if else statement . . . but somehow I do not manage to get the conditions correct.

Any help more than appreciated!

Please Log in or Create an account to join the conversation.

More
9 years 2 weeks ago - 9 years 2 weeks ago #95869 by Philipp
Replied by Philipp on topic Use of EB values on different places
I am not good at coding, so I cannot add anything to solve your specific problems.

But I would second the need for more flexibility with event titles, as I have some of the same issues with it. Many of my standard courses have the same title, which is not only unfortunate for SEO but also for managing the courses. At the registration page, for instance, only the course title is given for registrants, which is confusing people because there were 20 courses with that same name to choose from. Being able to append the output with the date or category would be super helpful!
Last edit: 9 years 2 weeks ago by Philipp.

Please Log in or Create an account to join the conversation.

  • John
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 2 weeks ago #95878 by John
Replied by John on topic Use of EB values on different places
Hi Philipp, take a look at my post in "feature wish list" and please support if you can. So far no body supported, which is hard to believe in this times of SEO.

www.joomdonation.com/forum/events-bookin...eo-improvements.html

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 2 weeks ago #95884 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Use of EB values on different places
Added this item to my to do list for review. If people think that it is helpful, I will consider adding support for it in version 2.15.0 (or event 2.14.2)

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • John
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 2 weeks ago #95931 by John
Replied by John on topic Use of EB values on different places
Hi Tuan, I created some overrides. Take a look at the divemood.com and you see on the first page the timeline with changed pricebox. When you click on the event you will see the detailed event has also this "stamp" as well as the discounted price in orange.

This adjustments were not to complicated, it would be nicer to consider a system giving a "normal" discount instead of rebuilting early bird discount. You mentioned that normal discounts cannot be used for public/guest, only for registered. That is a pity as there should be also room for standard discounts (visible) even when not logged in.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc