Alexander
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] External image on PDF invoiceHello,
Still no luck with the logo set as well.
I’ve also checked our custom template and hardcoded the logo in there but this doesn’t work either:
First few lines of
child-theme/woocommerce/pdf/customtemplate/invoice.php<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action( 'wpo_wcpdf_before_document', $this->get_type(), $this->order ); ?>
<table class="head container">
<tr>
<td class="header">
<img src='https://d5bm31en4blvo.cloudfront.net/uploads/2019/12/logo.png'/>
?>
</td>
<td class="shop-info">
<?php do_action( 'wpo_wcpdf_before_shop_name', $this->get_type(), $this->order ); ?>
<div class="shop-name"><h3><?php $this->shop_name(); ?></h3></div>
<?php do_action( 'wpo_wcpdf_after_shop_name', $this->get_type(), $this->order ); ?>
<?php do_action( 'wpo_wcpdf_before_shop_address', $this->get_type(), $this->order ); ?>
<div class="shop-address"><?php $this->shop_address(); ?></div>
<?php do_action( 'wpo_wcpdf_after_shop_address', $this->get_type(), $this->order ); ?>
</td>
</tr>
</table>Is it possible the plugin isn’t picking up on the template, otherwise would it just go for the direct image rather than try for the logo set in WP?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] External image on PDF invoiceTo answer your questions:
- We are using the Simple Premium template
- No logo is currently set as I thought this might interfere with the filter code, I will add the logo back, check and report back but let me know which was is preferable
- This was generated after the code was published and checking the latest orders since and still nothing
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] External image on PDF invoiceSure, here’s the link: https://file.io/GivcfUB3DT3K
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] External image on PDF invoiceI notice there is no
imgattribute in the&output=htmlversion either with this solution.Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] External image on PDF invoiceHi @yordansoares,
Thanks for the quick reply.
Unfortunately not having much luck with that code – still getting this in the logs:
2024-10-21T18:25:37+00:00 Critical Header logo file not found.I updated the image location, removed the currently set logo, cleared all caches to be safe and regenerated an invoice but no logo.
/**
* PDF Invoices & Packing Slips for WooCommerce:
* Set a shop logo manually (this will override the shop logo in the plugin's settings)
*/
add_filter( 'wpo_wcpdf_header_logo_img_element', function( $img_element, $attachment) {
// Set the URL of your shop logo below:
$shop_logo_url = 'https://d5bm31en4blvo.cloudfront.net/uploads/2019/12/logo.png';
return "<img src='{$shop_logo_url}'/>";
}, 10, 2 );Thanks for the reply @guicmazeredo.
Sorry I should have clarified, I meant a WP Core or Woo update that introduced some breaking changes. This is just a theory of course but the sudden, recent occurrence makes it feel a likely culprit.
But yes I will start a new thread once I manage to reproduce and I’ll include some more specific information on the site, plugins, environment etc.
Our website is experiencing the same issue too, which seems to have been echoed a few times on this support forum by various users as well as yourself.
I can’t seem to replicate the issue myself but I will test further using different browsers/settings shortly and report back. However, courtesy of customer reports it seems that the symptoms include (though there may be more):
- a customer enters their card details, click to pay and nothing happens (or the form is cleared)
- or that clicking the Pay with Debit/Credit Card button doesn’t do anything at all (the card details form never gets shown)
Logging is enabled but there is no resulting log entry to correspond with any of the customer reports.
The issue only seems to occur with the credit/debit option and not for all users, however, it must be a substantial amount as there have been regular reports for the past two weeks.
I’ve switched between both the current plugin and this one: https://ww.wp.xz.cn/plugins/woocommerce-paypal-payments/
Both are having very similar issues and again only within the last few weeks (likely in a recent update).
My guess is that this is an issue with the frontend and the order never even attempts to reach PayPal as I’ve talked to MTS and there seem to be no correlating orders or errors on their end.
PayPal’s “Smart Buttons” (a common theme between both these plugins), a JS error or maybe something browser-related – hence no error in the log file. However, I am just reaching at this point as cannot figure out what is going, especially since I can’t replicate it myself and have very limited customer reports to go on.
I will pass on any more information as I get more reports but if the plugin support team have any suggestions it would be greatly appreciated.
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] Stuck in OnboardingThanks for the reply.
I have a feeling that it is to do with this being a pre-existing PayPal account rather than a new one (or newer as our PayPal is many years old now). I haven’t tried to connect the plugin with sandbox just yet but using the link on the advanced processing page is like making a whole new account with entirely new payment terms, though we already have a sandbox account under the same email.
I’m slightly concerned that we need to make some sort account “upgrade” in order to be compatible with and enable this feature which might feed back into the existing fee structure we’ve negotiated under new terms.
This is a UK based business PayPal account if that helps.
I will try testing the feature with this sandbox account shortly and report back.
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] Stuck in OnboardingSame issue here and after contacting PayPal MTS they have recommended a different plugin rather than onboarding us.
Does anyone know how to enable credit card processing?
Forum: Plugins
In reply to: [Flare] Reddit share doesnt work (1.2.4)Same problem here, any solution to this yet as I do love Reddit.
Forum: Fixing WordPress
In reply to: Is it possible to add widgets to custom post types archive sidebar?Okay got a custom archive for the post type now (archive-djs.php)
I noticed I had to make it archive-djs rather than {djs}
But now there is no sidebar?
Forum: Fixing WordPress
In reply to: Is it possible to add widgets to custom post types archive sidebar?Hello, I have looked into what you suggested but I coan’t get it to work.
Heres what I did:
1) Added custom sidebar using this code:
if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Roster Sidebar', 'id' => 'roster-sidebar', 'description' => 'Appears as the sidebar on the roster', 'before_widget' => '<div style="height: 280px"></div><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); }2) Added widget to new sidebar
3) Created a new file called sidebar-roster.php with this code in:
<div id="sidebar"> <ul> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('roster-sidebar') ) : endif; ?> </ul> </div>4) Created a file called archive-{djs}.php and added:
<?php get_header(); if(have_posts()) : while(have_posts()) : the_post(); the_title(); echo '<div class="entry-content">'; the_content(); echo '</div>'; endwhile; endif; <?php get_sidebar('roster'); ?> get_footer(); ?>I then reloaded http://gummet.com/djs/ and it still have the default sidebar.
What am I doing wrong?
I also found this (http://codex.ww.wp.xz.cn/Page_Templates#Example_Using_Custom_Post_Types)
Maybe this is an option? But where would I upload it and what would I call it?
Thanks for the help 🙂
Forum: Fixing WordPress
In reply to: 500 Error can you help me with my .htaccess?Hello again,
I have talked to my host (GoDaddy) it seems the first error with mod_dir in it more of a warning due to something wordpress is doing. Apparently it should be looked at but isn’t ‘too big a deal’.
As for the second error:
(Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace)
They seem to think it is a plugin causing it. Trouble is, because the error happens randomly at different time intervals it is going to take a while to deactivate and reactivate each plugin to find this out.
I think it may well be the .htaccess file though as I looked up the error separately and found this:
Maybe it is worth a go? I know that there is some generic code in the htaccess file but im not should if tampering with it is a good idea. I got this code off that page:
RewriteRule ^(.+)$ /index.php/$1 [NC,L,QSA]
I looked in my php5.ini file check your php.ini too and REMOVED the Zend optimizer.
Thanks for the advice there but I just checked my ini file and all of the zend optimiser section is already commented out.
Forum: Fixing WordPress
In reply to: 500 Error can you help me with my .htaccess?Perfect I shall call them now, thanks alot!
Forum: Fixing WordPress
In reply to: 500 Error can you help me with my .htaccess?Helle Esmi,
I have to errors in the error logs:
This one which is repeatedly popping up
[Sun Jul 07 11:35:44 2013] [11063472] [dir:error] [client] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/72/11063472/html, referer http://rerral.com/
And this on which occasionally pops up:
[Sun Jul 07 11:35:42 2013] [11063472] [core:error] [client] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace., referer http://rerral.com/