Jump to content


Photo
- - - - -

Pagelines error with EasyDigitalDownloads : view_receipt

EasyDigitalDownloads Header Footer

Best Answer frankmoeller , 24 April 2013 - 06:59 PM

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.ibi...ey={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!

Go to the full post


  • Please log in to reply
8 replies to this topic

#1 frankmoeller

frankmoeller

    Newbie

  • Members
  • 4 posts
  • Country: Country Flag

Posted 24 April 2013 - 08:05 AM

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

Please Login or Register to see this Hidden Content

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

Please Login or Register to see this Hidden Content

.

 

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:                

Please Login or Register to see this Hidden Content

HOME_URL:                

Please Login or Register to see this Hidden Content

 
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 ###
 

 

Attached Files



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 16376 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 24 April 2013 - 08:42 AM

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.



#3 frankmoeller

frankmoeller

    Newbie

  • Members
  • 4 posts
  • Country: Country Flag

Posted 24 April 2013 - 02:47 PM

Hi Danny,

did you find any solution for that?



#4 meilena

meilena

    Advanced Member

  • Members
  • 62 posts
  • Country: Country Flag

Posted 24 April 2013 - 03:50 PM

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



#5 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 24 April 2013 - 05:02 PM

Why do you need a php file?

 

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



#6 frankmoeller

frankmoeller

    Newbie

  • Members
  • 4 posts
  • Country: Country Flag

Posted 24 April 2013 - 05:10 PM

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.

Please Login or Register to see this Hidden Content

(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.



#7 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 24 April 2013 - 05:43 PM

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.


#8 frankmoeller

frankmoeller

    Newbie

  • Members
  • 4 posts
  • Country: Country Flag

Posted 24 April 2013 - 06:59 PM   Best Answer

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="

Please Login or Register to see this Hidden Content

">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!



#9 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 24 April 2013 - 07:04 PM

Yea that was the other way ;) 







Also tagged with one or more of these keywords: EasyDigitalDownloads, Header, Footer