longnguyen
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] No Reviews Tab Custom WooCommerce ThemeHi, stucow88!
At first, you should change your theme to Twenty Seventeen for Storefront and make sure you’ve checked
Enable product reviews
in Dashboard (WooCommerce -> Products).
If the reviews tab display on these themes, maybe your theme have some problem.Second, can you upload your project to the Internet and give a link to us for have some looks?
Forum: Plugins
In reply to: [WooCommerce] Stock status doesn’t change to sold out if stock is zeroSorry, marnixje!
There are some misunderstand. Your product page show the stock 0
0 op voorraad
that mean asSold out
orOut of stock
.I think it’s the Avada theme setup and the theme override the default product page of WooCommerce.
And my code is to set Stock status in the backend.
If stock is zero and save the product in backend (without changes) the product status changes correctly to ‘sold out’.
- This reply was modified 6 years, 7 months ago by longnguyen.
Forum: Plugins
In reply to: [WooCommerce] Product Image Alignment IssuesHi, mbell31! Use some CSS to display your product in three images on per lines.
ul.products { display: flex; flex-wrap: wrap; } @media (min-width: 981px) { .et_full_width_page.woocommerce-page ul.products li.product:nth-child(4n) { margin-right: 0; } }
You can add it by going to Appearance -> Editor -> style.css and paste it to your file.
- This reply was modified 6 years, 7 months ago by longnguyen.
Forum: Plugins
In reply to: [WooCommerce] ecommerce download and instalationHi, oficomputo! Please take some screenshots of your error when installing WooCommerce. We will help you fix it.
Paste the image to
https://prnt.sc/
and post it here.- This reply was modified 6 years, 7 months ago by longnguyen.
Forum: Plugins
In reply to: [WooCommerce] Stock status doesn’t change to sold out if stock is zeroYes, hold Manage stock and Stock status still change to
Out of stock
. By remove line'manage_stock' => 'no',
.Please take some screenshots of the code you’ve added and the stock change to zero but not display
Out of stock
.Forum: Plugins
In reply to: [WooCommerce] Stock status doesn’t change to sold out if stock is zeroYes, the code will be added to your theme and will join with the theme functions.
If the stock reduced to 0, it will uncheck
Manage stock
and setStock status
toOut of stock
.Forum: Plugins
In reply to: [WooCommerce] Stock status doesn’t change to sold out if stock is zeroA simple way is go to Appearance -> Editor -> functions.php
Paste the code into the bottom of the filefunctions.php
Notice: If some error goes out, you need the FTP to remove the code. Try it on your local site before.
- This reply was modified 6 years, 7 months ago by longnguyen.
Forum: Plugins
In reply to: [WooCommerce] Variation says sold outHi, allanc16 and alfredoparisi!
I’ve tested with default attributesize
and it seems working well.https://prnt.sc/jc0w9y
https://prnt.sc/jc0x1qIf you still have this problem, take some screenshots and post it here.
Forum: Plugins
In reply to: [WooCommerce] Stock status doesn’t change to sold out if stock is zeroHi, marnixje!
I have look around and test with my code, maybe it will help you.add_action( 'woocommerce_admin_process_product_object', 'custom_out_of_stock' ); function custom_out_of_stock( $product ) { $stock = wc_stock_amount( $_POST['_stock'] ); if( $stock == 0 ) { $product->set_props( array( 'manage_stock' => 'no', 'stock_status' => 'outofstock', ) ); } }
Tick on
Infinite Scroll Load more posts using the default theme behavior
And Save settings. Done.
- This reply was modified 6 years, 7 months ago by longnguyen.
Hi, ycbuyback! I found the default soft was disable by the Jetpack
You can try to find out this issue by going to Jetpack plugin options and remove. Good luck!
Forum: Fixing WordPress
In reply to: On Mobile Images are not shownTake a look at https://prnt.sc/jaggfx
That means only
https://www.jobsfanda.com/wp-content/uploads/2017/11/Public-Sector-Organization-Jobs-2017-In-Karachi-For-Managers-And-Executives-148×300.jpg
is available on your server. Try to check it.Forum: Fixing WordPress
In reply to: On Mobile Images are not shownHi, your image use in responsive screen not found on the server.
https://www.jobsfanda.com/wp-content/uploads/2017/11/Public-Sector-Organization-Jobs-2017-In-Karachi-For-Managers-And-Executives-148×300.jpg –> not found
https://www.jobsfanda.com/wp-content/uploads/2017/11/Public-Sector-Organization-Jobs-2017-In-Karachi-For-Managers-And-Executives-507×1024.jpg –> not foundForum: Fixing WordPress
In reply to: Posting Pics in Pages/PostHi, tistravels!
At first, you need some high-res images to show stretch on screen.
Then I think you need to learn some course about HTML, CSS if you like doing it by yourself.Recommend: https://www.freecodecamp.org
Test in development tools: https://prnt.sc/j9k0vo
- This reply was modified 6 years, 7 months ago by longnguyen.
Forum: Developing with WordPress
In reply to: Loop cutsom post type in meta boxPlease check again your custom post type name, I used your code with post type
product
of WooCommerce to test and it works so well.<?php $args = array( 'post_type' => 'product'); $loop = new WP_Query( $args ); if ($loop->have_posts()) : while ( $loop->have_posts() ) : $loop->the_post(); the_title(); endwhile; endif; ?>