link product label

31.10.2016 22:13
#1
homw
Joomshopping forum user no avatar
Name: denis
04.04.2016
Posts: 3
Quote
link product label

Hello!
I made labels on my products, made title, alt to label image, but can't make label image with active link leads to label category. Maybe someone can help?


<a href="<?php print $product->label_id?>">
<img src="<?php print $product->_label_image?>" title="<?php print htmlspecialchars($product->_label_name)?>" alt="<?php print htmlspecialchars($product->_label_name)?>" /></a>

This one leads to label id, not on full adress category label/products/label?label_id=1

 
01.11.2016 07:42
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25852
Quote
Aw: link product label

link
<?php print SEFlink('index.php?option=com_jshopping&controller=products&label_id='.$product->label_id) ?>


Last change: 01.11.2016 07:43
 
01.11.2016 20:15
#3
homw
Joomshopping forum user no avatar
Name: denis
04.04.2016
Posts: 3
Quote
Aw: link product label

webdesigner - 01.11.2016 07:42
link
<?php print SEFlink('index.php?option=com_jshopping&controller=products&label_id='.$product->label_id) ?>

Hello! Big thanks, but there is another problem...

URL label in menu: /shop/category/subcategory/label-name-in-menu/products/label?label_id=3
URL label in one of the category products: /shop/category/subcategory/category-products-name/products/?label_id=3
It also changes name of the category-products-name depending on category name where product with this label is. (Both, in category or in product card label are leading to 404 page with this generated link)

 
01.11.2016 20:52
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25852
Quote
Aw: link product label

<?php print SEFlink('index.php?option=com_jshopping&controller=products&label_id='.$product->label_id, 1) ?>

 
02.11.2016 04:47
#5
homw
Joomshopping forum user no avatar
Name: denis
04.04.2016
Posts: 3
Quote
Aw: link product label

Excellent, it works right,
Thank You!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.