sinalarteweb
Forum Replies Created
-
Forum: Plugins
In reply to: [Quotes for WooCommerce] Display order customer note in request-new-quoteHi, Pinal
Thank you very much, it worked!
Topic closed.
Best regards.
Forum: Plugins
In reply to: [Quotes for WooCommerce] Display order customer note in request-new-quoteHi, Pinal Shah
Thank you for the quick response. The code in functions.php didn’t work. No errors, but didn’t give me nothing, I believe the reason is because i’m using template request-new-quote in child theme.
Is there a way to insert code between these two lines, at the end of file request-new-quote.php?
<?php do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); ?> <?php do_action( 'woocommerce_email_footer' ); ?>For instance, if I add
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );it shows me what I want, but also brings up the whole table again, perhaps because of the array.
Is it possible to work with:
do_action( 'woocommerce_email_order_meta', <strong>$order->get_customer_note</strong>, $sent_to_admin, $plain_text, $email );Forum: Plugins
In reply to: [Quotes for WooCommerce] Error after updating to WooCommerce 6.0Good morning, Pinal Shah,
Problem solved! First I deactivate Quotes Plugin, then I update WooCommerce 5.9 to 6.1. This update requires database update which I did still with Quotes deactivated.
Next, I forced some scheduled actions from WooCommerce, and finally activate Quotes plugin only when I receive the success message from WooCommerce database update.Everything is working now.
Thanks!
PS: I have other question, but it’s related with email templates, I’m going to open new topic.
Forum: Plugins
In reply to: [Quotes for WooCommerce] Error after updating to WooCommerce 6.0Hi, Pinal Shah,
It’s a fatal error (frontend and admin), that’s the big problem. And the only way to put the site back online, is to enter in admin panel in recovery mode, and roolback woocommerce version, or deactivate plugin quotes for woocommerce.
Good luck on the resolution, hope to hear from you soon.
Thanks in advanced.
Forum: Plugins
In reply to: [Quotes for WooCommerce] WooCommerce update 5.4.1Hi, @pinalshah,
I’m going to test better because I have some development on child-theme related to email templates from quotes plugin.
Thanks!
Forum: Plugins
In reply to: [Quotes for WooCommerce] Email Templates html in foreach $argsHi @pinalshah ,
I solve this topic making a workaround on the email-order-items.php. I copy the file to my child theme and made the styling changes there, so the request-new-quote.php is done. The
echo ($order_obj->email_order_items_table( $args ));loads exactly what I need, with the right style.But now I’m dealing with other situation in the template new-request-sent-customer.php. I would like the customer to see all the information as request-new-quote.php but not the price.
I notice you use the if ($display_price) which is good, but how can I insert the image, sku and variations? If I put
echo ($order_obj->email_order_items_table( $args ));the price is shown and I can’t have another personalized email-order-items.php in my child theme.I try to copy the line “get_name”, and change to “get_sku”, but it didn’t work.
<td style="text-align:left; border: 1px solid #eee;"><?php echo wp_kses_post( $items->get_sku() ); ?></td>Thanks!
Forum: Plugins
In reply to: [Quotes for WooCommerce] Email Templates html in foreach $argsHi @pinalshah ,
If I change the style in th, only changes my table headers.
At first I was able to manage the individual style when you have the code for the cycle with td, but this way, not all the information is displayed (images for example).Code with td
Problem: Don’t know how to put the images and variation informations<?php foreach ( $order_obj->get_items() as $items ) { ?> <tr> <td style="text-align:left; border: 1px solid #eee;"><?php echo wp_kses_post( $items->get_name() ); ?></td> <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_attr( $items->get_quantity() ); ?></td> <td style="text-align:left; border: 1px solid #eee;"><?php echo wp_kses_post( $order_obj->get_formatted_line_subtotal( $items ) ); ?></td> </tr> <?php } ?>Code without td
Problem: The array shows all the information I need, but since it’s array, I can’t ungroup to style each information.<?php foreach ( $order_obj->get_items() as $items ) { $args = array('show_download_links' => $downloadable, 'show_sku' => true,'show_purchase_note' => true,'show_image' => true,'image_size' => array( 25, 25 )); } echo ($order_obj->email_order_items_table( $args )); ?> </table>Hope I was clear.
Thanks in advanced