Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Reinstalled WP eStore plugin now all shortcodes have changed
Tagged: WP eStore
- This topic has 7 replies, 2 voices, and was last updated 3 years, 1 month ago by
henryp.
-
AuthorPosts
-
July 25, 2021 at 11:48 am #83392
henryp
ParticipantHello folks,
I was wondering if anyone could help.
After a Php upgrade on my site I had to reinstall the WP eStore plugin and now my shortcodes have all changed.As an example they are all currently [wp_eStore:product_id:1244:end]
So now the Buy It Now / Add to Cart buttons are not displaying.I think the code should read [wp_eStore_buy_now_button id=1244]
Would anyone know why this has changed since the reboot?
I currently have 3800 downloadable products across 265 pages so I seriously hope I don’t have to now change all of them by hand..Wordpress 5.8
WP eStore version 8.2.8An example of a product page: [rerdownloads.com/?p=253]
The whole album download buttons have not been changed, only the individual song downloads. That might be of significance though my head hurts now..Thanks if anyone can help, hope I have provided enough information.
Thanks again
HenryJuly 25, 2021 at 5:05 pm #83396admin
KeymasterYou were using the old style shortcodes. WordPress deprecated that style of shortcode so we had to make changes accordingly.
The following shortcode documentation has list of all the shortcodes:
Edit your product page and update the shortcode and then it should be fine after that.
You can use search and replace in your database to make this process quicker (if you have a lot of different pages where you use the shortcodes). The PHPMyAdmin tool can be used to search and replace text in your WordPress database.
For example, you can search for the following:
[wp_eStore:product_id:1244:end]
Then replace that with the following:
[wp_eStore_buy_now_button id=1244]
July 25, 2021 at 6:14 pm #83398admin
KeymasterIf you are not familiar with using the PHPMyAdmin tool then you can use the following plugin to do a search and replace of the shortcode in your entire site’s database:
July 26, 2021 at 8:29 am #83399henryp
ParticipantAlright, thanks very much for the response. I have downloaded that plugin.
Problem is with replacing the code,
“For example, you can search for the following:
[wp_eStore:product_id:1244:end]
Then replace that with the following:
[wp_eStore_buy_now_button id=1244]”Each product has a unique ID eg: [wp_eStore:product_id:01:end], [wp_eStore:product_id:02:end] etc all the way until [wp_eStore:product_id:3800:end]
So with this in mind, I am guessing it is impossible to mass edit these shortcodes?
Thanks again for your help!
henryJuly 26, 2021 at 6:37 pm #83400admin
KeymasterMass editing for that kind of condition will require a new script. Instead, maybe we can introduce that old style shortcode in the Extra Shortcodes addon. Let me know if you are still waiting to do the shortcode replacement or not. If you can wait a couple of days, we can give you an updated copy of the extra shortcodes addon with the old style shortcode.
On the side note: it’s probably a good idea to use the category option since you have a lot of products. Once you put a bunch of products into a category, you can list all of them from a particular category on a page using a shortcode.
July 27, 2021 at 10:55 am #83402henryp
ParticipantHi thanks. Yes, am still waiting to do the shortcode replacement. I mean, I have not solved the problem yet short of editing every product by hand. Am a little lost to be honest with what you said 🙂
July 27, 2021 at 10:10 pm #83408admin
KeymasterWe have added the old style shortocde in the extra shortcodes addon. So your existing shortcodes will start working after you install the extra shortcodes addon.
Download a new copy of the extra shortcodes addon and use it (if you already have this addon installed, delete the one there then download and install the new one):
August 2, 2021 at 8:18 am #83436henryp
ParticipantThanks for this amazing work around with the short codes add on!
I am actually still trying to download the add-ons for the past few days. Just having difficulty as I am not the person who bought the eStore plug in (that was my boss, so to speak). Anyway, that is why I have not responded sooner but will message back when I get it sorted. Thanks again!
Henry -
AuthorPosts
- You must be logged in to reply to this topic.