ob80
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [WooCommerce] Passing product data into a custom page/formSo, I used your suggestion and echo’d out product data out like so:
$product = new WC_Product($_GET['product_id']); // Product name echo $product->get_name(); // Product price echo $product->get_price(); // Parent category $id = $product->get_category_ids()[0]; if( $term = get_term_by( 'id', $id, 'product_cat' ) ){ echo $term->name; } // Main image $image = wp_get_attachment_image_src( get_post_thumbnail_id( $product->get_id() ), 'single-post-thumbnail' );?> <img src="<?php echo $image[0]; ?>" class="img-responsive"> // Hidden fields <input type="hidden" name="product-id" value="<?php echo $product->get_id(); ?>" /> <input type="hidden" name="product-name" value="<?php echo $product->get_name(); ?>" />Thanks again 🙂
Forum: Plugins
In reply to: [WooCommerce] Passing product data into a custom page/formThanks for that. I’ll give it a try and come back to you 😉
Forum: Plugins
In reply to: [WooCommerce] On Woocommerce I can see Price Tag is SmallYou could use CSS to increase the font size of the .woocommerce-Price-amount selector?
Forum: Plugins
In reply to: [WooCommerce] Remove Product Filter Menu From Mobile DevicesWould you not just use CSS media queries to display: none; on mobile screen sizes?
Viewing 4 replies - 1 through 4 (of 4 total)