Add A Link To Product's Colour Option

Hi, is it possible when i add an img to a product's colour to have also a link to that product?

01.jpg

023.jpg

04.jpg

Unfortunately, there is no way to configure default CS-Cart to work in this way.

We can offer you additional custom development service to realize it. Feel free to contact us

Hi, is it possible when i add an img to a product's colour to have also a link to that product?

Try adding this part of code

{$view_uri = "products.view?product_id=`$smarty.request.product_id`"|fn_url:"C":"http"} {btn type="list" target="_blank" text=__("preview") href=$view_uri}

below this one

{__("icon")}
{include file="common/attach_images.tpl" image_name="variant_image" image_key=$num hide_titles=true no_detailed=true image_object_type="variant_image" image_type="V" image_pair=$vr.image_pair prefix=$id}

in the /design/backend/templates/views/product_options/update.tpl file.

Also I have prepared a small add-on and included this code there via default hook so that you can just install it. It works for version 4.3.6.

preview-product-page.zip

Hi, i use version 4.3.4 :/ i tried the code, cleared cache and nothing happened

Hi, i use version 4.3.4 :/ i tried the code, cleared cache and nothing happened

I think Oleg misunderstood your question. His code just adds link to the current product page near each product option variant in the admin panel

Hi, i use version 4.3.4 :/ i tried the code, cleared cache and nothing happened

Hi, I updated the preview-product-page.zip package for 4.3.4. It adds the Preview link below the option variant image http://screencast.com/t/sjRMg3Ia.

Actually it is not what you initially asked about but this way is simple and does not affect the core files.

preview-product-page.zip

actually i want the user when he clicks on that image to link him to that product.. :)

but i want the administrator to add the specific product to that specific img