Page 1 of 1

Link for compare products...

Posted: Fri Sep 30, 2022 8:55 pm
by pablitoesco84
Inside a theme we can create links for Account, Wishlist, and Shopping Cart like below.

Code: Select all

<a href="{{ account }}" title="{{ text_account }}"><span>{{ text_account }}</span></a>

<a href="{{ wishlist }}" title="{{ text_wishlist }}"><span>{{ text_wishlist }}</span></a>

<a href="{{ shopping_cart }}" title="{{ text_shopping_cart }}"><span>{{ text_shopping_cart }}</span></a>
My question is, what code is used to create the Compare Products link?

I tried "compare" and "product_compare" like below.

Code: Select all

<a href="{{ compare }}" title="{{ text_compare }}"><span>{{ text_compare }}</span></a>

<a href="{{ product_compare }}" title="{{ text_roduct_compare }}"><span>{{ text_product_compare}}</span></a>
But they don't work.

Anyone knows how to create a link for Product Compare?

Re: Link for compare products...

Posted: Fri Sep 30, 2022 9:24 pm
by rjcalifornia
pablitoesco84 wrote:
Fri Sep 30, 2022 8:55 pm
Inside a theme we can create links for Account, Wishlist, and Shopping Cart like below.

Code: Select all

<a href="{{ account }}" title="{{ text_account }}"><span>{{ text_account }}</span></a>

<a href="{{ wishlist }}" title="{{ text_wishlist }}"><span>{{ text_wishlist }}</span></a>

<a href="{{ shopping_cart }}" title="{{ text_shopping_cart }}"><span>{{ text_shopping_cart }}</span></a>
My question is, what code is used to create the Compare Products link?

I tried "compare" and "product_compare" like below.

Code: Select all

<a href="{{ compare }}" title="{{ text_compare }}"><span>{{ text_compare }}</span></a>

<a href="{{ product_compare }}" title="{{ text_roduct_compare }}"><span>{{ text_product_compare}}</span></a>
But they don't work.

Anyone knows how to create a link for Product Compare?
What exactly is not working? The customer has to add two products to compare first.

Re: Link for compare products...

Posted: Sat Oct 01, 2022 8:35 pm
by pablitoesco84
I know it won't work until user add products to compare.

But my question is what text I have to use to properly display name and link on the code.

{{ compare }} or {{ product_compare }} or what else?

Because so far neither {{ compare }} or {{ product_compare }} are working on my side.

Does the question makes sense?

Code: Select all

<a href="{{ compare }}" title="{{ text_compare }}"><span>{{ text_compare }}</span></a>

<a href="{{ product_compare }}" title="{{ text_product_compare }}"><span>{{ text_product_compare}}</span></a>