- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们在网站上使用 Virtuemart 时遇到以下问题。我们在网站上使用多语言,但在英文版本上,制造商同时显示了制造商的荷兰语和英语链接。
下面是我们使用的代码:
<?php
/**
*
* Description
*
* @package VirtueMart
* @subpackage Manufacturer
* @author Kohl Patrick, Eugen Stranz
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default.php 2701 2011-02-11 15:16:49Z impleri $
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
// Category and Columns Counter
$iColumn = 1;
$iManufacturer = 1;
// Calculating Categories Per Row
$manufacturerPerRow = 3;
if ($manufacturerPerRow != 1) {
$manufacturerCellWidth = ' width'.floor ( 100 / $manufacturerPerRow );
} else {
$manufacturerCellWidth = '';
}
$doc = JFactory::getDocument();
$page_title = $doc->getTitle();
// Lets output the categories, if there are some
if (!empty($this->manufacturers)) { ?>
<script type="text/javascript">
jQuery.noConflict();
function equalHeight(group) {
tallest = 0;
group.each(function() {
thisHeight = jQuery(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}
jQuery(document).ready(function() {
equalHeight(jQuery(".sameheight"));
});
</script>
<div class="manufacturer-view-default category-view">
<div class="bp_page_head_bar_cat">
<h2><?php echo $page_title ?></h2>
</div>
<?php // Start the Output
foreach ( $this->manufacturers as $manufacturer ) { ?>
<!--
<pre>
<?php print_r($manufacturer); ?>
</pre>
-->
<?php
// Show the horizontal seperator
if ($iColumn == 1 && $iManufacturer > $manufacturerPerRow) { ?>
<div class="horizontal-separator"></div>
<?php }
// this is an indicator wether a row needs to be opened or not
if ($iColumn == 1) { ?>
<div class="row">
<?php }
// Manufacturer Elements
$manufacturerURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);
$manufacturerIncludedProductsURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);
$manufacturerImage = $manufacturer->images[0]->displayMediaFull("",false);
// Show Category ?>
<div class="manufacturer category floatleft<?php echo $manufacturerCellWidth ?>">
<div class="FWcategorybox sameheight">
<center>
<a id="FWcategorynameImage" alias="<?php echo $manufacturer->mf_name; ?>" title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturerImage;?></a>
</center>
<a id="FWcategorynamelink" title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturer->mf_name; ?></a>
</div>
</div>
<?php
$iManufacturer ++;
// Do we need to close the current row now?
if ($iColumn == $manufacturerPerRow) {
echo '<div class="clear"></div></div>';
$iColumn = 1;
} else {
$iColumn ++;
}
}
// Do we need a final closing row tag?
if ($iColumn != 1) { ?>
<div class="clear"></div>
</div>
<?php } ?>
</div>
<?php
}
?>
对此有什么建议吗?
最佳答案
我找到了。调试数据库后我发现有一些错误的ID。所以我用正确的 ID 更新了错误的 ID。
关于php - Virtuemart 2 多语言制造商双,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28066547/
我试图弄清楚如何做到这一点,但就是无法解决,我已经尝试在此处、Google 和 Virtuemart 论坛上进行搜索,但均未成功。 我试图在“类别”浏览页面的“产品详细信息”页面上显示“添加到购物车”
我有一些奇怪的事情,我安装了 Joomla,并且所有邮件功能都以联系方式工作... 但是在美德市场订购东西后没有邮件发送,......不是给订购的人而不是业主,...... 有什么建议吗? 最佳答案
我想将文本文件转换为 excel,然后修改 excel 文件中的某些数据,然后使用 PHP 将这个新的 excel 文件导入数据库。 例如,excel 文件的内容将是产品及其价格,修改将针对价格。因此
所以我在更新 Virtuemart 后,当我在客户网站上查找特定产品时收到此错误: vmError: exeSortSearchListQuery Unknown column 'p.product_
我正在尝试找到一种在用户注册前三/四个字符时验证用户邮政编码的方法。我在本地有一家企业,想限制用户注册。 我已经能够编辑大部分 php 代码,但似乎找不到引用该字段的位置。 可能是由javascrip
我在“管理用户字段”中添加了一个字段,当向管理员发送电子邮件通知他们新用户注册时,我想包括此新字段。 我编写了一些代码,从_sendMail函数的/administrator/components/c
我有一个 Joomla 网站,其中集成了 virutemart。拥有近 9,000 种产品。 当我从必须列出所有产品的模块中选择制造商时,它没有加载站点。同样的问题是在类别的情况下(有 2 个类别)。
我是一个非常新手的程序员,但这是我正在尝试做的事情,以及我到目前为止所做的事情: 我想要的: 我正在尝试在购物车中获得最终的 SKU,它是根据产品的变体选择构建的。 例如,如果初始产品是“Shovel
我正在 virtualmart 中做比较页面。我想以这种方式修改 joomla\components\com_virtuemart\views\category\tmpl\default.php 文件
我们在网站上使用 Virtuemart 时遇到以下问题。我们在网站上使用多语言,但在英文版本上,制造商同时显示了制造商的荷兰语和英语链接。 下面是我们使用的代码: getTitle(); // Let
我想自定义最新版本 virtuemart 和 Joomla 2.5 的添加到购物车和实际结账流程。 我想做的第一件事是更改它,以便在将产品添加到购物车时,我希望它直接重定向到结帐的第一阶段,而不是 J
我试图移动图像中间的“图像标题”,但它似乎不起作用。 我尝试了各种
我已经在 joomla 1.7 上安装了 virtuemart 2。通常,您可以启用预安装的付款方式以在您的网站上接受付款,但 vm 2 什么都没有。我认为他们至少会有 Paypal 。似乎框架已经改
我已经从我的商店转到其他页面并将所有请求更改为 https。 但是它仍然在 chrome 上显示红叉?它有时会起作用,然后如果你离开它就会变红。我该如何解决这个问题? 最佳答案 您的网页似乎同时包含安
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 10 年前。 Improve thi
我正在编辑 Joomla 2.5 网站,纯属巧合。我对此很菜鸟。你能告诉我我应该做什么来添加自定义字段吗? 我在数据库的“virtuemart_categories_ru_ru”表中添加了新的varc
我已经使用了这个指南:http://internet-studio.ca/vm2_new_field.php在管理员面板中创建一个新字段。 与指南的不同之处在于我在product_prices中创建了
已关闭。此问题旨在寻求有关书籍、工具、软件库等的建议。不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以
我使用 Joomla 2.5.6 和 Virtuemart 2.0。目前,在订单部分,发票始终使用 Paypal 付款方式创建。我需要在 Paypal 付款方式中更改发票创建,前提是付款成功。 请帮我
我理解EAV中的三个基本故障,即重新组装数据需要大量工作。但是,我想要一个可以添加自定义字段的数据库。很多人说Virtuemart允许自定义字段,但不使用 EAV 数据库结构。有人可以解释如何做到这一
我是一名优秀的程序员,十分优秀!