product

Move short description into tabs in Woocommerce single product pages

微笑、不失礼 提交于 2020-08-26 07:55:07
问题 In woocommerce Single Product pages, how do I move the product short description into a custom product tab where the description and the additional information are? I have moved the description and additional information tab from the standard position to the right side where the product summary is. However I would like to insert the product summary into a tab so essentially it will be 3 tabs. The code I have used to move the tabs to the right of the image is: remove_action( 'woocommerce_after

Additional custom button for specific single product page in WooCommerce

你说的曾经没有我的故事 提交于 2020-08-26 07:23:11
问题 In WooCommerce on need to create another button that redirects to "Contact Us" form below my current "Add to Cart" button for specific product page (example: http://offers.elements.com.sg/product/ha-power-dose-facial/). End product page: There will be 2 different buttons for users to choose One will be "Add to Cart" that leads to PayPal page and the other will lead to "Contact Us" form Users can choose either one. I'm using on OceanWP theme. 回答1: Based on additional add to cart button with

Disable item link for specific products in WooCommerce cart checkout and orders

橙三吉。 提交于 2020-08-26 06:59:38
问题 I would like to disable the link from cart items and order items names for specific variable products. I found Disable item name link for specific product in Woocommerce cart checkout and orders answer code that does disable links on single product, but I would like to know how to change it for a variables one? 回答1: The following will work with all product types (simple, variable, variations…), disabling item links from an array of defined product Ids : // Cart item link add_filter(

Disable item link for specific products in WooCommerce cart checkout and orders

不想你离开。 提交于 2020-08-26 06:59:25
问题 I would like to disable the link from cart items and order items names for specific variable products. I found Disable item name link for specific product in Woocommerce cart checkout and orders answer code that does disable links on single product, but I would like to know how to change it for a variables one? 回答1: The following will work with all product types (simple, variable, variations…), disabling item links from an array of defined product Ids : // Cart item link add_filter(

WooCommerce get category slug - Undefined property notice with a function

我只是一个虾纸丫 提交于 2020-08-19 12:58:07
问题 I use this function to convert the woocommerce category id into a category slug function woocommerceCategorySlug($id){ $term = get_term( $id, 'product_cat' ); return $term->slug; } This is working, but the problem is that i'm getting a notice Notice: Undefined property: WP_Error::$slug Is there a way to avoid this notice? 回答1: The working solution for this is to use WordPress native function get_term_by() and to transpose it in your code this way: function woocommerceCategorySlug( $id ){

Display the modified date of every product on Woocommerce shop page

我是研究僧i 提交于 2020-08-10 19:40:57
问题 In WooCommerce I would like to display products modified date on every product on archive pages as shop. Any track is helpful. 回答1: The following will display the product modified date on shop and archive pages (see date format): add_action( 'woocommerce_after_shop_loop_item', 'after_shop_loop_item_action_callback', 20 ); function after_shop_loop_item_action_callback() { global $product; echo '<br><span class="date_modified">' . $product->get_date_modified()->date('F j, Y, g:i a') . '</span>'

Display always stock status without quantity in WooCommerce

风流意气都作罢 提交于 2020-08-09 09:20:17
问题 I would like to display the product stock status, without showing the remaining quantity. Right now, the standard WooCommerce stock display, as well as the plugins I found so far (WooCommerce Booster, etc), display either the quantity, or a "package deal" showing the quantity AND the phrase "in stock". In other words, I have: "5 in stock" I want to show: "In Stock" Is this possible? If so, how? 回答1: Resolved. Woocommerce -> Settings -> Products -> Inventory -> Stock Display Format. ...can't

Display always stock status without quantity in WooCommerce

烂漫一生 提交于 2020-08-09 09:20:09
问题 I would like to display the product stock status, without showing the remaining quantity. Right now, the standard WooCommerce stock display, as well as the plugins I found so far (WooCommerce Booster, etc), display either the quantity, or a "package deal" showing the quantity AND the phrase "in stock". In other words, I have: "5 in stock" I want to show: "In Stock" Is this possible? If so, how? 回答1: Resolved. Woocommerce -> Settings -> Products -> Inventory -> Stock Display Format. ...can't

Hide specific product attribute terms on WooCommerce variable product dropdown [closed]

 ̄綄美尐妖づ 提交于 2020-08-09 09:08:19
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 months ago . Improve this question I would like to hide one attribute with all the values. Please see the link. https://csepromos.nl/product/oregon-400-ml-drinkfles-met-karabijnhaak/ I would like to hide the below attribute and the below values on the product page: Filter kleur: Grijs Groen Oranje Paars Rood