Jump to content

Build an affiliate nisch store!


massalexx

Recommended Posts

Hi all!

Is there a module for building affiliate nisch store?
The only thing that is needed is to have a custom field in csv file called "Affiliate link" and the module should create a default link text called "Go to the shop" for all external links, so when someone klicks on this link it goes to the current merchant store.

Thank you
Alex

Link to comment
Share on other sites

Thanks Presta-dyr & Truemedia for your responses.
If I could do it myself then it would be the most cost effective solution. So Where do I exactly add a link to short description. I imported the csv with the affiliate links under short description filed but that shows only the link URL on the store and it is not clickable. I would like to have a link text like "Go to the shop" so The link URL shoul be unvisible. I am a new user and appreciate any help i can get.
Thank you
/Alex

Link to comment
Share on other sites

hi!

quick question -> do u only have affiliate items in ur shop ?

if so, try this quick fix i made ->

the link to the affiliate site is put in item description and the description of the item in the short description

file: product-list.tpl ->



{if isset($products)}
<!-- Products list -->


<!-- /Products list -->
{/if}
Link to comment
Share on other sites

here is the code:

>
{if isset($products)}
   <!-- Products list -->
</pre>
<ul>
   {foreach from=$products item=product name=products}


getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" width="{$homeSize.width}" height="{$homeSize.height}" />
<!--{if $product.new == 1}{l s='new'}{/if}-->{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}

{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'}
                                                                                 









{l s='View'}


   {/foreach}
</ul>
<br>   <!-- /Products list --><br>{/if

Link to comment
Share on other sites

Thank you prestastic for your response.

Is it the first code or the second one I should use. (they are not identical.). I used the second one and the link shows up as a text and it is not clickable. Does your script convert affiliate URLs to a clickable affiliate link with a text like "go to the shop"? I mean does it convert the variable e.g "this_affiliate_link" to

Go to the shop!


Could you please upload a sample csv so I can see how the csv file should look like? I have the affiliate links under "short description" but the script doesn't seem to take these links and convert them to a clickable text. Sorry for my lack of knowledge!

Many thanks
Alex

Link to comment
Share on other sites

hi alex! try putting the link in the long description and the actual description in the short one.. should work.. the price of the item will NOT be shown
this fix dont require any csv file as it takes the affiliate link from the long description.. i know this is a little dirty.. but its fast! :D

Link to comment
Share on other sites

Hi prestastic!

So you mean I should add new product manually instead of using a csv file? I have more than 5000 products in suppliers csv file and the products change constantly so I definitly must use the csv file.
Do you think you can put a script in product-list.tpl that reads the value of "Description" in csv file and creates a link with the text "Go to the shop!"?
Best regards
Alex

Link to comment
Share on other sites

  • 1 year later...

Hi,

 

Can you give us more details how should we use/edit this script?

 

 

 

here is the code:

{if isset($products)}
<!-- Products list -->

{foreach from=$products item=product name=products}
	[list]
[*]


			[url="{$product.description|truncate:360:"]<img />getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" width="{$homeSize.width}" height="{$homeSize.height}" />[/url]

[b]	<!--{if $product.new == 1}{l s='new'}{/if}-->[url="{$product.description|truncate:360:"]{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}[/url][/b]


[url="{$product.description|truncate:360:"]{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'}[/url]





			[url="{$product.description|truncate:360:"]{l s='View'}[/url]


{/foreach}

[/list]
<!-- /Products list -->
{/if}

 

Link to comment
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...