News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Error in the links to the products

Started by Rsn, August 20, 2018, 11:49:16 AM

Previous topic - Next topic

Rsn

VM 3.2.14
Joomla 3.8.10

In product module links are formed normally.
But when viewing a category or VM main page, sef URLs of products are generated not correctly.

When I fixed the code in the template, the links started working correctly.

File: /components/com_virtuemart/sublayouts/products.php (products_horizon, products_slim)

<a title="<?php echo $product->product_name ?>" href="<?php echo $product->link.$ItemidStr?>">

missing JRoute::_(...) in href

Milbo

all right, the other product->links are done with the Jhtml::link function (which executes the JRoute::_)
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Rsn

When I did:
<a title="<?php echo $product->product_name ?>" href="<?php echo JRoute::_($product->link.$ItemidStr); ?>">
the links became correct.

Maybe it makes sense to foresee this point in the next update?


Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Rsn