Jump to content

Product Review Finally Done


Recommended Posts

I have managed to include a product review module on prestashop v0.97. (shouldn't be big differences to make it for v1)

you can see a demo on http://www.pro-shop.ro

I would like to go further and make common admin panels for prestashop and the review script.

the script used can be found here: gentlesource.com, I had to do some modifications on prestashop files and on script files.

Is anyone interested in this? Any sense of making it available for everyone?
Would anyone help with putting together the admin panels?

Link to comment
Share on other sites

Hi ShutZu,

You web site looks great. I am very interested in it. Can you share with your customer comment module. I mean if you can't make it in admin panel. it is fine. but share with the way how you do that. Also I like the design of your website. Can we share your theme of your website? Because I can only read English. Is it possible to change to English?

Thank you

AngelOfHavoc

Link to comment
Share on other sites

That site was built on 0.97 and at that time I was a real novice in Prestashop so I translated the script in the tpl files, not using a translation.. so.. the theme is kinda hard to make public

But.. it's the default theme with some modified images... just download the images and replace them in the default
You can also download the css.... this should work.

Link to comment
Share on other sites

HI Shutzu,

thanks for reply. I did try to download all your files. Also I like the sliding transition you used in the homepage. I know where to get it. I downloaded the jd.gallery.js, mootools etc all the files. I put the code into the theme/mytheme/header.tpl in order to make the effects in your site. however, once I put [removed]
function startGallery() {
var myGallery = new gallery($('myGallery'), {
timed: true,
defaultTransition: "fadeslideleft"
});
}
window.onDomReady(startGallery);
[removed]

the homepage become blank. if I removed it, I can see all the images for slide transmitions. I tried for a whole morning but cannot figure out why. If I put he demo html page under the base url. it worked fine.

Would you share some idea about how to make the sliding transition working (smoothgallery)? your help will be appreciated. You can PM me about it. Also I like the way you display the products in a selected category in category.php. where are the CSS styling located? which file?

Thanks

AngelOfHavoc

Link to comment
Share on other sites

Hi Shutzu,

I changed the module as you gave me. Unfortunately, it is still not working. I saw the products images just listed in home page. it does not have any slide transition effects. I attached the screen shot and the below codes is for the header.tpl in default theme and the homefeatured.tpl
Please have a look and would you tell where did I go wrong.


<html >
   <head>
       <base href="{$protocol}{$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$base_dir}" />
       <title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
{if isset($meta_description) AND $meta_description}
       <meta name="description" content="{$meta_description|escape:htmlall:'UTF-8'}" />
{/if}
{if isset($meta_keywords) AND $meta_keywords}
       <meta name="keywords" content="{$meta_keywords|escape:htmlall:'UTF-8'}" />
{/if}
       <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
       <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />
       <link rel="shortcut icon" href="{$img_dir}favicon.ico" />
{if isset($css_files)}
   {foreach from=$css_files key=css_uri item=media}
       <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />
   {/foreach}
{/if}

       <link rel="stylesheet" href="{$base_dir}css/layout.css" type="text/css" media="screen" charset="utf-8" />
       <link rel="stylesheet" href="{$base_dir}css/jd.gallery.css" type="text/css" media="screen" charset="utf-8" />
       <link rel="stylesheet" href="{$base_dir}css/lightbox.css" type="text/css" media="screen" />
       [removed][removed]
       [removed][removed]
       [removed][removed]        
       [removed][removed]         
       [removed][removed]        
       [removed][removed]

       [removed][removed]
       [removed]
           //global JS variable
           var baseDir = '{$base_dir}';
           var static_token = '{$static_token}';
           var token = '{$token}';
       [removed]
       [removed][removed]
       [removed][removed]

<!--[if lt IE 7.]>
[removed][removed]

{if isset($js_files)}
   {foreach from=$js_files item=js_uri}
       [removed][removed]
   {/foreach}
{/if}
       {$HOOK_HEADER}
   </head>

   <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}>


           <!-- Header -->



                   {$HOOK_TOP}



           <!-- Left -->

               {$HOOK_LEFT_COLUMN}


           <!-- Center -->
<!-- MODULE Home Featured Products -->
Link to comment
Share on other sites

Yeh, I did copy your header from pro-shop.ro from view source. But it did not work. I think probably problem was the link javascripts files and css files in header.tpl. It was very strange. if following every thing (using your files) in new html page, it works. but if I put it back to homefeatured and header.tpl. it didnot work. do you think the seperate parts in seperate files making the problem?

AngelOfhavoc

Link to comment
Share on other sites

Hi Shutzu,

I think the problem with my slideshow is the construction javascription function (function startGallery()) is not working as it should be. it didnot contruct the paremeters. - I think this would be I don't know how to make that function work in .tpl file. Sorry, I was newbie for php. after I add your module, in home page, I just see all the product images listed without any effects.

I really want this to work. Shutzu, may you help and provide your header.tpl and others. Thank you.

AngelOfHavoc

Link to comment
Share on other sites

I like this.....

Attached is my edited version that should have all the files you need, but all placed in the module directory :)

It's based on the same concept, but having replaced the scripts with the original library (there were some images etc. missing so I just replaced the whole jdGallery).

It also adds the required entries in the header, so should just be a case of drop it in the modules directory and install.

http://prestashop.ecartservice.net right now if you want to see it>

Paul

slidefeatured.zip

Link to comment
Share on other sites

I like this.....

Attached is my edited version that should have all the files you need, but all placed in the module directory :)

It's based on the same concept, but having replaced the scripts with the original library (there were some images etc. missing so I just replaced the whole jdGallery).

It also adds the required entries in the header, so should just be a case of drop it in the modules directory and install.

http://prestashop.ecartservice.net right now if you want to see it>

Paul


Hi Paul,

Can this be use in the editorial section? I like to use this module to show some pictures as an advertisement. Which files do I need to change?

Thanks for your help.
Link to comment
Share on other sites

Thank you Paul. You are the legend.

Did you modify the js file in jQuery foleder?

Because I have figured out what caused the problem. it is the jquery.pack.js. if I keep it, all the javascript add-on in homepage do not work at all. it took me a day to find out, just because of a line of codes. :down:

Anyway, thanks Paul and Shutzu for sharing.

Cheers

AngelOfHavoc :coolsmirk:

Link to comment
Share on other sites

It was literally nothing - and only took about 10 minutes to package up - the credit goes to Shutzu for coming up with the idea and creating the markup in the template - I just did the donkey work so folks could use it.... :)

@Jack The editorial module is a strange beast in itself, and I'm not sure I'd want to modify its internals to be honest. It is possible to just hard-code images into it using html in an appropriate home page tpl file (including the editorial one) though. You'll still need to either add the scripts to the <head> section manually or use a module to provide the hook.

The markup examples are here: http://smoothgallery.jondesign.net/getting-started/

Paul

Link to comment
Share on other sites

It was literally nothing - and only took about 10 minutes to package up - the credit goes to Shutzu for coming up with the idea and creating the markup in the template - I just did the donkey work so folks could use it.... :)

@Jack The editorial module is a strange beast in itself, and I'm not sure I'd want to modify its internals to be honest. It is possible to just hard-code images into it using html in an appropriate home page tpl file (including the editorial one) though. You'll still need to either add the scripts to the <head> section manually or use a module to provide the hook.

The markup examples are here: http://smoothgallery.jondesign.net/getting-started/

Paul

Thanks for your help.
Link to comment
Share on other sites

×
×
  • Create New...