Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi there, i had a similiar problem. I had my date in the wordpress settings as the nearest city to me so i changed it the the utc time instead. This fixed the problem with my dates being a day out. Unfortunately it then doubled up all my events because it registered them on the original date that was incorrect and then the new updated date. I fixed that by deleting and redoing my events. Was easy for me as i only had 2 events. Seems bizarre but that is how i fixed things.

    Thread Starter sjanej

    (@sjanej)

    I think I have found the problem. My dates had been showing up a day out so I changed from my local city time to the UTC time which fixed that problem, but, I think it was this that created the double up of events because it had the event at the pre fixed date day and then added it again on the post fixed date day.

    Not sure if that makes sense to anyone but it solved my problem. I also cancelled the events that had doubled up and redid them just to clear everything. I only had 2 events at this stage so it was easy for me to do, not sure how people would go with 100 events.

    Forum: Plugins
    In reply to: [Hotel Booking Lite] paypal
    Thread Starter sjanej

    (@sjanej)

    Yes, that was the problem, I changed the currency to USD and it now appears in the dropdown and on the booking page. Thank you so much.

    Thread Starter sjanej

    (@sjanej)

    Hi, thanks, yes, was what i was thinking but hoping for a quick fix. Never mind, Ive managed to figure out how to apply the theme styles to the recipe plugin with a few code additions.

    Thread Starter sjanej

    (@sjanej)

    Perfect, thank you so much for your time.

    Thread Starter sjanej

    (@sjanej)

    Ok, got that. I guess that makes sense. So how do I use the threewp_broadcast_get_user_writable_blogs action Im guessing I put it in the functions.php Are you able to expand on that for me with an example please.

    Thread Starter sjanej

    (@sjanej)

    hhmm ok so Im a little confused. Does this mean that users can only broadcast to a second blog if they are a user on both blogs?

    Thread Starter sjanej

    (@sjanej)

    Thanks Borisv, was hoping there would be a simple get or fetch code but thats ok, happy to stick with copy and paste. Love your plugin!!

    Thread Starter sjanej

    (@sjanej)

    $broadcast_data = ThreeWP_Broadcast()->get_post_broadcast_data( get_current_blog_id(), $product->ID );

    I have no idea what Im supposed to change thats the problem. I have put back the original function and it doesnt display the originating blog name with the product that its broadcasting. If I put the shortcode into one of my posts then that works as expected and the originating blog name appears so its a matter of trying to figure out how to make that function work with a product rather than a post.

    • This reply was modified 7 years, 10 months ago by bdbrown.
    Thread Starter sjanej

    (@sjanej)

    Ok so Ive put the shortcode back to do_shortcode( ‘[broadcasted_from]’ );

    Have enabled wp-debug and obviously Ive changed the code wrong somehow so I need to figure out what changes do I make in the function to grab the products originating blog name as the code doesnt work as is for products only posts

    Notice: Undefined variable: post in /home/waibizni/waistore.nz/wp-content/themes/customizr-child-theme-01/functions.php on line 56

    Notice: Trying to get property of non-object in /home/waibizni/waistore.nz/wp-content/themes/customizr-child-theme-01/functions.php on line 56

    Thread Starter sjanej

    (@sjanej)

    Hi thanks for the reply.

    I have placed the following code into my main stores child theme content-product.php do_action( ‘woocommerce_shop_loop_item_title’ );
    do_shortcode( ‘broadcasted_from’ );

    If I add do_shortcode( ‘[broadcasted_from]’ ); then the shop page returns a blank page

    I have placed the following code into my main stores child theme functions.php

    /* Using the Broadcast plugin but wanted to add the name of the parent store on the product on WaiStore */
    function broadcasted_from()
    {
        // Check that Broadcast is enabled.
        if ( ! function_exists( 'ThreeWP_Broadcast' ) )
            return;
        // Load the broadcast data for this post.
        global $product;
        $broadcast_data = ThreeWP_Broadcast()->get_product_broadcast_data( get_current_blog_id(), $product->ID );
        // This post must be a child. Check for a parent.
        $parent = $broadcast_data->get_linked_parent();
        if ( ! $parent )
            return;
    
        // Fetch the permalink
        switch_to_blog( $parent[ 'blog_id' ] );
        $blog_name = get_bloginfo( 'name' );
        $permalink = get_product_permalink( $parent[ 'product_id' ] );
        restore_current_blog();
    
        // And now assemble a text.
        $r = sprintf( 'Store: <a href="%s">%s</a>.', $permalink, $blog_name );
        return $r;
    }
    add_shortcode( 'broadcasted_from', 'broadcasted_from' );

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    Its doesnt seem to matter what i change in the code either nothing changes or I get a blank page

    • This reply was modified 7 years, 10 months ago by bdbrown.
    Thread Starter sjanej

    (@sjanej)

    Perfect, thank you. That was such a simple fix. What should I put for the home link, I tried just using # but that makes it jump instead of scroll.

    Thread Starter sjanej

    (@sjanej)

    Just thought I would let you know that I seem to have fixed the first problem with the show past appointments. Im not sure what was wrong but I manually transferred the files using ftp and it seems to be working now. Possibly a hiccup when I first loaded the plugin.
    Im still sorting through getting the email reminders to work. I initially had the wrong settings for the cron job due to a lack of understanding on my behalf as Ive never set one up before. Its still not working quite the way I want it to so Im doing more testing but Im thinking it may have to do with the cancellation time. I have set it to 24hrs but have now changed it to 12 hrs to see if it works correctly.

    Thread Starter sjanej

    (@sjanej)

    Hi, thanks for your reply.
    I will send an email to support.
    For the reminders – I am wanting the reminder to go out the day before, but it is not going out until 1am in the morning before an 8am appointment. This has happened no matter what time I set in admin for the reminders to go out. I would like them to receive the reminder the night before not at 1am in the morning. I have changed the time from 6pm to 8pm and then to 3pm and each time it still sends the reminder at 1am

Viewing 14 replies - 1 through 14 (of 14 total)