这是我的网站网址:http://swedxnew.com.swedx.com/ 这里我使用的是付费主题。正确上传到相应目录的所有文件。但问题是 product_listing.php 对于子类别无法正常工作。如果我在这段代码进入 product_listing.php 之后关闭 div
$prod_list_contents .= '<div class="row product-block list-view product-item wide clearfix">';
if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
$prod_list_contents .= '<div class="col-xs-12 col-md-4 no-margin col-sm-4 col-lg-3 img_ar"><div class="head">'.$ribbon.'<div class="thumb"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $products_name) . '</a></div></div></div>';
} else {
$prod_list_contents .= '<div class="col-xs-12 col-md-4 no-margin col-sm-4 col-lg-3 img_ar"><div class="head">'.$ribbon.'<div class="thumb"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $products_name) . '</a></div></div></div>';
有些类别工作正常,但已经纠正的类别将被破坏。
所以我的问题是,我需要在哪里关闭适当的 div,以便对所有子类别设计进行更正? 包含 div 结构的模板文件是
/catelog/includes/template_top.PHP
/catelog/includes/tepmplate_bottom.php
/catelog/index.php
/catelog/includes/module/product_listing.php
我很困惑我在哪里缺少 div,它破坏了我在某些类别中的模板布局,而不是全部
还有模板布局吗?
令人不安的网址:-
http://swedxnew.com.swedx.com/index.php?cPath=137_154
http://swedxnew.com.swedx.com/index.php?cPath=137_155
http://swedxnew.com.swedx.com/index.php?cPath=133_12800028
http://swedxnew.com.swedx.com/index.php?cPath=133_140
http://swedxnew.com.swedx.com/index.php?cPath=133_158
http://swedxnew.com.swedx.com/index.php?cPath=133_149
http://swedxnew.com.swedx.com/index.php?cPath=142
http://swedxnew.com.swedx.com/index.php?cPath=121
http://swedxnew.com.swedx.com/index.php?cPath=66_160
http://swedxnew.com.swedx.com/index.php?cPath=126
如果有人指导我正确的方法,在此先感谢
最佳答案
我已经通过某种形式的努力解决了我的问题
只是从产品描述数据库中删除 HTML 标签
谢谢
关于php - oscommerce了解子类目产品布局设计的div结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47090468/