Forum Replies Created

Viewing 15 replies - 1 through 15 (of 35 total)
  • Thread Starter eli0086

    (@eli0086)

    That worked perfectly! Thank you for your help!

    • This reply was modified 1 year, 7 months ago by eli0086.
    Thread Starter eli0086

    (@eli0086)

    Want to update what I’ve found on this issue. If I use the same function to generate a coupon code and send an email, the issue does not occur. Meaning, it seems to be unique to the “Send Email” action and integration. Sending an email with Woocommerce does not produce the issue of adding the “p” on either side of the email address.

    @musosoft Your suggestion on installing the redux plugin did work for me, however it would be nice to not have an extra plugin just for this. This plugin seems to be the only one utilizing this at this time in my case.

    I suppose it is a good temporary fix though. Thanks for the suggestion!

    @musosoft Thanks for your reply on this. Unfortunately, it’s not the same issue for me. I deactivated all plugins and switched to a default theme. Only plugin activated was the WP Mail Logging plugin and the error in the dashboard remains.

    Seems there is something out of date with the plugin itself.

    I’m getting the same error over here. Any update on getting it resolved?

    Where is this option located? I do not see the option to disable the animation anywhere in the settings.

    Thread Starter eli0086

    (@eli0086)

    Hmmm…. it still seems to be working for me on PHP 7.1.26. However, I’m not using the NextScripts: SNAP Pro Upgrade Helper, only the Networks Auto-Poster.

    Thread Starter eli0086

    (@eli0086)

    Since the site is on shared hosting, there wasn’t really an option to restart the server. However, I noticed that the client was running an older php version. so I upgraded the php version to 7.1 for now and for whatever reason ended up clearing the error message on the plugin.
    Thanks for your help.

    Can you explain what you mean by “Table that the Product Title appears in”? As far as I know it’s not a table, but is divs or sections. You can adjust the size of the main product image section to be less wide so that the product title has more room. However, you’ll need to adjust for every screen size as this will change depending on the device.

    If the title is too much space between lines, you can add this to the same h1.product_title tag I mentioned above:

    line-height: 20px; //change the amount to your desired number - changes space between text lines

    Not sure what you mean on your 3rd part, but perhaps a link to the page or a link to a screenshot that we can see what you’re referring to?

    I’m not familiar with the WP Product Review Lite plugin, but if you send a link of the site you are working on, maybe I can determine the CSS you need to change that. Either that, or you need to post on their support forum directly instead of on the Woocommerce one.

    eli0086

    (@eli0086)

    Any chance you need to reset your permalinks? I’m noticing that your checkout page is going to this link: https://www.research-chem.nl/?page_id=653

    I’m not sure what page you have set for the checkout page, so I can’t check to see if that URL is working properly. The rest of your pages seem to have pretty permalinks, so something seems amiss there.

    1. Click on General => Permalinks
    2. See what your current permalink settings are
    3. Depending on your current settings, select a different permalink option ( IE: if you are set to Post name, select Default.
    4. Click Save Changes
    5. Now that your changes have saved, select the original Permalink setting
    6. Click Save Changes
    7. Check to see if your permalinks have corrected
    eli0086

    (@eli0086)

    Custom css can be entered at:
    Dashboard > Appearance > Customize > Additional CSS

    eli0086

    (@eli0086)

    Are you able to add custom css to your wordpress theme? If so, you could add something like the following to your custom CSS file:

    h1.product_title {font-size: 20px;} // change 20px to desired size (example: 25px)

    Or you may need to add !important if it doesn’t override the current CSS:

    h1.product_title {font-size: 20px!important;}

    Otherwise, you could take the title.php file and upload it to your theme via FTP to override the template. See this link for how: https://docs.woocommerce.com/document/template-structure/#section-1

    Then change that line in title.php to this:

    the_title( '<h1 style="font-size:20px!important;" class="product_title entry-title">', '</h1>' ); // change font-size to desired size

    First option (changing CSS) is perhaps easier and you wouldn’t have to maintain template files – in my opinion the better option.

    Thread Starter eli0086

    (@eli0086)

    Hi Ewout,
    I see in the file “class-wdpdf-export.php” that you have added functions to detect the various product/order types:

    // WooCommerce Product Bundles compatibility (add row classes)
    			if ( class_exists('WC_Bundles') ) {
    				add_filter( 'wpo_wcpdf_item_row_class', array( $this, 'add_product_bundles_classes' ), 10, 4 );
    			}

    However, I’m not sure which class would be detectable by the Composite products. I don’t know if there’s a way for you to be able to look at the plugin itself…I would be able to provide that for you, of course.

    In looking through the code, it seems that the composite products are using this class definition: WC_Composite_Products

    Let me know if there’s a certain place or bits of code that I can provide that would be more helpful for you. Thanks!

    Thread Starter eli0086

    (@eli0086)

    That worked perfectly! I actually had the two parameters set in wpo_wcpdf_after_order_data, however when setting a custom email, it didn’t seem to make a difference.
    However, now that I changed both lines of code, it’s working just as expected. Thank you very much for your help on this project…I certainly learned a lot and really appreciate your help and explaining in detail along the way!

    Thread Starter eli0086

    (@eli0086)

    Just FYI, this is what I have so far (that is now pulling just the second to last order instead of all).

    This is working, except that the code I mentioned above breaks it. If I input a specific email, it works fine. I’m having trouble pulling in the billing email from the current customer order.

    ** I’ve pulled bits of code from other sources to make this work, so I know it’s not perfect, and probably not very efficient!

    function wc_get_customer_orders() {
    
    global $wpdb;
    
    // we use customer email to also apply this for guest users
    $customer_email = '[email protected]';
    
    // filter only completed & processing
    $order_statuses = array( 'wc-completed', 'wc-processing' );
    $customer_orders = $wpdb->get_results( "SELECT * FROM $wpdb->posts as posts
    
    	LEFT JOIN {$wpdb->postmeta} AS meta ON posts.ID = meta.post_id
    
    	WHERE   meta.meta_key       = '_billing_email'
    	AND     posts.post_type     IN ('" . implode( "','", wc_get_order_types( 'order-count' ) ) . "')
    	AND     posts.post_status   IN ('" . implode( "','", (array) $order_statuses )  . "')
    	AND     meta_value          = '$customer_email'
    	ORDER BY id DESC LIMIT 1 OFFSET 1 ;
    	" );
    
    	if ( $customer_orders >=1 ) : ?>
    	<table class="shop_table my_account_orders" width="100%">
    
    		<thead>
    			<tr>
    				<th class="order-date"><span class="nobr"><?php _e( 'Last Order Date:', 'woocommerce' ); ?></span></th>
    			</tr>
    		</thead>
    
    		<tbody><?php
    			foreach ( $customer_orders as $customer_order ) {
    				$order = new WC_Order();
    
    				$order->populate( $customer_order );
    
    				$item_count = $order->get_item_count();
    
    				?><tr class="order">
    					<td class="order-date">
    						<time datetime="<?php echo date( 'Y-m-d', strtotime( $order->order_date ) ); ?>" title="<?php echo esc_attr( strtotime( $order->order_date ) ); ?>"><?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?></time>
    					</td>
    
    				</tr><?php
    			}
    		?></tbody>
    
    	</table>
    <?php endif;
    }
    
    add_action( 'wpo_wcpdf_after_order_data', 'wc_get_customer_orders', 10, 2 );
Viewing 15 replies - 1 through 15 (of 35 total)