danieldude
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] showing shipping class name in product metaYou rock Mike!!! Thank you!!!
Forum: Plugins
In reply to: [WooCommerce] showing shipping class name in product metaHi Mike thank you so much for your help but this code isn’t outputting anything… its blank
I added<?php
and
?>
to your code and put it in the meta.php file for some reason its not working.
<div class="product_meta"> <?php do_action( 'woocommerce_product_meta_start' ); ?> <?php if ( wc_product_sku_enabled() && ( $product->get_sku() || $product->is_type( 'variable' ) ) ) : ?> <div class="sku_wrapper"><?php _e( 'SKU:', 'woocommerce' ); ?> <span class="sku" itemprop="sku"><?php echo ( $sku = $product->get_sku() ) ? $sku : __( 'n/a', 'woocommerce' ); ?></span>.</div> shipping: <?php $class_id = $product->get_shipping_class_id(); $term = get_term_by( 'id', $class_id, 'product_shipping_class' ); echo $term->term_name; ?> <?php endif; ?>
could it be an issue with my theme?
Forum: Plugins
In reply to: [WooCommerce] showing shipping class name in product meta?? I really tried… I’m not a php expert I’m corrently trying to learn but I did not fully understand what am I doing wrong?
it seems that the id is the defaul value and if i want to change it i need to add the value im looking for in the ‘()’ but it didnt wok…
I tried
<?php echo $product->get_shipping_class($field, ‘name’); ?>
<?php echo $product->get_shipping_class(‘name’); ?>none of theme work, still showing the slug… (at least it does not show an error like some other things i tried)
Can you please help me out here?
Sorry for my ignorence i did not know that there was such an amazing plugin!!! Wp-all-import ROCKS!!! Thanks for sharing your helpfull information. It wasnt easy to manually edit products one by one so the seo will be good quality… took me 2 b.days… but at least for the future i know how to automate it….
Thanks again
Danielmaybe it has to do with the fact that I import products using WP-all-import…?
Forum: Plugins
In reply to: [SEO Editor] Not working with Yoast SEO 2.3.2same here…
Forum: Plugins
In reply to: [Woocommerce Products Price Bulk Edit] Change Product name by SKUI was able to do it by editing the file
mq_woocommerce_products_price_bulk_edit.phpin line 112 from
echo ‘ href=”‘ . get_permalink() . ‘”>’ . $out_of_stock_message . $product->get_title() . ”;
to
echo ‘ href=”‘ . get_title() . ‘”>’ . $out_of_stock_message . $product->get_sku() . ”;
Forum: Plugins
In reply to: [WooCommerce] Missing Argument 1 for WC_Order::__construct()Replacing
$order = new WC_Order();
$order->populate( $some_var );with
$order = new WC_Order( $order_id );
Thank you very much.
Forum: Fixing WordPress
In reply to: WP 3.9: Warning: strpos() expects parameter 1 to be stringops…. never mind it worked! thanks!
Forum: Fixing WordPress
In reply to: WP 3.9: Warning: strpos() expects parameter 1 to be stringChange:
if ( false === strpos( $content, ‘[‘ ) ) {To:
if ( false === strpos( (string) $content, ‘[‘ ) ) {Basically just cast the $content variable as a string
this didn’t fix my issue for some reason
Forum: Fixing WordPress
In reply to: WP 3.9: Warning: strpos() expects parameter 1 to be stringim having the same issue it shows only in my contact us page where i added the buildin wordpress contact form maybe it has somthing to do with that?
Forum: Installing WordPress
In reply to: getting warnings and cant access back-endhmm…. i replaced the function.php file with a new on from a different install and im back to a blank login page with no errors…
and do you know what premissions i need to give to what directory?
where are sessions stored?
I’m kinda of a newbie