1

O.K my site is on a demo server, and I am trying to link an image on a product page to a separate specific Product. I am trying a simple...

<a href="{{config path="web/unsecure/base_url"}}3z-pro-3d-solidscape-printer-prototype-machine.html">productname</a>

However its not working, any ideas?

  • You need to get product in cms page? – MeenakshiSundaram R Jul 7 '15 at 18:14
  • @MeenakshiSundaramR on a product page, in the description, i would like to make a link to another product – user3760917 Jul 7 '15 at 18:35
1

You would need to pass the description through the correct parsing engine.

Eg. Output using

Mage::getSingleton('widget/template_filter')->filter($product->getDescription());

And set the URL in the description using standard shortcode syntax using the product link widget

{{widget type="catalog/product_widget_link" template="catalog/product/widget/link/link_block.phtml"
     id_path="product/x"}}

Replace x with your product ID.

0

To get URL of your product

 {{store url="3z-pro-3d-solidscape-printer-prototype-machine.html"}}

Refer this link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.