[英]Woocommerce product variations: Change position of „in stock“
As you know, the product variation templates are looking a little bit different as the normal single product template. 如您所知,产品变体模板看起来与普通的单一产品模板有些不同。
The in stock specification is shown under the price on the variations, not in the near of the add-to-cart button as normal. 库存规格显示在价格上的变化形式下,而不是通常的添加到购物车按钮附近。
How can I change the position/order of the in stock? 如何更改库存的位置/顺序? I want to show the in stock after the add-to-cart-button. 我想在添加购物车按钮后显示库存。
The code for the add-to-cart button is in templates/single-product/add-to-cart/variation-add-to-cart-button.php
, which is displayed in <div class="single_variation_wrap" />
, line 53 of templates/single-product/add-to-cart/variable.php
by the Javascript fired by the dropdown. 添加到购物车按钮的代码位于templates/single-product/add-to-cart/variation-add-to-cart-button.php
,该代码显示在<div class="single_variation_wrap" />
,下拉菜单中触发的Javascript的templates/single-product/add-to-cart/variable.php
的第53行。
You could move <div class="woocommerce-variation-availability" />
from variation.php
to under the button, but you'd need to find another way to bring the data to it. 您可以移动<div class="woocommerce-variation-availability" />
从variation.php
到下的按钮,但你需要找到另一种方式来把数据给它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.