massalexx Posted October 31, 2010 Share Posted October 31, 2010 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 youAlex Link to comment Share on other sites More sharing options...
Truemedia Posted October 31, 2010 Share Posted October 31, 2010 Could create 1 if you wanna try, or hire someone to make it. Link to comment Share on other sites More sharing options...
massalexx Posted November 1, 2010 Author Share Posted November 1, 2010 Great! How much would that cost me? Link to comment Share on other sites More sharing options...
presta-dyr Posted November 2, 2010 Share Posted November 2, 2010 Wouldn't it do just to add a link to the short description?/Kjeld Link to comment Share on other sites More sharing options...
Truemedia Posted November 2, 2010 Share Posted November 2, 2010 Wouldnt be much, 50-100 £ ok? Link to comment Share on other sites More sharing options...
massalexx Posted November 3, 2010 Author Share Posted November 3, 2010 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 More sharing options...
prestastic Posted November 3, 2010 Share Posted November 3, 2010 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 descriptionfile: product-list.tpl ->{if isset($products)} <!-- Products list --> {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} <!-- /Products list -->{/if} Link to comment Share on other sites More sharing options...
prestastic Posted November 3, 2010 Share Posted November 3, 2010 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 More sharing options...
massalexx Posted November 3, 2010 Author Share Posted November 3, 2010 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 thanksAlex Link to comment Share on other sites More sharing options...
prestastic Posted November 4, 2010 Share Posted November 4, 2010 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 shownthis 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! Link to comment Share on other sites More sharing options...
massalexx Posted November 4, 2010 Author Share Posted November 4, 2010 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 regardsAlex Link to comment Share on other sites More sharing options...
shota Posted November 22, 2011 Share Posted November 22, 2011 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 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