sofiahz
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Error with wishlist for woocommerce by wpfactoryThank you! then I will ask there.
<tbody>
<?php foreach ( $this->get_order_items() as $item_id => $item ) : ?>
<tr class="<?php echo esc_html( $item['row_class'] ); ?>">
<td class="product">
<p class="item-name"><?php echo esc_html( $item['name'] ); ?></p>
<?php do_action( 'wpo_wcpdf_before_item_meta', $this->get_type(), $item, $this->order ); ?>
<div class="item-meta">
<?php if ( ! empty( $item['sku'] ) ) : ?>
<p class="sku"><span class="label"><?php $this->sku_title(); ?></span> <?php echo esc_attr( $item['sku'] ); ?></p>
<?php endif; ?>
<?php if ( ! empty( $item['weight'] ) ) : ?>
<p class="weight"><span class="label"><?php $this->weight_title(); ?></span> <?php echo esc_attr( $item['weight'] ); ?><?php echo esc_attr( get_option( 'woocommerce_weight_unit' ) ); ?></p>
<?php endif; ?>
<?php if ( ! empty( $location['wp_list_filter'] ) ) : ?>
<p class="item_location"><span class="inventory_labels"><?php $this->inventory_labels(); ?></span> <?php echo esc_html( $inventory_labels); ?><?php echo esc_html( get_option( 'get_location_labels' ) ); ?></
<?php endif; ?>
<!-- ul.wc-item-meta -->
<?php if ( ! empty( $item['meta'] ) ) : ?>
<?php echo wp_kses_post( $item['meta'] ); ?>
<?php endif; ?>
<!-- / ul.wc-item-meta -->
</div>
<?php do_action( 'wpo_wcpdf_after_item_meta', $this->get_type(), $item, $this->order ); ?>
</td>
<td class="quantity"><?php echo esc_html( $item['quantity'] ); ?></td>
</tr>
<?php endforeach; ?>
</tbody>Here is the code from the body to see where I have put the code trying to get it in. I have managed to get the name there but not the location information.
If we buy pro version does that mean we can just choose to add this information?
Hi! I am using ATUM for the locations. It show in the order details on woocommerce. I have tried some codes now but none of them works unfortunately. This is the last one I tried. With this one I get an error in the php function file. The other I tried no error but nothing shows up.
<?php add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_atum_location', 10, 2 );
function wpo_wcpdf_atum_location($template_type, $order) {
if ($template_type == 'packing-slip') {
$document = wcpdf_get_document( $template_type, $order );
$atum_location = get_post_meta( $order->get_id(), '_atum_location', true );
if ( ! empty( $atum_location ) ) {
?>
<tr class="atum-location">
<th>ATUM Location:</th>
<td><?php echo esc_html( $atum_location ); ?></td>
</tr>
Hi,
No I did not add any code I belive since I have no idea where to add a code, cannot find a place to add extra code. I unfortunately dont have good php skills and the customer does not want to pay for the pro version.
I will have to continue to google then. So strange we had it before but not after the update.
Forum: Fixing WordPress
In reply to: Critical error only on iphoneOk thank you. I have contacted my hosting to see if they can help.
Ah sorry I thought this was a forum with other users answering. My bad π
Hi, As I wrote above I have tried but that did not work for me. I have tried adding the code in different places but none of them works for me. Maybe I am doing it wrong. Do I have to use the MU -plugin folder etc? I have tried with code plugin.
Thank you! I thought maybe somebody has found a solution for now that I can use. Hope to get the update soon π
Forum: Developing with WordPress
In reply to: Vulnerability in WordPress 6.6.2Thank you all. This is from defender Pro. We have solved the hacking issue that was months ago but am keeping a look at it to make sure it does not happen again.
Forum: Fixing WordPress
In reply to: Email notifications when someone changes passwordNot working still. I put this in a code plug in I have. But still getting loads of changed password emails.
Forum: Fixing WordPress
In reply to: Email notifications when someone changes passwordThank you! I will try that. I tried another code but that did not work.
Forum: Fixing WordPress
In reply to: Email notifications when someone changes passwordI still want the user to get an email of their password change I just dont want to recieve as admin all of the users password notification changes. Quite stupid that it does send this and there is no easy way to just say I do not want this.
I have added one of the codes from your links. Lets hope it works.
Forum: Fixing WordPress
In reply to: URL category baseThank you! that worked.
Have tried that ofcourse. The problem is that the list I have with the supplier information is not the same as the list of products on the page, it has fewer products. So then we still need to go through all of the products and match them with the ID. So however we do it it needs lots of extra work unfortunately. And in the future the client will get lists from the suppliers with their products and new prices. They will have the SKU but not the IDs so again they need to manually ad the IDs to the lists to be able to import them to update the prices.
Ok did not think about just reviewing the basic part. But I think many do need some extra add-ons also. If I would have known that before started with the free version I might have looked for another. But now that I already added the ATUM free for the client it was to much of work to start over when we noticed we could not upload all information so had to do it manually for hours.