spanky22
Forum Replies Created
-
Forum: Plugins
In reply to: [Decorator - WooCommerce Email Customizer] new order email conainer box size.FYI: I edited the email-styles.php from 12 to 5 on padding.
located in: themename>woocommerce>emails#body_content table td td { padding: 5px;
ANSWER:
accessed the (woocommerce/emails/email-styles.php) file and changed margin until I liked the outcome.Forum: Plugins
In reply to: [Decorator - WooCommerce Email Customizer] Customiser blankIs this your route of navigation?
Woocommerce> Settings> Email(tab)> Open Decorator(button)
This should be the way to access it.
I can see my customizer settings.
using wordpress 4.7.3
using woocommerce 2.6.14
using decorator 1.0.1Odd, it’s formatting my code, so let me type it with spaces, and you just put it all together.
Type this instead: (NO UNDERSCORES)
&_#_3_9_;Instead of typing an actual ‘
Try typing this instead:'
- This reply was modified 7 years, 8 months ago by spanky22.
Forum: Plugins
In reply to: [WooCommerce] Is it possible to run two woocommerce shops?No one ever run into this?
Dashboard, woocommerce, checkout form, billing fields (or shipping fields)
okay, now:
click EDIT on the far right of the field(s)
you will get a window prompt with lines like this:
Label: Address
placeholder: (greyed suggestive text in the field)
Class: form-row-wide,address-fieldCLASS is the line you need to play with. (for EVERY FIELD)
form-row-wide
OR form-row-first
OR form-row-lastOne of these 3 need to be put in your class field.
THEN: if the CLEAR ROW box is checked.. this means, nothing will go beside the first box.
CLEAR ROW basically equals new field on a new line.- This reply was modified 7 years, 9 months ago by spanky22.
Make sure the one on the left is set to something like:
Form-field-first
Then phone on right is set to something like:
form-field-lastclick on Edit
This will pop up your edit screen
Label: Change this to edit the “Name” or text displayed before the entry box.
Placeholder: Change this to edit the “greyed out” suggested sample text that is seen in the entry box.make sure to click the button at the bottom. Do not click the X to close the edit window.
Forum: Plugins
In reply to: [Decorator - WooCommerce Email Customizer] Customiser blankthis is just a guess.
try email-styles.php file in the woocommerce emails template folder.
this “like-file” may also be in your theme folder, and be reading that.Forum: Plugins
In reply to: [WooCommerce] New Order Email – Need help with margins.[SOLVED]
What I did:
copied the email-styles.php file from the woocommerce/emails/templates folder.
pasted that file to my-theme folder/woocommerce/emails.opened, and edited:
} #body_content p { margin: 0 0 1px; /** EDITED 16px to 1px **/ }
[SOLVED]
What I did:
copied the email-styles.php file from the woocommerce/emails/templates folder.
pasted that file to my-theme folder/woocommerce/emails.opened, and edited:
} #body_content p { margin: 0 0 1px; /** EDITED 16px to 1px **/ }
for further reference, here is the template that is used when emailed out:
<?php /** * Admin new order email * * This template can be overridden by copying it to yourtheme/woocommerce/emails/admin-new-order.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates/Emails/HTML * @version 2.5.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * @hooked WC_Emails::email_header() Output the email header */ do_action( 'woocommerce_email_header', $email_heading, $email ); ?> <p><?php printf( __( 'You have received an order from %s. The order is as follows:', 'woocommerce' ), $order->get_formatted_billing_full_name() ); ?></p> <?php /** * @hooked WC_Emails::order_details() Shows the order details table. * @hooked WC_Emails::order_schema_markup() Adds Schema.org markup. * @since 2.5.0 */ do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); /** * @hooked WC_Emails::order_meta() Shows order meta data. */ do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); /** * @hooked WC_Emails::customer_details() Shows customer details * @hooked WC_Emails::email_address() Shows email address */ do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); /** * @hooked WC_Emails::email_footer() Output the email footer */ do_action( 'woocommerce_email_footer', $email );
Forum: Plugins
In reply to: [WooCommerce] New Order Email – Need help with margins.Hi Riaan,
Thanks for your help.
I am using a plugin called Decorator to help with some of the formatting.The new order email is using a template, but I don’t see where I can edit anything, that might changes the spaces.
Could you take a look at my template?<?php /** * Admin new order email * * This template can be overridden by copying it to yourtheme/woocommerce/emails/admin-new-order.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates/Emails/HTML * @version 2.5.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * @hooked WC_Emails::email_header() Output the email header */ do_action( 'woocommerce_email_header', $email_heading, $email ); ?> <p><?php printf( __( 'You have received an order from %s. The order is as follows:', 'woocommerce' ), $order->get_formatted_billing_full_name() ); ?></p> <?php /** * @hooked WC_Emails::order_details() Shows the order details table. * @hooked WC_Emails::order_schema_markup() Adds Schema.org markup. * @since 2.5.0 */ do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); /** * @hooked WC_Emails::order_meta() Shows order meta data. */ do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); /** * @hooked WC_Emails::customer_details() Shows customer details * @hooked WC_Emails::email_address() Shows email address */ do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); /** * @hooked WC_Emails::email_footer() Output the email footer */ do_action( 'woocommerce_email_footer', $email );
For other reference; here are my extras that I added to my checkout form:
https://imgur.com/a/zS0ptThanks again for helping,
SpankHi Paul,
I’m not doing anything special, other than adding a few lines to the checkout form, and or changing the title of a field such as “last name” changed to “reference code #”.
I have attached here a image link of all 3 fields of the checkout form.
Hopefully this will help identify a way to solve the problem…
https://imgur.com/a/zS0ptThanks for helping,
Spank