Gritcore
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Variable Pricing for Gift CertificatesYou can do this with the commercial plugin “Smart Coupons”
https://docs.woothemes.com/document/smart-coupons/#section-8Forum: Plugins
In reply to: [Gigaom New Relic] Yoast XML Sitemap incompatibility?Try this…
Edit /plugins/wordpress-seo/inc/class-sitemaps.php
Below 794, insert the newrelic code, so ultimately you should end up with this:
header( 'X-Robots-Tag: noindex, follow', true ); header( 'Content-Type: text/xml' ); echo '<?xml version="1.0" encoding="' . get_bloginfo( 'charset' ) . '"?>'; if (extension_loaded('newrelic')) { newrelic_disable_autorum(); } if ( $this->stylesheet ) echo apply_filters( 'wpseo_stylesheet_url', $this->stylesheet ) . "\n";
Forum: Plugins
In reply to: [Gigaom New Relic] Yoast XML Sitemap incompatibility?I can confirm this issue. There is a related discussion here: https://github.com/Yoast/wordpress-seo/issues/603
It sounds like the Yoast SEO plugin should make itself compatible with New Relic.
The suggested fix is to add the following to any XML sitemaps. I’ll post here again if/when I figure out how to do so; please do the same if you beat me to it.
if (extension_loaded('newrelic')) { newrelic_disable_autorum(); }
Forum: Plugins
In reply to: how to delete the 'sort by' option in woocommerce?Try adding this to your style.css, child theme, or any “custom CSS” input area in your theme’s options (if present):
form.woocommerce-ordering { display: none; }
Forum: Plugins
In reply to: Wp-Insert trouble? site unreadable on mobile, hacked by adsYou should ask the company that provides the ads
Check out woocommerce-delivery-notes/templates/print/print-delivery-notes.php , lines 22-31
<div id="order-listing"> <h3><?php _e( 'Recipient', 'woocommerce-delivery-notes' ); ?></h3> <div class="shipping-info"> <?php if( wcdn_get_template_type() == 'invoice' ) : ?> <?php wcdn_billing_address(); ?> <?php else : ?> <?php wcdn_shipping_address(); ?> <?php endif ?> </div><!-- .shipping-info --> </div><!-- #order-listing -->
Change those lines to something like this:
<div id="order-listing"> <h3><?php _e( 'Bill To', 'woocommerce-delivery-notes' ); ?></h3> <div class="shipping-info"> <?php if( wcdn_get_template_type() == 'invoice' ) : ?> <?php wcdn_billing_address(); ?> </div> <div style="padding-top:20px;"></div> <h3><?php _e( 'Ship To', 'woocommerce-delivery-notes' ); ?></h3> <div class="shipping-info"> <?php wcdn_shipping_address(); ?> <?php else : ?> <?php wcdn_shipping_address(); ?> <?php endif ?> </div><!-- .shipping-info --> </div><!-- #order-listing -->
What the code does: When printing an Invoice, the word “Recipient” is changed to “Bill To”. Beneath the “Bill To” address is 20px of padding, followed by another heading that says “Ship To”, followed by the shipping address.
What the code does not: The output of “Print Delivery Note” is not changed.
Issue: https://github.com/woothemes/woocommerce/issues/3764
Fixed in woocommerce 2.0.15
Resolution commit: https://github.com/woothemes/woocommerce/commit/f9924741f7276ee0b97ca6f76c421627973a5cfd
Forum: Localhost Installs
In reply to: Forbidden – Just migrated to AWSDid you try the suggestion above?
find /path/to/your/wordpress/install/ -type d -exec chmod 755 {} \;
find /path/to/your/wordpress/install/ -type f -exec chmod 644 {} \;Seems like you have a file permission issue…