Jump to content
frankmoeller

Pagelines error with EasyDigitalDownloads : view_receipt

Recommended Posts

frankmoeller    0
frankmoeller

Dear pagelines team,

 

first of all. Thank you so much for a very professional Wordpress framework. I really like using pagelines and cannot imagine, how I could survived in the past without it.

 

Now to my problem:

I have a shop plugin installed called EasyDigitalDownloads. Everything works great, except showing purchase receipts. I contacted the EasyDigitalDownloads support before and we came up with an issue, which is caused by the pagelines framework.

 

This is the support thread with EasyDigitalDownloads.

 

EasyDigitalDownloads provides the functionality to send a purchase receipt to your customers. Within that receipt, there is a link to the buyers receipt in html format.

 

This is an example.

 

As described in the support thread with EasyDigitalDownloads, the receipt has a warning in the header and footer area. Essentially, what EasyDigitalDownloads is doing: call to wp_head(); at the beginning and wp_footer(); at the end of the receipt.

 

When I change my theme to something else than pagelines, the receipt looks great. With pagelines, I get these weird warning messages. 

 

The guess from EasyDigitalDownloads: "My guess is that the theme is hooking in a function that fails when not viewing it from a normal template file."

 

I attached the template.php, which is used to generate the receipt in the browser. What can I do, to have the header and footer of my site displayed as well as the receipt itself.

 

I tried changing wp_head(); to get_header() and wp_footer() to get_footer(), but then I loose plenty of the receipt's styling.

 

System information:

 

 

### Begin System Info ###
 
## Please include this information when posting support requests ##
 
Multi-site:               No
 
SITE_URL:                 https://www.ipin.ibilities.com
HOME_URL:                 https://www.ipin.ibilities.com
 
EDD Version:              1.5.2
WordPress Version:        3.5.1
                         
PHP Version:              5.3.13
MySQL Version:            5.1.56-log
Web Server Info:          Apache
 
PHP Safe Mode:            No
PHP Memory Limit:         90M
PHP Post Max Size:        7M
PHP Time Limit:           30
 
WP_DEBUG:                 Disabled
 
WP Table Prefix:          Length: 10 Status: Acceptable
 
UPLOAD_MAX_FILESIZE:      7MB
POST_MAX_SIZE:            7MB
WordPress Memory Limit:   40MB
DISPLAY ERRORS:           On (1)
FSOCKOPEN:                Your server supports fsockopen.
 
ACTIVE PLUGINS:
 
Easy Digital Downloads: 1.5.2
Easy Digital Downloads - Software Licenses: 1.4.3
Easy Digital Downloads multilingual: 1.1.1
Installer: 0.5
Jetpack by WordPress.com: 2.2.2
Pagelines Sections: 1.0
Post Types Order: 1.5.7
WPML Multilingual CMS: 2.8.1
WPML Sticky Links: 1.3
WPML String Translation: 1.7
 
CURRENT THEME:
 
PageLines Framework: 2.4.1
 
### End System Info ###
 

 

template.php

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi Frank,

 

 

All of the PageLines products are built according to WordPress API standards and do work with the majority of plugins out there. If the plugins author have informed you that the error is theme related, we will bring this to our developers attention, please bear in mind this is an advanced question and may take more time with a response.

 

Thanks for your patience.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
frankmoeller    0
frankmoeller

Hi Danny,

did you find any solution for that?

Share this post


Link to post
Share on other sites
meilena    8
meilena

We apologize for the delay, we have alerted our developer, however there may be a delay in response.


Meilena Hauslendale

PageLines.com

"A Better Way to Build Websites"

Share this post


Link to post
Share on other sites
Simon    247
Simon

Why do you need a php file?

 

They provide a shortcode that can go in any page: [edd_receipt]

Share this post


Link to post
Share on other sites
frankmoeller    0
frankmoeller

Hi Simon,

 

from your question, I think I need to clarify the question or issue with Pagelines framework:

 

