ZenCartproduct_info.php 数量框

发布于 2024-11-25 03:58:07 字数 492 浏览 1 评论 0 原文

我希望有人能帮助我解决这个问题。我尝试将其发布在 zencart 论坛中,但尚未有人接受 - 所以我希望 stackoverflow 能够提供帮助。

在zencart中,我发现product_info页面可以显示最小、最大和产品数量单位。但是,它“并排”显示它。 点击查看该图片。

我希望将其显示为改为列出项目,但我不知道如何做到这一点。

我所能得到的最远是将其缩小到 tpl_product_info_display.php ,在其中,我发现它是由

$the_button = zen_get_products_quantity_min_units_display((int)$_GET['products_id'])

提前谢谢您引起的!

I'm hoping someone out there can help me with this. I tried posting it in the zencart forum, but no takers yet - so I'm hoping stackoverflow will be able to help.

In zencart, I've found that the product_info page can display minimum, maximum, and product quantity units. However, it displays it "side by side".
Click to see the image.

I would like to have it displayed as a list item instead, but I'm at a loss on how I can do this.

The furthest I've got is narrowing it down to the tpl_product_info_display.php and in it, I found that it's caused by

$the_button = zen_get_products_quantity_min_units_display((int)$_GET['products_id'])

Thank you in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

究竟谁懂我的在乎 2024-12-02 03:58:07

对于那些也想知道这个问题的人...有人设法在 zen-cart 论坛

前往包含 ->函数 - Functions.php(在我的例子中,我在functions_prices.php中找到它)

然后查找“zen_get_products_quantity_min_units_display”函数。

将以下内容更改

if ($check_min != 1) {
    $the_min_units .= PRODUCTS_QUANTITY_MIN_TEXT_LISTING . ' ' . $check_min;
  }

if ($check_min != 1) {
    $the_min_units .= PRODUCTS_QUANTITY_MIN_TEXT_LISTING . ' ' . $check_min . '<br />';
  }

:添加末尾,只需创建一个新行,从而摆脱“并排”显示单位的情况。

To those that were also wondering about this... someone managed to answer it in the zen-cart forum.

Head to includes -> Functions - Functions.php (in my case, I found it in functions_prices.php)

Then look for "zen_get_products_quantity_min_units_display" function.

Change the following:

if ($check_min != 1) {
    $the_min_units .= PRODUCTS_QUANTITY_MIN_TEXT_LISTING . ' ' . $check_min;
  }

To:

if ($check_min != 1) {
    $the_min_units .= PRODUCTS_QUANTITY_MIN_TEXT_LISTING . ' ' . $check_min . '<br />';
  }

Adding the end, simply creates a new line, getting rid of displaying the units "side by side".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文