Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • @ivansosa do you have a code example? I’m struggling with the same thing, but can’t figure out what goes wrong.

    Thread Starter amst3l

    (@amst3l)

    Hi, i passed the steps since i already got invited to the page. Please see this screenshot: https://i.imgur.com/Q9Wnl5D.png. I got the rights to the page, ad account, catalogue and i gave the app permissions. This is for my account personally.

    The other tab says i got all the rights on the page itself: https://i.imgur.com/kiQNz3P.png

    I’m not the original admin of the page, does he still need to approve me then? I don’t see what im missing here.

    Thanks for the help so far!

    Thread Starter amst3l

    (@amst3l)

    I created this code in the invoice.php, in the order-details table:

    <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 ?>
    			<?php
    			if (isset($item['product'])) {
    				echo '<span class="product-categories">'.strip_tags( wc_get_product_category_list( $item['product']->get_id() ) ).' - </span>';
    			}
    			?>
    			<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>
    		<td class="price"><?php echo $item['order_price']; ?></td>
    	</tr>
    	<?php endforeach; endif; ?>
    </tbody>
    • This reply was modified 4 years, 5 months ago by amst3l.
    • This reply was modified 4 years, 5 months ago by amst3l.
    Thread Starter amst3l

    (@amst3l)

    Ik wil alleen MyParcel gebruiken voor NL klanten. Ik heb overigens net werkend gekregen! Door middel van de landkeuze in checkout wordt het MyParcel blok geladen.

    Nu heb ik hier nog wel een opmerking over. Als ik bij gegevens bijvoorbeeld Malta invul. Maar bij afwijkend afleveradres wél Nederland. Komt het MyParcel blok niet in beeld. Is dit standaard of is dit ook nog te configureren?

    Thread Starter amst3l

    (@amst3l)

    I think i found it, did some more searching and copied the following from the twenty sixteen functions.php

    /*
    	 * Enable support for Post Thumbnails on posts and pages.
    	 *
    	 * @link https://codex.www.ads-software.com/Function_Reference/add_theme_support#Post_Thumbnails
    	 */
    	add_theme_support( 'post-thumbnails' );
    	set_post_thumbnail_size( 1200, 9999 );
    /*
    	 * Switch default core markup for search form, comment form, and comments
    	 * to output valid HTML5.
    	 */
    	add_theme_support( 'html5', array(
    		'search-form',
    		'comment-form',
    		'comment-list',
    		'gallery',
    		'caption',
    	) );
    
    	/*
    	 * Enable support for Post Formats.
    	 *
    	 * See: https://codex.www.ads-software.com/Post_Formats
    	 */
    	add_theme_support( 'post-formats', array(
    		'aside',
    		'image',
    		'video',
    		'quote',
    		'link',
    		'gallery',
    		'status',
    		'audio',
    		'chat',
    	) );

    Although i disregarded it at first. I needed the code above for my own template. But i think it has something to do with the thumbnail support ??

    Thread Starter amst3l

    (@amst3l)

    @mercime well it is my own theme.

    I’m currently into developing my own wordpress theme. So maybe there is a hook or something that needs to be added in the functions.php? I already searched high and low on the forums and went through the theme files of Twenty Sixteen but could not find anything that could help me.

    Thread Starter amst3l

    (@amst3l)

    Thanks a lot!
    <?php echo get_stylesheet_directory_uri(); ?>

    Did the trick ??

    Thanks a lot! exactly what I needed! Too bad you can’t give rep points to someone because you definitely earned them!

    I have the exact same problem as dadra, anyone with an answer?

    Thread Starter amst3l

    (@amst3l)

    Thank you for your reply, but can you tell me more precisely on how to achieve this?

Viewing 10 replies - 1 through 10 (of 10 total)