Forum Replies Created

Viewing 15 replies - 16 through 30 (of 44 total)
  • Thread Starter freakency

    (@freakency)

    Ah apologies. I followed a support link here. I thought they were using this forum as their support. many thanks.

    Thread Starter freakency

    (@freakency)

    Solved it. I needed to enable permalinks as well as tick the clickable title option.
    Thanks for a great plugin

    Thread Starter freakency

    (@freakency)

    tried deleting plugin then downloading fresh copy via Upload Plugin option. Then deleted ans unzipped and re-added using ftp. Cleared site cache both throw same errors as before.

    I also get this error at the end of about 40 for the images as above:

    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/xx.com/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php:312) in /home/customer/www/xx.com/public_html/wp-admin/post.php on line 231

    not sure if that throws any light on why it is not flushing properly.

    Thread Starter freakency

    (@freakency)

    I have tried the above. That sounded like it was exactly what i was looking for.
    However I have tried this and i still get same error as above

    Warning: filesize(): stat failed for /home/customer/www/sitename.com/public_html/wp-content/uploads/2018/07/xxx.jpg in /home/customer/www/sitename.com/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php on line 312

    (i have substituted xxx and sitename)

    I have also tried clearing both site cache and CLoudflare cache.

    Is there anything else I can try?

    Thread Starter freakency

    (@freakency)

    17.5 but have tried a couple of versions back and a major version back and they all do this.

    Looking at the error, my guess is it is trying to match a size to an image that doesn’t live on that path anymore. My guess is the file structure, so URL, changed slightly when we moved server. We updated all the URLs but Yoast is still using the old address.

    I have tried uninstalling and putting a fresh copy on but nothing seems to fix it.

    Is there a way for it to rescan or reset file names somehow? I can’t see an option to flush within the plugin

    Thread Starter freakency

    (@freakency)

    Ah you stick it at the bottom of the table like this:
    This works perfectly.
    Thank you for the code!

    <table class="order-details">
    	<thead>
    		<tr>
    			<th class="product"><?php _e('Product', 'woocommerce-pdf-invoices-packing-slips' ); ?></th>
    			<th class="quantity"><?php _e('Quantity', 'woocommerce-pdf-invoices-packing-slips' ); ?></th>
    		</tr>
    	</thead>
    	<tbody>
    		<?php $items = $this->get_order_items(); if( sizeof( $items ) > 0 ) : foreach( $items as $item_id => $item ) : ?>
    		<tr class="<?php echo apply_filters( 'wpo_wcpdf_item_row_class', $item_id, $this->type, $this->order, $item_id ); ?>">
    			<td class="product">
    				<?php $description_label = __( 'Description', 'woocommerce-pdf-invoices-packing-slips' ); // registering alternate label translation ?>
    				<span class="item-name"><?php echo $item['name']; ?></span>
    				<?php do_action( 'wpo_wcpdf_before_item_meta', $this->type, $item, $this->order  ); ?>
    				<span class="item-meta"><?php echo $item['meta']; ?></span>
    				<dl class="meta">
    					<?php $description_label = __( 'SKU', 'woocommerce-pdf-invoices-packing-slips' ); // registering alternate label translation ?>
    					<?php if( !empty( $item['sku'] ) ) : ?><dt class="sku"><?php _e( 'SKU:', 'woocommerce-pdf-invoices-packing-slips' ); ?></dt><dd class="sku"><?php echo $item['sku']; ?></dd><?php endif; ?>
    					<?php if( !empty( $item['weight'] ) ) : ?><dt class="weight"><?php _e( 'Weight:', 'woocommerce-pdf-invoices-packing-slips' ); ?></dt><dd class="weight"><?php echo $item['weight']; ?><?php echo get_option('woocommerce_weight_unit'); ?></dd><?php endif; ?>
    				</dl>
    				<?php do_action( 'wpo_wcpdf_after_item_meta', $this->type, $item, $this->order  ); ?>
    			</td>
    			<td class="quantity"><?php echo $item['quantity']; ?></td>
    		</tr>
    		<td class="no-borders" colspan="2">
    	<table class="totals">
    		<tfoot>
    			<?php foreach( $this->get_woocommerce_totals() as $key => $total ) : ?>
    			<tr class="<?php echo $key; ?>">
    				<th class="description"><?php echo $total['label']; ?></th>
    				<td class="price"><span class="totals-price"><?php echo $total['value']; ?></span></td>
    			</tr>
    			<?php endforeach; ?>
    		</tfoot>
    	</table>
    </td>
    		<?php endforeach; endif; ?>
    	</tbody>
    </table>
    Thread Starter freakency

    (@freakency)

    i did try the template method but then realised i had a function in functions that already injected variables in. Happy to use the template in child theme option.

    I have reset up the template method and have it selecting my template correctly.

    However when i add the above code it errors in nearly all places i try and add it except adding it to line 83. This is really close to what we want. it does add the total but it messes up the formatting of the rest of the list. Here is where i have added it in context:

    `<table class=”order-details”>
    <thead>
    <tr>
    <th class=”product”><?php _e(‘Product’, ‘woocommerce-pdf-invoices-packing-slips’ ); ?></th>
    <th class=”quantity”><?php _e(‘Quantity’, ‘woocommerce-pdf-invoices-packing-slips’ ); ?></th>
    </tr>
    <td class=”no-borders” colspan=”2″>
    <table class=”totals”>
    <tfoot>
    <?php foreach( $this->get_woocommerce_totals() as $key => $total ) : ?>
    <tr class=”<?php echo $key; ?>”>
    <th class=”description”><?php echo $total[‘label’]; ?></th>
    <td class=”price”><span class=”totals-price”><?php echo $total[‘value’]; ?></span></td>
    </tr>
    <?php endforeach; ?>
    </tfoot>
    </table>
    </td>
    </thead>

    I am guessing i have added it on a wrong line, but all other lines i have tried so far give me an error. e.g :
    insert in line 84 i get this error: DOMPDF Exception: Frame not found in cellmap
    insert in line 123 i get this error: Fatal error: Call to a member function get_cellmap() on null

    Only adding it on line 83 does it at least not error. What line should i add it to, to not break the formatting of the rest of the order table?

    many thanks for your time on this.

    Thread Starter freakency

    (@freakency)

    Ok solved. I didn’t realise Elementor does not allow shortcodes in text blocks like Bakery or Beaver builder. You just need to use the dedicated shortcode block. All good.

    Thread Starter freakency

    (@freakency)

    it is ok, we are going to use a different method

    Thread Starter freakency

    (@freakency)

    the people who have been blocked due to anti-flood are uk users that i am guessing getting wrongly flagged. These two parts were working correctly but has really started playing up in the last week. Is this a known issue?

    Thread Starter freakency

    (@freakency)

    Thank you ILLID much appreciated

    Thread Starter freakency

    (@freakency)

    Hi ILLID,

    ATUM are using hooks to filter rather than using the product level hidden product. (we have also tried making the raw material product hidden but this also surprisingly still shows in the AJAX search)

    They have said:

    https://www.stockmanagementlabs.com/addons/atum-product-levels/
    “We’ve added some hooks to Product Levels to prevent they from showing on standard WooCommerce queries (like the shop list page or the product page or the default WP search) but if this plugin you are using is not following the WooCommerce standards to search for products, it’s going to just show up all the products you have (no matter is a BOM or not).”

    Happy to get the code they used if that makes it easier, or a category filter solution.

    Here is a screenshot of the setting to hide these products: https://ibb.co/X3sm4Y9

    Thread Starter freakency

    (@freakency)

    Great thanks Eric. Have a top weekend

    Thread Starter freakency

    (@freakency)

    I have got further with this.
    It seems to ignore all setting to allow a user to have events if they are an existing user. If i delete the user and readd it works.
    Is there a way to get the user settings to work without deleting and readding the user??

    freakency

    (@freakency)

    same. i have been hoping it would fix with an update but there is an def an issue with Yoast and wpbakery. I run both on a number of installs and they work fine but one site will not work with Yoast turned on.

Viewing 15 replies - 16 through 30 (of 44 total)