Tags/topics: 
4
Answers
Vote up!
0
Vote down!

A link (url) to a product display that will open with a specific variation selected.

Hello,

I want to have a specific link for a product display. When a user clicks (also may enter in browser) on this link, it will go to a product page but with a specific product variation dispalyed.

For example a link would be like: www.example.com/product1?variation_id=3

Then the node is opened with showing the attributes of varitaion number 3.

Asked by: Sinan Erdem
on May 7, 2013

4 Answers

Vote up!
0
Vote down!

Hi Sinan,
currently have the same problem. product URLs model seems to be awesome solution. But I can't find out how to link every single variation from my View. It always loads the first one variation. Can you help me? Thanks a lot.

Answer by: rado14
Posted: Aug 21, 2013

Comments

Hi rado14,

I know this post is quite old, but I wanted to post a solution to your question in the event someone else comes across this thread. You can easily link from each varition on you view by simply rewriting the output of your link.

For example if you want the title field of your view to link to the correct varation on the product display, you could do the following.

Add field "Content: Path" to your view fields. You can exclude this field from display.

Add field "Product: Product ID" to your view fields. You can exclude this field from display.

Make sure both the "Content: Path" and "Product: Product ID" fields are above the title field.

Then edit the "Content: Title" field (Or the field you would like to link) and select the "Rewrite the output of this field" option.

You can then do something like the following.

[title]

This will then create a hyperlink to the product display with the correct variation from your view.

I hope somebody finds this helpful.

Respectfully,

Gerald Kunstman

- Gerald Kunstman on May 31, 2014
Vote up!
0
Vote down!

Hi rado14,

I know this post is quite old, but I wanted to post a solution to your question in the event someone else comes across this thread. You can easily link from each varition on you view by simply rewriting the output of your link.

For example if you want the title field of your view to link to the correct varation on the product display, you could do the following.

Add field "Content: Path" to your view fields. You can exclude this field from display.

Add field "Product: Product ID" to your view fields. You can exclude this field from display.

Make sure both the "Content: Path" and "Product: Product ID" fields are above the title field.

Then edit the "Content: Title" field (Or the field you would like to link) and select the "Rewrite the output of this field" option.

You can then do something like the following.

[title]

This will then create a hyperlink to the product display with the correct variation from your view.

I hope somebody finds this helpful.

Respectfully,

Gerald Kunstman

Answer by: Gerald Kunstman
Posted: May 31, 2014