flapane
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Direct Variation Link] BehaviorAs the official support suggested me, adding “pa_” in front of the attribute (from “colore” to “pa_colore” worked.
Forum: Plugins
In reply to: [WooCommerce Direct Variation Link] BehaviorActually, I can’t even make it work (latest Woocommerce).
The yoursite.com/your-single-product/?colore=blu (where colore is the attribute and blu a variation of the product) method doesn’t do anything. I just see the default product page.Forum: Plugins
In reply to: [Invoices for WooCommerce] Invoice Number and VAT Number Features suggestionsDone it:
in functions.php
//Add the field to the checkout - Codice fiscale/partita IVA add_action('woocommerce_after_order_notes', 'codfisc_checkout_field'); function codfisc_checkout_field( $checkout ) { echo '<div id="codfisc_checkout_field">'; woocommerce_form_field( 'codfisc_field_name', array( 'type' => 'textarea', 'class' => array('codfisc-field-class form-row-wide'), 'label' => __('Codice Fiscale / P.IVA'), 'placeholder' => __('Inserisci il tuo Codice Fiscale o la partita IVA.'), ), $checkout->get_value( 'codfisc_field_name' )); echo '</div>'; } // Process the checkout - Forza l'inserimento delle misure del capo add_action('woocommerce_checkout_process', 'codfisc_process'); function codfisc_process() { global $woocommerce; // Check if set, if its not set add an error. if (!$_POST['codfisc_field_name']) $woocommerce->add_error( __('Per piacere inserisci il tuo Codice Fiscale o la partita IVA.') ); } //Update the order meta with field value - Codice fiscale/partita IVA add_action('woocommerce_checkout_update_order_meta', 'codfisc_update_order_meta'); function codfisc_update_order_meta( $order_id ) { if ($_POST['codfisc_field_name']) update_post_meta( $order_id, 'Inserisci il tuo Codice Fiscale o la partita IVA', esc_attr($_POST['codfisc_field_name'])); } //Display field value on the order edition page - Codice fiscale/partita IVA mostrati nel pannello di amministrazione add_action( 'woocommerce_admin_order_data_after_billing_address', 'codfisc_display_admin_order_meta', 10, 1 ); function codfisc_display_admin_order_meta($order){ echo '<p><strong>'.__('Codice Fiscale o Partita IVA').':</strong> ' . $order->order_custom_fields['Inserisci il tuo Codice Fiscale o la partita IVA'][0] . '</p>'; }
In class-invoice.php (located in the folder’s plugin)
$codfisc_note = $order->order_custom_fields['Inserisci il tuo Codice Fiscale o la partita IVA'][0];
AND<span style="font-weight: bold;"><?php echo __( 'Codice Fiscale / Partita IVA:', 'woocommerce-pdf-invoices' ); ?></span><br /> <?php echo $codfisc_note; ?><br /><br />
Forum: Plugins
In reply to: [Invoices for WooCommerce] Invoice Number and VAT Number Features suggestionsHi,
being Italian, I agree. It would be *great* to show in the PDF invoice a WP-commerce custom field, such as the customer Fiscal Code number.
How do we grab a custom field from WP-Commerce and add it to the PDF Invoice template?
Thankswoocommerce-pdf-invoices-it_IT mo and po uploaded in lang folder.
However, the PDF is still in english.
RegardsForum: Fixing WordPress
In reply to: WP Super cache plugin and Adsenseedit
Forum: Themes and Templates
In reply to: [Portfolio Press] Add SidebarYou can use the translator in the sidebar and select English language.
The text is translated through Google Translator. It’s not much, but it’s better than italian language for foreigners. ??@martin
Which, unfortunately, has never worked or so. ??
Recently, I started using a Windows build of jpegoptim, so that I can optimize the image BEFORE uploading it on the webserver. I can’t optimize the thumbnails, but it’s better than nothing.Yep.
It’s a matter of hosting security policy.You need to execute binary files.
In my case, I can’t:
EWWW Image Optimizer requires exec(). Your system administrator has disabled this function.Same here.
It’s a shame, because I found that by manually losslessy compressing all the images on the static pages of the website through command line utilities, I managed to save a lot of bandwith.Thanks, it worked.
I suppose that the problem is due to something weird in my comments.php (maybe the function that separates comments from pingbacks/trackbacks).[Code moderated as per the Forum Rules. Please use the pastebin]
Hi,
I used “7” as default value in that section, under the “split comments in pages with *7* comments each, and with the last page displayed as default page” option.
However, I still see all the comments in the same page.Thanks
Forum: Plugins
In reply to: Exclude Trackbacks and Pingbacks from Defualt WordPress Recent Commentsbump
Any updates regarding the statements that even putting 0% doesn’t disable the donation Percentage?
https://www.warriorforum.com/adsense-ppc-seo-discussion-forum/299662-warning-all-one-adsense-ypn-plugin-users.htmlThat warrior forum thread is quite recent, I’m sure that we all would APPRECIATE an offical answer by you on that forum (either they’re slandering you, or they’re telling the truth).