gilcatt

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • gilcatt
    Participant

    Hi Josh,
    That is a really interesting approach, indeed. Yes it would be perfect. I was about to ask for a refund 🙁 , but this opens up a great possibility, probably also quite useful for other TEC users.

    Now I am scratching my head : what kind of function would I need to create ? That is , for starters, what would be the array to pass the necessary elements that make up a post, regarding the “tribe_events” CPT ?

    $post = array(
    ‘ID’ => [ <post id> ] // left blank
    ‘post_content’ => [ <string> ] // The product page shortcode
    ‘post_name’ => [ <string> ] // The name (slug) for the post
    ‘post_title’ => [ <string> ] // The title of the post.
    ‘post_status’ => [ ‘published’ |
    ‘post_type’ => [ ‘custom post type’ ]
    ‘post_author’ => [ <user ID> ]
    ‘post_parent’ => [ <post ID> ] Default 0.
    ‘post_excerpt’ => [ <string> ] // For all your post excerpt needs.
    ‘post_date’ => [ Y-m-d H:i:s ] // The time post was made.
    ‘post_date_gmt’ => [ Y-m-d H:i:s ] // The time post was made, in GMT.
    ‘post_category’ => [ array(<category id>, …) ]
    ‘tax_input’ => [ array( <taxonomy> => <array | string> ) ] // For custom taxonomies.
    ‘page_template’ => [ <string> ] // Requires name of template file : single.event.php.
    );

    And using “something” in here to get product variations to show in the loop of a tribe-events CPT …
    http://docs.woothemes.com/wc-apidocs/class-WC_Product_Variation.html
    Unfortunately I am not such a great coder, as you may have guessed … but definitely interested in getting this right.

    Regarding your questions:
    1. I am using the main product ID.
    2. When using the shortcode, the dexcription area is showing fine. The only thing that doesn’t work is that when using tickets with an event containing the WooCommerce product page shortcode, clicking on add to cart on the ticket’s button does nothing.

    However I do agree that I very much prefer what you suggest : do without WC Tickets and use the “add to cart” button within the standard product page. It would indeed make for a much better user experience in my use case.

    in reply to: Issue with mini calendar shortcode #916360
    gilcatt
    Participant

    Oh thanks for the tip, I will check that
    Where do I put the conditional ?

    in reply to: Issue with mini calendar shortcode #916348
    gilcatt
    Participant

    The variables date/time : read The Variables date/venue

    in reply to: Issue with mini calendar shortcode #916343
    gilcatt
    Participant

    Some thoughts, related to what I want to achieve, which I can’t with The Event Calendar.

    In my opinion, an event is not a product, but a variation of a product. A single product leading to one or many events.

    Take a band on a tour :
    Businesswise, a tour consists of a single concert program repeated multiple times in multiple places. And not of multiple gigs, each in a single venue on a single date (although this is how the customer perceives it, and most developers too, obviously…)
    The logical difference is subtle but crucial.

    The variables date/time would have to be defined in the woocommerce product settings, not outside of it. I agree, you would need a completely different plugin to do this, based on woocommerce and not “event” custom post types.

    In the first case you end up with one single page for all events associated with one product, in the second case you have to create as many pages as there are events (A post with the same description for each new date of what is basically a single product? Hello, duplicated content issues… How can this be solved using The Event Calendar, by the way ?).

    Thanks for the great support, otherwise. I have rarely experienced such a level of professionnalism as far as plugin support is concerned.

    in reply to: Issue with mini calendar shortcode #916310
    gilcatt
    Participant

    Thanks for the reply , Brian

    Would it be possible to change the name of the global ? I mean on my side …
    I know this could be tedious, with upgrades in mind.
    Unless there would be a snippet offering the option to swap a global’s name.

    gilcatt
    Participant

    Hi Josh, thanks for your kind reply. Le me give you some more details.

    I am selling training sessions for businesses. These are sold “date based”.
    I need a catalogue => WooCommerce shop used as such
    And I need to sell them as events => Right now, using TEC PRO and WC Tickets.

    FYI, I did try to come up with a solution within WooCommerce first, using the variable product option, adding dates as variations. Then adding the reference of the product page in a calendar. But the workflow was tedious – filling dates twice in different environments – and the user experience was not optimal.

    Technically speaking, as you rightly assumed, the products page I am adding via shortcode are different products not associated with the tickets for the events.

    I am using woocommerce as a catalogue of events only, using the standard WooCommerce product page for the event’s description ( without price and thus without the “add to cart button” showing) , and WooCommerce Tickets to sell them.
    Basically I am thus embedding what I consider to be the event description – done with a WooCommerce product page – putting a WooComerce product page shortcode in the event description field of an Event created with The Event Calendar. Selling the Event with Tickets. Getting the best of both worlds. This a bit of a hack.
    It did work with 3.8, it doesn’t work with 3.9.
    Any clue to make it work with 3.9?
    I did the whole debugging process following Tribe’s Guidelines: it all boils down to some incompatibility between WooCommerce and WooCommerce Tickets in this specific use case.

    Some additional remarks:

    If tickets offered the same standard options as a standard WooCommerce product, on top of its own, all would be fine.
    I need the variable product options ( to add options like a lunch package, discount based on # of attendees, etc …)
    I need the description tabs.
    And I would need tickets to appear in the shop itself.
    That would be the best and most elegant solution.

    My guess is :

    1. I would have to tweak the Tickets template to bring back the standard WooCommerce product fields to view. That shouldn’t be too difficult. (If I create the equivalent of a ticket in WooCommerce, it looks like a standard product page. Everything already exists.)
    2. Make the ticket visible as a product in the WooCommerce shop page, and show standard product page when in WooCommerce shop. Should not be difficult either. (Right now some rule in a Ticket make it non visible in the WooCommerce shop pages. Deleting that rule would do.)

    And now the trickiest part:

    4. Allow for the creation of a ticket as a standard product from the WooCommerce New Product interface.
    3.Find a way to associate an event created in TEC with an existing ticket created . Or a ticket to an event. I have no preference here. (Using the ticket category as a conditional : IF product A is in Ticket category THEN allow association with Event A, B, …N). That is the trickiest part, where I would need some help.

    What would be beautiful : once the process is complete show the dates/venues associated with the product in the product description (in a separate tab, for instance) and as a product’s variations (as they are needed for checkout).

    Being able to create a date as a product variable from within WooCommerce (already possible, not user friendly as it is now (no date picker) but does the trick) AND show that date into a calendar like TEC would be the ultimate solution. Quite a different product indeed.

    TEC’s scenario is to create events as dates in a calendar, the products sold being the tickets to the event.

    My scenario is to create events as products, being able to associate them with dates in a calendar. Yet selling sessions: dates are product variations. This is the standard business scenario for selling training sessions. You first pick a training program from a catalogue, then see if a session is scheduled, book a date if it is. Also choose the venue: most business training sessions are scheduled in various cities. The choice is always a date/venue combination.
    A valuable market for Tribe’s products, think about it ;).

    There is the WooCommerce Bookings plugin, but it does not offer a calendar nor the possibility to choose from existing dates set by the admin. Oh well …

    in reply to: Issue with mini calendar shortcode #914386
    gilcatt
    Participant

    This reply is private.

    in reply to: Issue with mini calendar shortcode #914384
    gilcatt
    Participant

    Here I am again.
    I did follow the debugging guidelines rigorously
    Used the latest version of twenty thirteen
    Deactivated all plugins, including TEC Filter bar, except The Event Calendar
    (Even tried with and without TEC PRO, with and without WooCommerce Tickets)
    Flushed the browser cache
    Flushed all database transients

    I have a copy of my System Information, if needed.

    The only plugin I could not deactivate was of course WooCommerce, because it was needed to experience the bug.

    I also wish I had kept TEC 3.8 and TEC PRO 3.8 for comparison : Are there dowloadable somewhere?

    I found another bug , this time with 3.9.

    Let’s start with the first one, reported earlier on.

    CALENDAR BUG

    => Used shortcode [tribe_mini_calendar]
    => Embedded WooCommerce shotcode [product_page id=”99″] in the Event description

    then :

    1. added calendar shortcode to the Product ‘s description – main area
    AND
    added the Product page shortcode to the Event description area

    * Calendar works fine on WooCommerce Product page
    BUT
    * resulting error on Event page :

    Fatal error: Call to a member function get_upsells() on a non-object in/var/www/dev2.sociatomdev.com/chroot/htdocs/wp-content/plugins/woocommerce/templates/single-product/up-sells.php on line 14
    page.

    * there is also a never ending loading image floating above the mini calendar on “the ‘Single Event” ” page.
    * the Event is not visible on the All Events page, in Month view
    * the main calendar is truncted at the level of the start date.
    * the Event is visible on the All Events page, in List view

    2. Deleted it from the Product description main area
    AND
    added it to the Product’s Short Description field

    * Calendar works fine on WooCommerce Product page
    BUT
    * resulting error on Event page :

    Fatal error: Call to a member function get_sku() on a non-object in/var/www/dev2.sociatomdev.com/chroot/htdocs/wp-content/plugins/woocommerce/templates/single-product/meta.phpon line 21

    * there is also a never ending loading image floating above the mini calendar on “the ‘Single Event” ” page.
    * the Event is not visible on the All Events page, in Month view
    * the main calendar is truncted at the level of the start date.
    * the Event is visible on the All Events page, in List view

    And some new stuff since TEC 3.9

    => this time without using the mini calendar shortcode
    => as above tried both WooCommerce shortcodes for Product page.

    [product_page id=”99″]
    [product_page sku=”FOO”]

    to embed it in an Event description

    1. added them to the Event description text area.

    * the Ticket is not added to the cart
    (It did work with TEC 3.8)

    2. deleted them from the Event description text area

    * the Ticket is added to the cart

    In both case everything looks good from the Single Event page.
    But the Ticket seems to dislike the WooCommerce shortcode when embedded in the Event page ‘s description.

    in reply to: Issue with mini calendar shortcode #914104
    gilcatt
    Participant

    Thanks for the reply, I am currently doing more tests. I shall report my findings.

    in reply to: Issue with mini calendar shortcode #913716
    gilcatt
    Participant

    By the way : exact same behaviour using “The Events Calendar Shortcode” plugin, which otherwise works nicely. If that can be of any help.

Viewing 10 posts - 1 through 10 (of 10 total)