amarstyle
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display woocommerce recent products on home pageadd this in your index page
<ul class="productshome"> <?php $args = array( 'post_type' => 'product', 'stock' => 1, 'posts_per_page' => 2, 'product_cat' => 'Salwar-Kameez', 'orderby' =>'rand','order' => 'DESC' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?> <li class="producthome"> <a>post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>"> <?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo '<img src="'.woocommerce_placeholder_img_src().'" alt="Placeholder" width="65px" height="115px" />'; ?> <h3><?php the_title(); ?></h3> <span class="price"><?php echo $product->get_price_html(); ?></span> </a> <?php woocommerce_template_loop_add_to_cart( $loop->post, $product ); ?> <?php endwhile; ?> <?php wp_reset_query(); ?> </div>
Forum: Plugins
In reply to: [WooCommerce] Simple Products add to cart not working.I already have too much cutomization with my current theme.
is there any other way to fix this issue?Forum: Themes and Templates
In reply to: [Catch Box] Updating Catch Box themeI created the child theme for catch box like the below:
/*
Theme Name: Catch Box Child
Description: Child theme for the Catch Box theme
Author: Your name here
Author URI: https://example.com/about/
Template: catch-box
Version: 0.1.0
*/now when i activate the child theme i get an 500 error. i cannot even login to wp-admin.
i had go into the database and change the theme in there back to parent catch-box.Forum: Hacks
In reply to: Add to Cart button in All product page.Solved
Forum: Fixing WordPress
In reply to: display out of stockSolved
I enabled it in woocommerce.css
Changed display none to display block.Forum: Fixing WordPress
In reply to: mouse over to show a popupSolved it
Forum: Plugins
In reply to: [WooCommerce] [Plugin: WooCommerce – excelling eCommerce] Size Chart/Guideplease explain how did you do that.
I am selling products that some has size and some does not. how can I add size chart link in single product page for products that has sizes?thanks…
Forum: Plugins
In reply to: [WooCommerce] out of stock in shop pagefigured out how to do out of stock but not sure how to add Ready to Ship for all in stock items.
some please help
Forum: Fixing WordPress
In reply to: Display woocommerce recent products on home pagefigured it out myself.
Forum: Fixing WordPress
In reply to: woocommerce recently added product in home page.BTW- I am using Catch box theme with woocommerce
Forum: Fixing WordPress
In reply to: Menu not displaying correctly in IEThanks, i removed padding and used width as you advised. it perfect now.
Thank you so much.
Forum: Themes and Templates
In reply to: woocommerce in iOS with Catch Box theme.this is different question.
Forum: Fixing WordPress
In reply to: OnClick and Mouseover an imagehere is what i did.
<div class=”content” style=”background: url(‘/sitefiles/images/slider/jewelry_slide2.png’); width: 1000px; height: 450px;” onclick=”location.href=’https://www.amarstyle.com/product-category/jewelry'”>
<div style=”position:absolute; bottom:5px; right:271px;”>
<img name=”shopnow” src=”/sitefiles/images/slider/shopnowbutton.png” width=”200px” height=”50px” alt=”Shop Now”>Forum: Fixing WordPress
In reply to: OnClick and Mouseover an imageNVM…i figured it out.