Forum Replies Created
-
AuthorPosts
-
Barry
MemberOK, that’s strange. Can you replicate this consistently – ie, does it fail to attach first time each time an order is completed?
April 15, 2013 at 2:20 pm in reply to: Ticket Quantity Selector and Add to Cart Button Not Working #45872Barry
MemberI think the problem is that your theme’s stylesheet is changing the appearance of the relevant fields so that they are stretched and displaced. Can you temporarily switch to Twenty Twelve or Twenty Eleven and see if that resolves this (just so we can be sure as to what is causing the problem)?
Thanks!
Barry
MemberHi Rich, in the first instance can I just confirm the order status for the test is/was complete?
April 15, 2013 at 2:06 pm in reply to: Adding extra names when multiple tickets are purchased #45869Barry
MemberHi J-P, we’ve definitely taken that feedback on board and it’s under consideration.
One thing I would add (about the problem of tracking modifications to themes) is that this is true almost every time something other than an out-of-the-box solution is required, but there are various strategies to minimize this problem – such as using child themes and/or any best practices recommended for further customization by the theme vendor.
Also, though we commonly talk about changing templates or adding code to a theme’s functions.php file that is often just for easiness of explanation – in many cases the code could be wrapped up in a plugin. Here, for instance, the attendee data fields could be injected using one of the hooks provided in the WooCommerce templates.
That level of coding isn’t for everyone of course, but I just wanted to highlight that this is in no way an impossible situation.
April 15, 2013 at 2:03 pm in reply to: Adding extra names when multiple tickets are purchased #45867Barry
MemberHi fcp3org, although you might need to reorder things slightly to turn this into a functional solution you should be able to count the number of attendees during checkout with some fairly simple code – you could then use that to generate the relevant number of fields required to capture attendee data.
Barry
MemberHi Rich,
That’s definitely possible and a relatively easy change. First of all though you would need to familiarize yourself with theming The Events Calendar and template overrides in particular – there are links in the Useful Resources widget over on the side to help out here but let me know if you can’t find any information you are looking for.
The idea though would be to copy tickets.php and place it in your theme’s events sub-directory. Then, look out for this code (somewhere around line 68) and change it as directed in the snippet (basically set input_value to 1).
Does that help here?
April 12, 2013 at 3:11 pm in reply to: Adding extra names when multiple tickets are purchased #45723Barry
MemberI am unable to figure out how to get the form for attendees to appear based on the # of tickets ordered
Just to be sure I’m understanding correctly, you mean if 5 tickets have been ordered you want to loop over your code 5 times (or something like that)?
Barry
MemberHi Ken,
If you are happy editing templates/working with template overrides then what you would need to do is edit your custom events/single.php template.
In there you will see the following line (around line 135):
the_post_thumbnail();You would need to add an argument specifying the size to be used, otherwise it assumes that you want the original image size:
the_post_thumbnail('large');Does that help at all here?
Barry
MemberDefinitely 🙂
Barry
MemberNeat idea, Barry. Are those files not overwritten with each update?
Good point 🙂
Possibly you can direct WordPress to use a different location (ie, outside of the plugin directory) when the text domain is loaded; or, alternatively, all translatable strings can also be filtered.
Although you probably don’t want a filter running for every single translated string (since you only want to change a single item) you could set this up from within a template override then remove it immediately after it has served its purpose.
Barry
MemberRegarding the setting of a default author, you could try adding a snippet like this (ensuring you change the author ID from 2 to whatever is appropriate) to your theme’s functions.php file.
Barry
MemberThe only change I couldn’t make through template overrides was to the “Organizer Details” fields.
One workaround, if you are familiar with (or don’t mind experimenting with) language/translation files is to set up an English translation and change the wording that way.
April 12, 2013 at 2:08 pm in reply to: "Warning" appearing on ADD Form just above Time and Date section #45712Barry
MemberHi hbgdio,
Good catch: I’ll be sure to report that. In the interim I would recommend the first or both of the following:
1. Although a warning correctly makes alarm bells ring in fact in this particular scenario PHP resolves the problem without any need for further intervention, so, certainly on your production or “live” site, all you really need to do is turn off the display of errors – which is a recommended practice in any case.
2. You could put a temporary fix in place quite safely by adding a couple of lines of code within a template override, which I’ll detail below.
Within your theme you would need an events directory, and that would need to contain a community sub-directory. You should then copy to that location the event-form.php template (you can find the original in plugins/the-events-calendar-community-events/views).
Next, please locate the following line of code (around line 102) in your custom copy of :
$this->formEventDetails( $event );Add some new lines just before it, as follows:
global $post;
if (is_null($post)) $post = new stdClass;Does that help at all?
Barry
MemberIt’s not a fix as such – more a change in direction – but it should be released at approximately the same time as The Events Calendar 3.0. Right now we think that will be available within 2 months or so – but that’s really more of a rough guide rather than something set in stone.
Barry
MemberGreat – and do let us know the outcome, whether that is a problem with our code or even just that they can’t offer any support and we’ll have another think about what to do on our end.
-
AuthorPosts
