Jump to content

[已解决]gif如何实现?


Recommended Posts

这里是一个相关的feature request:http://www.prestashop.com/bug_tracker/view/256/


看不明白,意思是现在没法实现?

Share this post


Link to post
Share on other sites
官方现在没有实现图片使用.png或.gif。
那请教下,http://www.sppstore.com/ 这个站,应该是用prestashop的,它是如何实现的?

Share this post


Link to post
Share on other sites
我不知道。你可以问问这个站的webmaster实现的solution。
这个贴子,是否可以得到启发,它实现home_logo 为GIF,http://www.prestashop.com/forums/viewthread/37755/

Share this post


Link to post
Share on other sites

现在,通过BO提交的图片只能生成jpg。那个帖子的方法,是通过FTP修改模块里的图片。当然,你也可以FTP动态图片到产品的description部分里,在那里,展示动态图片。

Share this post


Link to post
Share on other sites
现在,通过BO提交的图片只能生成jpg。那个帖子的方法,是通过FTP修改模块里的图片。当然,你也可以FTP动态图片到产品的description部分里,在那里,展示动态图片。
我代码不才,21846657,可否提供代码?我想在首页homefeature moudles 和 products 页面展示动态图片,通过FTP上传。是修改.tpl 和.php文件吗?

Share this post


Link to post
Share on other sites

通过FTP上传的图片不能作为regular product image,只能在descriptions里通过MCE editor upload。homefeatured、products里的所用的图片都是通过BO上传,目前只能是jpg。我没有solution。Sorry!

Share this post


Link to post
Share on other sites
通过FTP上传的图片不能作为regular product image,只能在descriptions里通过MCE editor upload。homefeatured、products里的所用的图片都是通过BO上传,目前只能是jpg。我没有solution。Sorry!
oh,thanks.

Share this post


Link to post
Share on other sites
GIF 的图片,如何在产品页面上显示,如此地址:http://www.sppstore.com/


Go to your product.tpl, look for this line:
name|escape:'htmlall':'UTF-8'}" />



Change it to:

name|escape:'htmlall':'UTF-8'}" />



Use ftp to upload your .gifs to replaced the .jpgs. It takes time, but it is workable.

Share this post


Link to post
Share on other sites
GIF 的图片,如何在产品页面上显示,如此地址:http://www.sppstore.com/


Go to your product.tpl, look for this line:
name|escape:'htmlall':'UTF-8'}" />



Change it to:

name|escape:'htmlall':'UTF-8'}" />



Use ftp to upload your .gifs to replaced the .jpgs. It takes time, but it is workable.



star: 按你的方法,修改了/Themes/prestashop/product.tpl,相关内容。我用的PP版本是1303.不明白的地方是:你这replaced是如何操作?
假设有一产品,它的ID为8,那么之前上传图片后,它在FTP里就会有8-50.jpg; 8-50-home.jpg; 8-50-large.jpg ;8-50-thickbox.jpg; 8-50-medium.jpg;8-50-small.jpg 共6个文件,而且每个文件的大小像素不一,300*300;129*129等等。那我该如何replace? 在这里-http://lenewbalance.com/img/p/8-50.gif我建了一个的文件,那我是不是要把它复制5个文件,然后把文件大小像素改成和jpg的一样,然后FTP上传?

Share this post


Link to post
Share on other sites

star: 按你的方法,修改了/Themes/prestashop/product.tpl,相关内容。我用的PP版本是1303.不明白的地方是:你这replaced是如何操作?
假设有一产品,它的ID为8,那么之前上传图片后,它在FTP里就会有8-50.jpg; 8-50-home.jpg; 8-50-large.jpg ;8-50-thickbox.jpg; 8-50-medium.jpg;8-50-small.jpg 共6个文件,而且每个文件的大小像素不一,300*300;129*129等等。那我该如何replace? 在这里-http://lenewbalance.com/img/p/8-50.gif我建了一个的文件,那我是不是要把它复制5个文件,然后把文件大小像素改成和jpg的一样,然后FTP上传?

Please back up before you do anything using my suggestion.

复制5个文件,( no need to : 然后把文件大小像素改成和jpg的一样),8-50.gif; 8-50-home.gif; 8-50-large.gif ;8-50-thickbox.gif; 8-50-medium.gif;8-50-small.gif 共6个文件,然后FTP上传


I tested it on my local, and it works.

[Edit] Also you need to change the codes from jpg to gif for newproduct block, honefeature product block, top seller... all of the modules and pages that are using product images.

Share this post


Link to post
Share on other sites

star: 按你的方法,修改了/Themes/prestashop/product.tpl,相关内容。我用的PP版本是1303.不明白的地方是:你这replaced是如何操作?
假设有一产品,它的ID为8,那么之前上传图片后,它在FTP里就会有8-50.jpg; 8-50-home.jpg; 8-50-large.jpg ;8-50-thickbox.jpg; 8-50-medium.jpg;8-50-small.jpg 共6个文件,而且每个文件的大小像素不一,300*300;129*129等等。那我该如何replace? 在这里-http://lenewbalance.com/img/p/8-50.gif我建了一个的文件,那我是不是要把它复制5个文件,然后把文件大小像素改成和jpg的一样,然后FTP上传?

Please back up before you do anything using my suggestion.

复制5个文件,( no need to : 然后把文件大小像素改成和jpg的一样),8-50.gif; 8-50-home.gif; 8-50-large.gif ;8-50-thickbox.gif; 8-50-medium.gif;8-50-small.gif 共6个文件,然后FTP上传


I tested it on my local, and it works.

[Edit] Also you need to change the codes from jpg to gif for newproduct block, honefeature product block, top seller... all of the modules and pages that are using product images.


I test on my host,but it's not works,can you help? I PM your BO account and FTP account ,you can test it ,and change the codes from jpg to gif for newproduct block, honefeature product block, top seller... all of the modules and pages that are using product images. thanks.

ps: 我看了这个http://www.sppstore.com/网站的,目录,它全部的GIF文件都 是放在/img/prod/里面,而且文件名都是单一的,没有类似8-50.gif; 8-50-home.gif; 8-50-large.gif ;8-50-thickbox.gif; 8-50-medium.gif;8-50-small.gif 这么多文件,只有一个类似8-50.gif的文件,它是不是直接修改相关代码,关闭Regenerate thumbnails 功能?然后 ,FTP>> import>>?

Share this post


Link to post
Share on other sites

Well, they just used one size for all of the images. You can make a folder--like what they did, any name you want to name it, and just changed the link on all of the pages. They have forgot to change the top seller image path, and that is why the images in the top seller block are missing.

If you want to put your images in a folder named whatever, then use this codes

 The forum won't allow me to post the code here, I just upload the file. 





Make sure your path is right, and that is it. It works for me with 1.25. If it doesn't work with 1.3, then I think may be you should hire a professional to help you. Good luck to you.

Share this post


Link to post
Share on other sites
Well, they just used one size for all of the images. You can make a folder--like what they did, any name you want to name it, and just changed the link on all of the pages. They have forgot to change the top seller image path, and that is why the images in the top seller block are missing.

If you want to put your images in a folder named whatever, then use this codes

 The forum won't allow me to post the code here, I just upload the file. 





Make sure your path is right, and that is it. It works for me with 1.25. If it doesn't work with 1.3, then I think may be you should hire a professional to help you. Good luck to you.

thanks, i will try.

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