i978 Posted November 12, 2009 Share Posted November 12, 2009 这是一个产品的示例地址:http://www.giftlelo.com/26-charming-fairy-4737.html,我想实现的是那个“sizing chart ”?见附图,怎么实现?加入什么代码?我是代码盲。 Link to comment Share on other sites More sharing options...
i978 Posted November 13, 2009 Author Share Posted November 13, 2009 这是一个产品的示例地址:http://www.giftlelo.com/26-charming-fairy-4737.html,我想实现的是那个“sizing chart ”?见附图,怎么实现?加入什么代码?我是代码盲。 坛主,有时间帮一下吗? 与大家一同分享。 Link to comment Share on other sites More sharing options...
21846657 Posted November 13, 2009 Share Posted November 13, 2009 1. 打开/themes/prestashop(或者你的主题目录)/product.tpl2. 搜索 {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} 3. 在后面加入 {l s='Sizing Chart'} 4. BO->Tools->CMS->Add new,把你的Sizing Chart写在里面,并记下这个页面的ID5. 用这个ID代替上面代码里的(Sizing Chart页面ID)注释,含括号。6. 测试。7. 备注:代码里的width和height分别是thickbox弹窗的宽度和高度,单位px,可以自定义。BTW,我不是坛主。 Link to comment Share on other sites More sharing options...
i978 Posted November 13, 2009 Author Share Posted November 13, 2009 1. 打开/themes/prestashop(或者你的主题目录)/product.tpl2. 搜索{if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} 3. 在后面加入 {l s='Sizing Chart'} 4. BO->Tools->CMS->Add new,把你的Sizing Chart写在里面,并记下这个页面的ID5. 用这个ID代替上面代码里的(Sizing Chart页面ID)注释,含括号。6. 测试。7. 备注:代码里的width和height分别是thickbox弹窗的宽度和高度,单位px,可以自定义。BTW,我不是坛主。 谢谢!我一直以为你是版主。图片的位置是在/themes/prestashop/img下吗? Link to comment Share on other sites More sharing options...
21846657 Posted November 13, 2009 Share Posted November 13, 2009 不客气。是版主但不是坛主(这个担当不起) 图片icon放在/themes/prestashop(或者你的主题目录)/img/里。 Link to comment Share on other sites More sharing options...
i978 Posted November 13, 2009 Author Share Posted November 13, 2009 不客气。是版主但不是坛主(这个担当不起) 图片icon放在/themes/prestashop(或者你的主题目录)/img/里。 这是我测试的效果,你看看http://hibuyer.net/10-test.html ,另外,为什么我的图片无法显示?还有我想把SIZING CHART 放在属性选择下面,该如何做? Link to comment Share on other sites More sharing options...
21846657 Posted November 13, 2009 Share Posted November 13, 2009 把id_cms=(6)的括号去掉,id_cms=6就可以了。图片的src链接不对,也许你改了其他代码。什么属性选择?那个Attributes的Drop down list? Link to comment Share on other sites More sharing options...
i978 Posted November 13, 2009 Author Share Posted November 13, 2009 把id_cms=(6)的括号去掉,id_cms=6就可以了。图片的src链接不对,也许你改了其他代码。什么属性选择?那个Attributes的Drop down list? 是我想把sizing chart 这个放在ADD TO CART 的上面,而不是放在现在SEND TO FREIND的下面。 Link to comment Share on other sites More sharing options...
21846657 Posted November 13, 2009 Share Posted November 13, 2009 1. 搜索: 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> 2. 在前面加上: <input class="exclusive" type="submit" value="Sizing Chart" o n C l i c k ="locaton.go({$base_dir}cms.php?id_cms=6&content_only=1&TB_iframe=true&width=450&height=500&thickbox=true)" /> 其中,把“o n C l i c k ”的字母之间的空格去掉! Link to comment Share on other sites More sharing options...
21846657 Posted November 13, 2009 Share Posted November 13, 2009 用这个吧: <input class="button" type="submit" value="Sizing Chart" o n C l i c k="locaton.go({$base_dir}cms.php?id_cms=6&content_only=1&TB_iframe=true&width=450&height=500&thickbox=true)" /> 同样,去掉空格! Link to comment Share on other sites More sharing options...
i978 Posted November 13, 2009 Author Share Posted November 13, 2009 1. 搜索: 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> 2. 在前面加上: <input class="exclusive" type="submit" value="Sizing Chart" o n C l i c k ="locaton.go({$base_dir}cms.php?id_cms=6&content_only=1&TB_iframe=true&width=450&height=500&thickbox=true)" /> 其中,把“o n C l i c k ”的字母之间的空格去掉! 似乎不行?跑到CHECKOUT页面了. Link to comment Share on other sites More sharing options...
21846657 Posted November 13, 2009 Share Posted November 13, 2009 嗯,看到了。代码不对。试试下面的。 {l s='Sizing Chart'} Link to comment Share on other sites More sharing options...
i978 Posted November 13, 2009 Author Share Posted November 13, 2009 嗯,看到了。代码不对。试试下面的。 {l s='Sizing Chart'} 版主,没有LIGHTBOX的效果. 同下面那个效果不同. Link to comment Share on other sites More sharing options...
21846657 Posted November 13, 2009 Share Posted November 13, 2009 和原来那个冲突了。 Link to comment Share on other sites More sharing options...
i978 Posted November 13, 2009 Author Share Posted November 13, 2009 和原来那个冲突了。 原来下面那个,我去掉了,还是没有效果? Link to comment Share on other sites More sharing options...
21846657 Posted November 13, 2009 Share Posted November 13, 2009 用原来的那个replace现在的这个。 Link to comment Share on other sites More sharing options...
i978 Posted November 13, 2009 Author Share Posted November 13, 2009 用原来的那个replace现在的这个。 位置和底图没了? {l s='Sizing Chart'} Link to comment Share on other sites More sharing options...
21846657 Posted November 13, 2009 Share Posted November 13, 2009 这样位置会居中。底图和thickbox的js有冲突。 Link to comment Share on other sites More sharing options...
21846657 Posted November 13, 2009 Share Posted November 13, 2009 可以给标签加个ID,然后加入global.css里,这样链接就有按钮的效果了。 Link to comment Share on other sites More sharing options...
i978 Posted November 13, 2009 Author Share Posted November 13, 2009 可以给标签加个ID,然后加入global.css里,这样链接就有按钮的效果了。 这对我来说,难于上青天。有现在这样的效果,知足了。谢谢,版主。 Link to comment Share on other sites More sharing options...
21846657 Posted November 14, 2009 Share Posted November 14, 2009 不客气。当你可以熟能生巧的时候,帮助更多的人吧! Link to comment Share on other sites More sharing options...
i978 Posted November 14, 2009 Author Share Posted November 14, 2009 不客气。当你可以熟能生巧的时候,帮助更多的人吧! 尽吾力。 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now