Home Forums WC Vendors Pro Support Request: Publicize through Jetpack Plug In

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #10504
    Karen Thomas
    Participant

    Hiya Ben and Jamie,

    I use the Publicize function within the Jetpack Plug In.

    This allows me to automatically create a Tweet (or post to other social networks) each time I publish a product – pretty neat!

    It automatically pops the Product Title in the Message and allows me to amend it:

    Will I still have the same functionality or is that on the To Do list?

    Many thanks,

    Karen

    #10507
    WC Vendors Support
    Participant

    Sure. I can do that for you.

    …..fiddles on the keyboard a while………..

    Here ya go!

    https://gist.github.com/bentasm1/4b1674be5aec670380f0

    #10512
    Karen Thomas
    Participant

    Wow very impressed! I sooo wish I was as clever!

    So added it to my functions.php file

    Added a product as a vendor in new dashboard, which was totally fab! 😀

    But it didn’t give me the option to Publicize a tweet unfortunately

    So I went into my wp-admin to amend the product so I could add the postage (Pre Product Shipping)
    However it looked like it had already been published (but that’s a known mistake I think u said)
    So after adding postage costs I clicked ‘Update’ button, but nothing happened and it wasn’t saved.

    So I’ve got a product with no shipping costs and no tweet.

    Any ideas?

    Thanks,

    Karen

    #10513
    WC Vendors Support
    Participant

    Beats me! 🙂 The Publicize code you see there I found on the Internet when I needed it for another site a year ago that auto tweets their products. It still works, that’s all I know! 🙂

    #10514
    Karen Thomas
    Participant

    Very odd.
    I’ve deleted it for now in case it was preventing me from editing products.

    It still won’t let me save any edits eg postage costs so I’ll raise a separate ticket.

    Ta

    #27545
    Karen Thomas
    Participant

    Hi Ben and @DigitalChild

    I retried the code you gave me in the hope it would now work, but sadly no 🙁

    It’ve set up Jetpack so that every new product I publish in wp-admin gets automatically posted on Facebook and Twitter.

    I’m desperate to start allowing some trusted vendors to publish their own products but when publishing from the Vendor product form, jetpack doesn’t work 🙁

    I contacted Jetpack and they sent me to this forum topic lol! 😀

    Can you guys help?

    Thank you very mucho!

    Karen

    #27559
    WC Vendors Support
    Participant

    I really don’t know. If Jetpack is doing its job right it should fire the publicize upon post of the product. They will have to provide you with a hook for it to fire it manually, if they can provide that, we can look at a snippet for you to make it work.

    #27642
    Karen Thomas
    Participant

    Thanks a million Ben, I’m trying my bestest to get suggestions from Jetpack first so hopefully don’t need to shout ‘HELP’ 🙂

    Will post here if I get a solution in case others need help

    #27953
    Karen Thomas
    Participant

    Hi Ben,

    Jetpack have suggested various things:
    1. Asking me to reconnect to social networks to ensure I have shared permissions to be used by all members
    2. Using User Role Editor plug in to add capabilities to Vendors to publish posts

    None worked :'(

    They’ve run out of suggestions and have said ‘if the user role is setup properly, then this should work just fine. Could you find out more from the plugin developer about this user role, and if they have any idea what might be wrong?’

    Sorry! Any idea?

    Thanks very much,

    Karen

    #27973
    WC Vendors Support
    Participant

    I think I have an idea. It’s PROBABLY (note probably is in caps, because I am uncertain) that Jetpack hooks into an action in wp-admin that works when you click the Publish button. WC Vendors Pro doesnt really actually “publish” a product, it simply inserts it into the database, and as such, shows up on your site. If JetPack can provide you with an action that would fire the publicize for a particular post ID #, then we can get that installed on your site and working correctly. If they can not, you’re screwed. 🙂

    #27978
    Karen Thomas
    Participant

    Thank u Ben! I think that might help!
    Sent your reply to Jetpack and I’ll hopefully have a happy answer tomorrow 🙂

    (If not i’m screwed!)

    #28009
    Karen Thomas
    Participant

    Hi Ben – not good news :'(

    Response from jetpack:
    ‘That would indeed cause issues 🙂 Unfortunately we don’t have a hook that fires when a new post ID is created, it only fires on Publish as he mentions. At this point we don’t have any plans to update or change that since the vast majority of Publicize’s use cases are on Publish. I apologize for the back and forth, and that we don’t have any other options at this point :(‘

    Is this something I can pay you guys to sort? – so maybe on my website it doesn’t just appear in the database it ‘publishes’ it. Otherwise I’m going to be stuck publishing products forever. I’ve over 80 Crafties waiting to join and I just can’t grow the site as I can’t cope with reviewing every product on the site whilst running and growing the community. Part of what they sign up for is sharing every product on social media and it’s impossible to do this manually with so many products.

    Help!

    Many thanks,

    Karen

    #28010
    WC Vendors Support
    Participant

    We cant force Jetpack to change how it works, if they have no hook for that, we’re screwed. You might, instead, look for a different plugin that allows you to share a product socially whenever you like. And then you can share a batch of them all at once with a few clicks. Not sure if a plugin like that exists, but I cant see why one wouldn’t.

    If you threw money at us we’d still not be able to fix Jetpack. We’d get drunk, and be happy, but you wouldn’t get anything in return. 🙂

    #28025
    Karen Thomas
    Participant

    Te he Ben you do make me smile! 😀

    I’ll go hunting now 🙂 x

    #31721
    alexstanhope
    Participant

    Hi all,

    In the absence of Jetpack being able to “publicize” new vendor-created products, there might be a deliciously simple solution to all this for the time being!

    I might suggest using the really rather lovely ifttt.com (a.k.a If This Then That) to automate the whole thing.

    What you’d need to do once registered there is create a new “Recipe” to take WooCommerce’s inbuilt RSS feed for products and then publish any new items to social networks of your choice.

    The “formula” for the product feed is: yoursite.com/feed/?post_type=product

    Hope that might help!

    #31734
    WC Vendors Support
    Participant

    ifttt.com would be a fantastic solution and probably quite simple to setup, too. We use it to tell us about new support tickets on wordpress.org in fact. 🙂 (Why they dont tell the plugin author we have a new support topic is wildly crazy stupid IMHO! :)) It works well, with about a half hour delay on it give or take, and that’s acceptable to us.

    #31753
    Karen Thomas
    Participant

    Thank you so very much for jumping in to help @alexstanhope! 🙂

    I think I’ve done it right!
    Created a RSS recipe using yoursite.com/feed/?post_type=product and connected to one of our facebook pages
    Then set action as a Link Post
    With the text ‘New Product added to Conscious Crafties’

    Will that post the new product published or will it add the link to the rss feed do you know? As I’m pretty sure no potential customers will click a RSS feed link.
    What we have now with Jetpack is the link to the item which displays the image of the new product.

    So trying to replicate that if possible, so that when Vendors are able to publish their own products, it still updates our facebook page with a new product.

    Thanks for all your help 🙂

    Karen

    #31755
    alexstanhope
    Participant

    Hi Karen,

    I reckon IFTTT should definitely work as you’d like it to, but there are a couple of minor gotchas (ain’t that always the case!):

    1: With the “Recipe” you created, the “yoursite.com” bit needs to be replaced with your site’s actual domain name – I’m sure you probably realised that anyway, but just wanted to double-check!

    2: If you’ve not already installed it on your site, I’d recommend adding the Yoast SEO Plug-in; what you can then do is create a “template” for WooCommerce products under Titles & Metas > Post Types. I’d start by putting something similar to the following in the “Meta description template:” box underneath “Products”: %%title%% for sale on Conscious Crafties.

    Effectively, what that’d do is take the product title as added by the vendor, and insert it into the relevant page’s Meta description. The good news here is that Facebook will pick this up (and the Featured Image if added) and then add it to the link that is posted through IFTTT, resulting in the type of thing you’re looking for!

    Also, I wouldn’t worry too much about “RSS Links” – visitors to your Facebook page will never see this; all they’ll get is the link to the product page on your site!

    Hope that makes some kind of sense!

    Alex

    #31760
    Karen Thomas
    Participant

    You are a star!!! I’ve just allowed a vendor to ‘publish’ their own product and it published a few minutes later adding the link and featured image!!!!

    So happy thank you! 🙂

    I’ve also connected to Twitter so any new products are tweeted too! Woo Hoo! What an amazing tool this is – thank you for introducing me to it – I might actually get myself organised!

    I do have Yoast and I currently have this set up for products:

    Unfortunately the %%excerpt%% within the description stopped working following a Yoast update. I have contacted Yoast and posted on their forum but they only seem to offer support for bugs if you buy their paid version. The forums are full of everyone asking the same thing and they never respond :-/

    I have to add SEO manually these days. Is there anything you know I could add in the Description that would pull in relevant text from the product description? Sorry to ask when you’ve already been so helpful to me.

    Karen

    #31765
    alexstanhope
    Participant

    Ahhhh …

    What a shame about the Excerpt variable not working …hopefully the folk over at Yoast fix it soon 🙁

    In the meantime, the only (really hacky) things I could think of were either creating a custom field, populating it with the Excerpt and then using the %%cf_<custom-field-name>%% Yoast variable instead, or alternatively, writing your own custom RSS Feed. I’ve done this in the past for Custom Post Types that needed “special handling” when being auto-posted to social networks through services like IFTTT and dlvr.it – can give you some code as a starting point if you liked?

    • This reply was modified 6 years, 8 months ago by alexstanhope.
    #31770
    WC Vendors Support
    Participant

    Great work, great solution. Thanks both of you. 🙂

    #31782
    Karen Thomas
    Participant

    Awe thanks so much @alexstanhope but you’ve already helped me more than enough! I’m thrilled my vendors can publish their own products without missing out on social sharing that I’d previously set up through Publicize!

    Thanks for all your help!

    And yes Ben what a fab solution 😀 yippee!

    #37407
    Karen Thomas
    Participant

    Hi Alex,

    Hope you’re having a good day.

    Wondered it you could help… my vendors want to use their own IFTTT account to post JUST THEIR PRODUCTS to their own Facebook pages. Do you think that’s possible?….

    Many thanks,

    Karen

Viewing 23 posts - 1 through 23 (of 23 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.