Forum Replies Created
-
AuthorPosts
-
dpeschio
ParticipantWe are on a VPS. We currently have ~2600 events – most have passed. 241 venues. We are using a CDN (Cloud Flare) and have the following in .htaccess for browser caching:
# BEGIN Browser Cache <IfModule mod_mime.c> AddType text/css .css AddType application/x-javascript .js AddType text/x-component .htc AddType text/html .html .htm AddType text/richtext .rtf .rtx AddType image/svg+xml .svg .svgz AddType text/plain .txt AddType text/xsd .xsd AddType text/xsl .xsl AddType text/xml .xml AddType video/asf .asf .asx .wax .wmv .wmx AddType video/avi .avi AddType image/bmp .bmp AddType application/java .class AddType video/divx .divx AddType application/msword .doc .docx AddType application/vnd.ms-fontobject .eot AddType application/x-msdownload .exe AddType image/gif .gif AddType application/x-gzip .gz .gzip AddType image/x-icon .ico AddType image/jpeg .jpg .jpeg .jpe AddType application/vnd.ms-access .mdb AddType audio/midi .mid .midi AddType video/quicktime .mov .qt AddType audio/mpeg .mp3 .m4a AddType video/mp4 .mp4 .m4v AddType video/mpeg .mpeg .mpg .mpe AddType application/vnd.ms-project .mpp AddType application/x-font-otf .otf AddType application/vnd.oasis.opendocument.database .odb AddType application/vnd.oasis.opendocument.chart .odc AddType application/vnd.oasis.opendocument.formula .odf AddType application/vnd.oasis.opendocument.graphics .odg AddType application/vnd.oasis.opendocument.presentation .odp AddType application/vnd.oasis.opendocument.spreadsheet .ods AddType application/vnd.oasis.opendocument.text .odt AddType audio/ogg .ogg AddType application/pdf .pdf AddType image/png .png AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx AddType audio/x-realaudio .ra .ram AddType application/x-shockwave-flash .swf AddType application/x-tar .tar AddType image/tiff .tif .tiff AddType application/x-font-ttf .ttf .ttc AddType audio/wav .wav AddType audio/wma .wma AddType application/vnd.ms-write .wri AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw AddType application/zip .zip </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/css A31536000 ExpiresByType application/x-javascript A31536000 ExpiresByType text/x-component A31536000 ExpiresByType text/html A3600 ExpiresByType text/richtext A3600 ExpiresByType image/svg+xml A3600 ExpiresByType text/plain A3600 ExpiresByType text/xsd A3600 ExpiresByType text/xsl A3600 ExpiresByType text/xml A3600 ExpiresByType video/asf A31536000 ExpiresByType video/avi A31536000 ExpiresByType image/bmp A31536000 ExpiresByType application/java A31536000 ExpiresByType video/divx A31536000 ExpiresByType application/msword A31536000 ExpiresByType application/vnd.ms-fontobject A31536000 ExpiresByType application/x-msdownload A31536000 ExpiresByType image/gif A31536000 ExpiresByType application/x-gzip A31536000 ExpiresByType image/x-icon A31536000 ExpiresByType image/jpeg A31536000 ExpiresByType application/vnd.ms-access A31536000 ExpiresByType audio/midi A31536000 ExpiresByType video/quicktime A31536000 ExpiresByType audio/mpeg A31536000 ExpiresByType video/mp4 A31536000 ExpiresByType video/mpeg A31536000 ExpiresByType application/vnd.ms-project A31536000 ExpiresByType application/x-font-otf A31536000 ExpiresByType application/vnd.oasis.opendocument.database A31536000 ExpiresByType application/vnd.oasis.opendocument.chart A31536000 ExpiresByType application/vnd.oasis.opendocument.formula A31536000 ExpiresByType application/vnd.oasis.opendocument.graphics A31536000 ExpiresByType application/vnd.oasis.opendocument.presentation A31536000 ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000 ExpiresByType application/vnd.oasis.opendocument.text A31536000 ExpiresByType audio/ogg A31536000 ExpiresByType application/pdf A31536000 ExpiresByType image/png A31536000 ExpiresByType application/vnd.ms-powerpoint A31536000 ExpiresByType audio/x-realaudio A31536000 ExpiresByType image/svg+xml A31536000 ExpiresByType application/x-shockwave-flash A31536000 ExpiresByType application/x-tar A31536000 ExpiresByType image/tiff A31536000 ExpiresByType application/x-font-ttf A31536000 ExpiresByType audio/wav A31536000 ExpiresByType audio/wma A31536000 ExpiresByType application/vnd.ms-write A31536000 ExpiresByType application/vnd.ms-excel A31536000 ExpiresByType application/zip A31536000 </IfModule> <IfModule mod_deflate.c> <IfModule mod_setenvif.c> BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html </IfModule> <IfModule mod_headers.c> Header append Vary User-Agent env=!dont-vary </IfModule> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon </IfModule> <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$"> <IfModule mod_headers.c> Header set Pragma "public" Header append Cache-Control "public, must-revalidate, proxy-revalidate" Header set Access-Control-Allow-Origin "*" </IfModule> <IfModule mod_headers.c> Header set X-Powered-By "W3 Total Cache/0.9.2.4" </IfModule> </FilesMatch> # END Browser Cachedpeschio
ParticipantThis reply is private.
August 23, 2018 at 4:45 pm in reply to: Available Venues not displaying in Venues dropdown after update #1604583dpeschio
ParticipantStepping back to 4.6.21 worked for me too. Can I have my 3 hours back plz?
August 23, 2018 at 4:41 pm in reply to: Available Venues not displaying in Venues dropdown after update #1604582dpeschio
ParticipantI have the same problem – installed backup of db, problem persisted so I deleted transient data, optimised tables, “updated” a missing venue to se if would show up… nothing has worked.
dpeschio
ParticipantHi Brendon – any forward movement on this issue?
dpeschio
ParticipantThanks for your help and speedy replies. I look forward to using the aggregator as soon as we can assign the imports to specific venues.
Cheers!
dpeschio
ParticipantThis reply is private.
dpeschio
ParticipantHi Brendan,
I purchased and installed the aggregator and set up a scheduled import to use an existing category specific to an existing venue. The events were imported but 2 new venues were created by the plugin. Venue 1 and Venue 2. I need the events to import to an existing venue.
I edited the functions.php to show the merge venues button, used it, but these venues didn’t merge. Theres a lot of work that’s gone into creating and editing the existing venues. For example, we added the ability to assign venues to a user (owner), we use the community events add-on allowing venue owners to add their events. We’ve also added the ability for the venue owners to edit the info on their venue listing, have custom fields and categories for the specific venue. This has all been custom coding and is required for how we use the info in other places. Because of this I can’t have imports creating new venues.
I need to assign the import to a specific, already existing venue. Is this possible?
dpeschio
ParticipantOK – I’ll make the purchase and lets see if I can configure it correctly
dpeschio
ParticipantHi – anyone have a response?
dpeschio
ParticipantHad the same problem – this fix worked for me
dpeschio
ParticipantOne more question – Say someone with a user role that is NOT admin – contributor, for example – adds an event. When choosing a venue with the pull-down menu they have My Venues as an option, and then they have Available Venues. Under Available Venues only the venue owned by the logged in user is available. How do I get all venues to show under Available Venues pull-down menu?
dpeschio
ParticipantJust what I needed. Thanks!
I’ve had to add a lot of “extras” in my functions.php for the venues in order to use them the way I need to. It’s all standard stuff available for events and other custom post types. Things that seem like they should just be standard – at least at the pro level. A few examples: being able to add categories to venues and being able to change ownership of the venues.
We’ve created a community and we want to allow users to maintain their venue and add and edit events (we have community events installed). Then we want to display the venues by category as menu items, and sort by sub category. We’ve done all this but it would have been a lot easier if venues had all the standard features of post. Here’s an example of a page that displays the main category of Brewery with three sections of sub categories: full page advertiser, half and free listing. These are sorted randomly inside each sub so no one is always on top of their section.
Thanks again!
October 19, 2015 at 3:33 pm in reply to: Ticket sale prices dont show in single event or list views #1016003dpeschio
ParticipantThis was way more complicated than I expected. I consider what I did was fixing a bug.
The bug: tribe_get_cost was not pulling sale pricing
My fix: I bypassed tribe_get_cost and used the woocommerce function get_price_html. To do that I first had to retrieve the variables for the particular product. I used tickets.php as a kind of template and added the following inside the first php group:
//sets variables for fetching correct price $wootickets = TribeWooTickets::get_instance(); $ticket_ids = $wootickets->get_Tickets_ids( get_the_ID()); $product = new WC_Product_Simple($ticket_ids[0]);In the event cost section I then added
<?php if ( $price_html = $product->get_price_html() ) : ?> <div class="tribe-events-event-cost"> <?php echo $price_html; ?> </div> <?php endif; ?>This gave me the regular price with a strikethrough
and the sale price <ins></ins>. Both have the class “amount” and were stacked on top of one another with the same look. I wanted to accentuate the sale price so I had to differentiate them and apply my styles. I added a span and some text by adding this to functions.phpadd_filter( 'woocommerce_get_price_html', 'add_before_price', 100, 2 ); function add_before_price( $price, $product ){ return '' . str_replace( '<ins>', '<span class="ct-onsale"> ON SALE: <ins>', $price ); return '' . str_replace( '</ins>', '</ins> <span class="ct-onsale">', $price ); }and a little css to highlight the sale price
.ct-onsale { background:none !important; color:#4d75a6; font-size:larger; }I hope this helps some people.
October 16, 2015 at 10:16 am in reply to: Ticket sale prices dont show in single event or list views #1015357dpeschio
ParticipantHi and thanks for the quick response.
I have those files moved – we are adding Sold Out notices, tickets remaining and some css so I have them in my child theme folder. Simply changing those lines won’t do it or I wouldn’t be asking for guidance.
I believe that get_price is using a different way of retrieving the price. It’s always correct. tribe_get_cost sometimes shows the sales price and discounts, but more often doesn’t. I haven’t been able to track down why it works on some products and not others. I have looked at the event tickets as woo products and in the editor for the event and I can see no differences between a product that is displaying prices correctly and one that isn’t. That’s why I want to go the route of using the method of displaying prices that is working.
The crux of my problem is when I add
echo $this->get_price_html( $product )in place oftribe_get_cost( null, true )the page stops loading at that point. I tried adding variations of the code from tickets.php to get it to pull all the necessary functions but haven’t gotten it to work. I thinks it it related to $this variable needing to have functions from a class that isn’t available.Any ideas?
-
AuthorPosts
