Jump to content

Related produts


Recommended Posts

Hello CYTech,

OK i made this name change... thank you
I will wait for modification.
One question, please: if i put 2,3 or many TAG-s, the related produsct module will interpretate all this tags? Ex: 1 product have tags a, b, c, other 2 product have tag a, d, e and other 3 product have tag b, f, g. In product detail of product 1 i will see related products 2 and 3. in details of product 3 i will see just product 1?
That is the algorithm?

Thank you,
Cipo

Link to comment
Share on other sites

Hello Cipo,

Correct - see the below example.

Item1 has tags "tag1, tag2, tag3".

Item2 has tags "tag2".

Item3 has tags "tag1, tag3".

------------------

Now if the customer clicks on Item1, the system will take all three tags (tag1, tag2, and tag3) and search the other products to see if any match. So in this case, you will see Item2, and Item3 three show.

Now if the customer clicks on Item2, the system only searches for "tag2", so it will pull up the item "Item1".

For item3 it will only pull up Item1 since it shares both tags with it.

Hope that helps :)

Link to comment
Share on other sites

Hello,

You are so fast...
but i have a problem: ii uninstall te relatedproducts module and i erase cyrelatedproduct folder from module... In FO Related produsct ab disapear...
After that, copy new cyrelated products in /module and - in BO - install the this module. Surprise !!! The related produsct tab is the old TAB (without picture)...
How can i fix?

Thank you. :roll:

Link to comment
Share on other sites

Hello Cipo,

Try these steps.

1. Uninstall the module.
2. Delete the entire folder "cyrelatedproducts". (just to be safe)
3. Upload the new folder "cyrelatedproducts" into your modules folder.
4. Install the module.

Doing it this way will erase the original changes you made to the template, so be sure to open cyrelatedproducts.tpl again and make your translation changes.

Also, make sure you are uploading the newly updated mod. :-)

Hope that helps! :-)

Link to comment
Share on other sites

Hello Cipo,

open the file: modules/cyrelatedproducts/cyrelatedproducts.tpl

and paste the below code into it (removing the code that is there)


{if count($cyRelatedProducts) > 0}
       {foreach from=$cyRelatedProducts item=cyRelatedProduct}

           {if $cyRelatedProduct.image.id_image ne ""}
getImageLink($cyRelatedProduct.images.link_rewrite, $cyRelatedProduct.image.id_image, 'medium')}" height="80" width="80">
           {else}

           {/if}


{$cyRelatedProduct.name|htmlspecialchars} >" src="{$img_dir}bullet.gif" border=0/>

       {/foreach}
   {else}
{l s='There are no related products at this time.' mod='cyrelatedproducts'}
   {/if}

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...

Hi,


I would like to know what I can change in the code to use the url rewriting in this module because the url of the related product looks like this:

http://www.domaine.be/product.php?id_product=862



I have some duplicate content in the search engine (gg, yahoo,....)

Thx for helping

Link to comment
Share on other sites

×
×
  • Create New...