Jump to content



Recommended Posts

1.产品页面的产品信息排列很乱 我想让它左对齐,可是不知道修改global.css中的哪一段代码?(第一个图)

2.产品页面右边栏的模块能否移动到左边栏?(首页不变) 是否是修改product.tpl文件?

3.首页页面的右边栏的模块如何移动到左边栏?BO>MODULES>POSITION 好像只能上下调换顺序 左右不行



Share this post

Link to post
Share on other sites

1. 截图里的html结构对应/themes/(你的主题)/product.tpl里第187到282行之间的代码:

               {if $product->on_sale}

{l s='On sale!'}
               {elseif ($product->reduction_price != 0 || $product->reduction_percent != 0) && ($product->reduction_from == $product->reduction_to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $product->reduction_to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $product->reduction_from))}
{l s='Price lowered!'}

<!-- 中间省略N行代码 -->

quantity > $last_qties || $product->quantity == 0) || $allow_oosp} style="display:none;"{/if} >{l s='Warning: Last items in stock!'}

quantity == 0} style="display:none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p>

在global.css里找到并修改这些markups对应的CSS代码。建议用firefox + firebug来定位。

2. 一般情况下,官方模块是可以“左右互搏”的。

在Back Office >> Modules >> Positions >> Transplant a module >> 选择Module,然后hook into Right column blocks或Left column blocks,并在Exceptions里可以自定义不显示该模块的页面。

成功hooked后,回到Back Office >> Modules >> Positions >> Left column blocks或Right column blocks移除模块原先的位置,就OK了。

Share this post

Link to post
Share on other sites


第二个 其实我把中文论坛的帖子基本上翻阅了一遍
我用的是1.2.5的版本 一直都没有看到那个 Transplant a module

Exceptions里可以自定义不显示该模块的页(这点是我犯糊涂了 一直注意到这个
真正要用的时候 就给忘记了 谢谢)

Share this post

Link to post
Share on other sites




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More