rashmirai
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] add to cart button is not working for variable product!i have made it online temporarily can you please help me now? ??
add to cart for variable product and product sorting on shop page isnt working
pls pls pls pls help me ??https://www.pik2pack.com/blog/?product_cat=men
https://www.pik2pack.com/blog/?product=leather-blazer-jacket-with-zip-pockets
i have made it online temporarily can you please help me now? ??
add to cart for variable product and product sorting on shop page isnt working
pls pls pls pls help me ??https://www.pik2pack.com/blog/?product=leather-blazer-jacket-with-zip-pockets
i already tried that but i am using a custom theme with woocommerce, even though i installed and activated the above plugin as suggested by you, it does not show up any +/- button for my qunatity field, this is happening may be because i am using a custom theme and i guess the above plugin is compatible with only woothemes… please help thanks!
Forum: Plugins
In reply to: [WooCommerce] custom link to single product page in woocommercesolved ??
Forum: Plugins
In reply to: [WooCommerce] custom link to single product page in woocommercegot it!
for product details page i added the link:
<?php echo '<a href="'.get_permalink($product_id).'"> <?php echo $product_obj-><button class="title overtext">view details</button></a>'; ?>
for add to cart icon on my product thumbnail added:
<?php global $product; echo apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s"><strong><div class="cart-bag">..</div></a>',</strong> esc_url( $product->add_to_cart_url() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), esc_attr( $product->id ), esc_attr( $product->get_sku() ), esc_attr( isset( $class ) ? $class : 'button' ), esc_html( $product->add_to_cart_text() ) ), $product );?>
Forum: Plugins
In reply to: [WooCommerce] custom link to single product page in woocommerceplease help ??
Forum: Plugins
In reply to: [WooCommerce] custom link to single product page in woocommercealso i am trying to add an icon on the product thumbnail which would add the product to the cart and using the below code:
<a href="?add-to-cart=<?php echo $products->ID; ?>"> <div class="cart-bag"></div></a>
but instead of adding items to cart it redirects to the home page.
please help!
got it! i added the classes in content-product.php and wrapper at loop-start.php and closed it at loop-end.php
added an image wrapper by using the following code:
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10); add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10); if ( ! function_exists( 'woocommerce_template_loop_product_thumbnail' ) ) { function woocommerce_template_loop_product_thumbnail() { echo woocommerce_get_product_thumbnail(); } } if ( ! function_exists( 'woocommerce_get_product_thumbnail' ) ) { function woocommerce_get_product_thumbnail( $size = 'shop_catalog', $placeholder_width = 0, $placeholder_height = 0 ) { global $post, $woocommerce; $output = '<div class="product-wrap">'; if ( has_post_thumbnail() ) { $output .= get_the_post_thumbnail( $post->ID, $size ); } $output .= '</div>'; return $output; } }
sorry i am lay to code! can you please give me an example how to do that with reference to the below html example—
<div class="product-wrap"> <div class="col-xxs-12 col-xs-6 col-sm-4 col-md-3"> <div class="product-box"> <div class="product-img"><img src="images/product-09.jpg" alt="" title=""></div> <h2>LEATHER BLAZER JACKET WITH ZIP POCKETS</h2> <p>$230</p> <div class="overbox"> <div class="cart-bag"></div> <div class="heart"></div> <button class="title overtext"> Quick View </button> <div class="tagline overtext"> $230 </div> </div> </div> </div></div>
thank you so much
i havent downloaded it from anywhere its an html theme created by me! thanks
i have tried this snippet—–
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10); add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10); if ( ! function_exists( 'woocommerce_template_loop_product_thumbnail' ) ) { function woocommerce_template_loop_product_thumbnail() { echo woocommerce_get_product_thumbnail(); } } if ( ! function_exists( 'woocommerce_get_product_thumbnail' ) ) { function woocommerce_get_product_thumbnail( $size = 'shop_catalog', $placeholder_width = 0, $placeholder_height = 0 ) { global $post, $woocommerce; $output = '<div class="product-wrap">'; if ( has_post_thumbnail() ) { $output .= get_the_post_thumbnail( $post->ID, $size ); } $output .= '</div>'; return $output; } }
but it adds only a product wrapper, that is <div class=”product-wrap”>
but i want all the div classes around my product thumbnails with the same div structure! thanksyes i have already tried swithching the theme it works fine on twenty twelve but whats an issue with my theme?
like for single product page i have retrieved only the product image and not the data along with it by—
<?php woocommerce_get_template( 'single-product/product-image.php' ); ?>
but i cant find any way for retrieving the catalog IMAGES. i have tried
<?php echo woocommerce_get_product_thumbnail();?>
but it retrieves only one image but i want all the catalog images without using loop.i cant find any shortcode which would retrieve catalog images…
I dont want products i just want the product images wondering if you can help me pls ??Thanks
in short i want to display all the catalog images for a particular category.