Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › eStore – modifying [wp_estore_display_transaction_results] shortcode content
Tagged: purchase history, WP eStore
- This topic has 8 replies, 3 voices, and was last updated 10 years, 8 months ago by wzp.
-
AuthorPosts
-
March 12, 2014 at 3:17 am #10477pmirdaMember
Hey, just wanted to say great job on the plugin. Really love it!
I have 2 questions. First, i wanted to modify the [wp_estore_display_transaction_results] shortcode content as there is a big space after “You ordered the following item:”. I want to take the space after that statement out. Here is a screen shot of what I am talking about: [http://www.the-optimal-you.com/wp-content/uploads/2014/03/Capture.jpg]
Next, I have many error lines in my purchase history page. It has several lines stating “Error – Could not find the requested product ID in the product database!”. Here is a screen shop of this issue: [http://www.the-optimal-you.com/wp-content/uploads/2014/03/Capture2.jpg]
Any help regarding these matters would be much appreciated!
Thanks in advance for all who put the time to read my post
All the best,
Paul
March 12, 2014 at 3:40 pm #61499wzpModeratorTo modify the shortcode, look for the eStore_display_transaction_result() function definition in the eStore_includes3.php file.
Is that screenshot something you personally took, or that somebody sent you?
Are there any products (by product ID) that may have been previously purchased, that are no longer in the database? This includes any “test products.”
Do you know how many items you are expecting to see in the listing?
March 12, 2014 at 4:41 pm #61500pmirdaMemberThank you wzp. You were correct about my second question. As for the first, I am not code savvy, so I am having a difficult time removing that space in between the two line.
March 12, 2014 at 5:17 pm #61501wzpModeratorWell, the large break after “You ordered the following items:” is the result of 2 nested CSS DIV blocks before the details section, that appear in the referenced function as:
$output .= ‘<div STYLE=”word-wrap: break-word”>’;
$output .= ‘<div class=”eStore_thank_you_your_order”>’.WP_ESTORE_YOUR_ORDER.'</div>’;
$output .= $_SESSION;
$output .= ‘</div>’;
Now since, the eStore_thank_you_your_order CSS class is currently defined as NULL, you could try modifying those 4 lines of code as follows:
$output .= ‘<div STYLE=”word-wrap: break-word”>’;
$output .= WP_ESTORE_YOUR_ORDER;
$output .= $_SESSION;
$output .= ‘</div>’;
This will eliminate some of the extra space.
March 13, 2014 at 3:45 am #61502adminKeymasterYou should be able to do that change via custom CSS (I would recommend you take this approach if possible):
Grab this plugin:
http://www.tipsandtricks-hq.com/wordpress-custom-css-plugin-6413
Now, add the following CSS in there (you can also try adjusting the space using margin and padding maybe):
.eStore_thank_you_your_order{
display: inline;
}
March 13, 2014 at 6:16 am #61503pmirdaMemberI installed the plugin and added the custom CSS code, but unfortunately no luck…
March 13, 2014 at 3:15 pm #61504March 13, 2014 at 3:36 pm #61505March 13, 2014 at 5:20 pm #61506wzpModeratorObviously, there is another layer of CSS at work here… Could you please read through this tutorial and video, and then try to apply what you learned to the page in question?:
Any CSS “tweaks” that you figure out can be permanently applied, via the Custom CSS plugin.
-
AuthorPosts
- You must be logged in to reply to this topic.