As I mentioned above, EDD creates a purchase receipt email, which will be sent to our customer upon success purchase of a product. Within that email is a link to the respective purchase receipt.

 

This links goes to e.g. https://www.ipin.ibilities.com/?purchase_key=09b821bb0de483f80cf6b99fcc2b15d4&edd_action=view_receipt

(Copied from the generated email).

 

The php file is the method, which from my point of view gets called, as soon as the user clicks the link. And with the provided link above, you can see the result of that, which does not happen, if you use Twenty Elven or Twenty Twelve.

 

So I don't need the php file, but EasyDigitalDownloads does as well as our customers, who want to see their receipt without warnings in the header or footer area.

 

I'm looking forward to your feedback.

Share this post


Link to post
Share on other sites
Simon    247
Simon

Ok looked at it a bit more... pretty easy after i read their docs.

 

1. Create a new page and add the receipt shortcode [edd_receipt] and whatever else you want in the page. Make a note of the pages 'slug'

2. Add the following filter to either a child theme functions, or the customize plugins functions file.

 

add_filter( 'edd_email_template_tags', 'change_email_url' );
function change_email_url( $message ) {
    $url = str_replace( '?purchase_key', '/sample-page/?purchase_key', $message );
    return $url;
}
I highlighted the 'slug' i tested with on my install.

Share this post


Link to post
Share on other sites
frankmoeller    0
frankmoeller

Hi Simon, thank you very much for your help.

I'm afraid to say, that this didn't resolve my problem completely, but you pointed me to the complete correct direction.

 

Strangely, the filter is not getting called, which I think is actually an issue with EDD, not Pagelines.

 

But I created a new page called "receipt", added the short code and within the email template from EDD I do the following now:

 

<a href="https://www.ipin.ibilities.com/receipt/?purchase_key={receipt_id}">Your receipt</a>

 

Whereas {receipt_id} get's replaced with the correct ID to view the purchase receipt on the page called "receipt".

 

I'm very happy! Thanks again. You have a great support team!

Share this post


Link to post
Share on other sites
Simon    247
Simon

Yea that was the other way ;) 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • flourishdesignstudio
      By flourishdesignstudio
      Hello,
      I have an older site that was built using PageLines several years ago (prior to the release of DMS). I wanted to leverage some of the power of your new PL5 plugin but the theme prevents be from adding any generated custom sidebars to the theme (through the drag and drop interface) and does not allow me to add any PL5 sections/containers/etc to the header or footer. Is there any way to easily override that or am I stuck only using PL5 in the content areas of the site?
      Thanks so much for the help!
    • JP
      By JP+
      Hello,
      How can you set the translations with platform5, the parts that are not in pages or posts? Texts and images…
    • Houston Haynes
      By Houston Haynes+
      OK - folks - back with another nit... The "back to top" link works - BUT - it's only active (i.e. clickable with the associated action following) when the mouse-over hovers over the footer area of the page. I did a quick change of the z-depth (to -1) and nothing made a difference. Any thoughts on how to make the *entire* back-to-top icon hover-able/actionable? Thanks!
       

    • romanondrasek
      By romanondrasek
      hi all, I have some trouble using PL5 on my site. 
      I used plugins for event calendar (event on) and plugin (timetable responsive scheduler for WP) for schedule (classes) in the gym.
      The problem is, that post from this 2 plugins are shown without menu in header and footer. (I setup header and footer) in the page editor for all type of page. 
      When I create a lesson, it creates posts with slug (I have a slug "lekce" & event for events).
      I try to edit the post with PL editor, but editor is not opening on the post.

      Do you have some idea where should be some problem? Thanx so much.
      here are links for the sites :
      site with schedule :
      http://www.myfit.cz/rozvrh/
      site of one of the class (pilates)
      http://www.myfit.cz/lekce/pilates/
      site with calendar :
      http://www.myfit.cz/kalendar/
      7 side with one event from the calendar :
      http://www.myfit.cz/event/pilates-instruktor-akreditovana-licence/?ri=1
      when I have my site on DMS2 it was working :-(
       
       
×