@manojmobo Hey there,
Thanks for letting me know about this! As a quick workaround, you could add this hook to your theme’s JavaScript file:
wp.hooks.addFilter('misc.link.href', 'wpshopify', function (defaultLink, type) {
var split = defaultLink.split('https://glamdeva.com/');
var newLink = 'https://glamdeva.com/shop/' + split[1];
return newLink;
});
For a more permanent solution, I’ll need to update the plugin. I’ve added it to my things to do!
Hello Andrew, thank you very much for your suggestion, we will try this, yes it will be helpful for everyone if you add this option on the future release 🙂 Love your plugin 🙂
Is there an update for this, perhaps if I enable beta versions? I added the JS but now it broke my product index (i’ve resynced etc)
@mrpink84 Hey there,
Not yet, but I’m working on it. When you say it breaks your product index, can you elaborate? If you can send me a link to your page that would help too!
Thanks for the fast reply! The product index page is https://logicscdn.com/aesmexico/products/ it looked good before but clicking the products broke so I found this snippet.
I added the snippet inline in javascript in the <head> and now nothing loads on this page.
I just noticed the shopping cart is thinking vs saying “0” like before so it seems like it’s breaking the entire Shopify connection for some reason.
EDIT: Oh never mind now it says 0 in the shopping cart on the right it just took longer than expected.
-
This reply was modified 4 years, 11 months ago by
WordPink.
@mrpink84 Thanks for the update, I see what you mean.
Would you mind removing that code snippet again for me and letting me know so I can see it working now?
Oh I might have to resync it or something now? hmm.
I just synced and cleared the cache and it’s still not showing up, with the snippet removed. Oh boy ok.
The products, all 3000+ of them, are showing up in the Dashboard as well.
@mrpink84
Hmm, can you try temporarily disabling all your other plugins to see if that fixes it? If that doesn’t work, I would try re-installing the plugin.
I wasn’t using the Pro version before, and I think it may be fixed in the Pro version? I’m still having default products index page issues but the shortcodes are working now. Is there anyway you can delete my post with the URL or more importantly just the URL? I thought I’d be able to edit it out later but I guess there’s a time limit on WP’s forum.