Home › Forums › Themes Support › Claue › Set the variation with stock as default variation in Woocommerce variable produc
- This topic has 10 replies, 2 voices, and was last updated 4 years, 1 month ago by kalarit.
-
AuthorPosts
-
-
November 10, 2020 at 7:15 pm #39137
Hi Harry,
I have a lot of variations on the product some of them are out of stock but if i trigger this
Out of stock visibility: Hide out of stock items from the catalog
woocommerce -> settings -> products -> inventory
the variation will get cross mark but the problem is the default variation it will not show anything like images etc. because the default variation is already have cross mark. Is there anyway to put a custom code for this?
Thank you
Regards,
ArtAttachments:
You must be logged in to view attached files. -
November 11, 2020 at 1:09 am #39146
Hi Art,
Can you send link so me can check?
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 11, 2020 at 3:29 pm #39157
Hi Harry,
Please see this link
https://rumiearth.com/us/product/earth-yoga-mat-test/
Default Variation: Coral
—
We tick this option to disabled the variation with out of stock item.
Out of stock visibility: Hide out of stock items from the catalog
woocommerce -> settings -> products -> inventory
Thank you
Regards
Art
Rumi Co.Attachments:
You must be logged in to view attached files. -
November 11, 2020 at 5:53 pm #39161
Can you send me admin account to check too.
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 11, 2020 at 8:49 pm #39164
-
November 11, 2020 at 8:50 pm #39166This reply has been marked as private.
-
November 11, 2020 at 9:20 pm #39167
Hi Rumi,
Where is the code you added to set variation class to “disabled” when product out of stock? I think the code cause the issue.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 12, 2020 at 12:18 pm #39175
Hi Harry,
We didn’t add custom code for this
Please see this functionality of the woocommerce
We tick this option to disabled the variation with out of stock item.
Out of stock visibility: Hide out of stock items from the catalog
woocommerce -> settings -> products -> inventory
or try this link
https://rumiearth.com/us/wp-admin/admin.php?page=wc-settings&tab=products§ion=inventory
Regards,
Art
Rumi Co.-
November 12, 2020 at 2:21 pm #39176
-
-
November 12, 2020 at 2:51 pm #39178
Hi Art,
I check on my local it still work well https://prnt.sc/vhth83 https://prnt.sc/vhthyq
I see your site customize so much in code, and version of theme and plugin variation swatch outdated. Please move your customize code to child theme and update parent theme and plugin.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 12, 2020 at 4:08 pm #39179
Hi Harry,
Thanks will try this.
Regards
Art
Rumi Co.
-
-
AuthorPosts
You must be logged in to reply to this topic.