Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore – extra paragraphs being added in front of product ID shortcode
Tagged: extra spaces, PHP, WP eStore
- This topic has 9 replies, 3 voices, and was last updated 11 years, 11 months ago by henryp.
-
AuthorPosts
-
December 11, 2012 at 12:03 pm #8129henrypParticipant
Hi everyone,
small problem here. I am creating a post and inserting in the eStore product ID link directly underneath some text – i.e:
MP3: 0.90
FLAC: 1.00
[wp_eStore:product_id:2909:end]
However, on viewing the page, above the product id link button thing, there is now an extra space added. This has happened with all new posts I have created and is only really a recent thing.
I have tried deactivating various plug-ins but this has made no difference. I can kind no extra <p> characters being added in HTML view, nothing looks out of the ordinary here so I am baffled as to why these spaces are being added.
I have tried creating a new page and only adding the product id in and the space is still the same. A conflict somewhere?
I am using Suffusion theme and the most up to date WordPress install
You can see a page with the problem here:
[http://www.rerdownloads.com/?p=6859]
Any help is greatly appreciated! Thanks in advance
henry
December 11, 2012 at 9:47 pm #52253PeterMemberHi, Could be that your theme is adding the extra spaces.
Which version of eStore are you using?
The shortcode you have mentioned appears to be an “old” one written in pre WP2.5 days.
Please see this post and try the new shortcode as per amin007’s reply:
December 12, 2012 at 1:25 pm #52254henrypParticipantHmm yes I think indeed it is/was the theme adding the spaces.
(Version of eStore is latest I believe)
I changed the shortcode to the new one, yes I believe this was the problem as using a new one, the spaces have disappeared. Great!
Just have to edit all album pages now – doh!
Thanks for the help!
HP
December 12, 2012 at 5:13 pm #52255henrypParticipantThat is pretty annoying they should change it. Now they look different and do not ‘go’ with the rest of my content so much. Also I have to change over 200 product ID’s on my site? Is there any other way?
December 12, 2012 at 9:11 pm #52256PeterMember“I have to change over 200 product ID’s on my site”
A: You can use PHPMyAdmin to make changes to the DB tables. In your case it will be the table called “wp_wp_eStore_tbl”.
Also remember that the ID must be unique for each product.
See this video tutorial for how to PHPMyAdmin to make DB changes:
December 16, 2012 at 2:10 pm #52257henrypParticipantI have followed the video and imported the file into spreadsheet. But, there is no option here to change the product id code. Only prices and data located in the manage add/edit products section. Do i need a different file to change the product shortcodes?
thanks
December 16, 2012 at 11:07 pm #52258adminKeymasterThe product ID code is for internal use only. It is automatically assigned when records are entered into the database. You can’t change this value (there is no need to change it for the plugin to work anyway). You simply take the product ID value of a product and use it in the shortcode.
December 17, 2012 at 7:33 pm #52259henrypParticipantNo, I dont need to change the ID value. I probably didnt explain properly but am trying to change the shortcode in all 200 of my posts. The shortcode from [wp_eStore:product_id:2909:end] (which is adding in spaces)
to
[wp_eStore_buy_now_button id=]
Just wondering if there is any other way round it
December 18, 2012 at 4:18 am #52260adminKeymasterI see what you mean. There is no automated way to change those shortcodes unfortunately.
December 18, 2012 at 12:59 pm #52261henrypParticipantOk no worries. Thanks for the help though!
H
-
AuthorPosts
- You must be logged in to reply to this topic.