VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: cistelsa on February 01, 2017, 23:25:23 PM

Title: URL problem loading new products using a module with AJAX
Post by: cistelsa on February 01, 2017, 23:25:23 PM
Hello Community Virtuemart,
I'm sorry for my English, first of all.

I have VirtueMart 3.0.18 and Joomla 3.6.5

I use a smartaddons module called "Sj Listing Tabs Virtuemart" enabled on the home page.
When loading the start page, the module works perfectly with your links converted to SEF (example: www.mydomain.com/shoes-coffe-38), clicking on a button called "Load More" calls AJAX and appears New products, but with the native joomla url (example: www.mydominio.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=1178&virtuemart_category_id=4), AJAX does not make the call to translate the links generated to SEF.
Please, how to solve this problem? I have reviewed the smartaddons demo in the following link http://demo.smartaddons.com/extensions/joomla36/index.php/sj-listing-tabs-for-virtuemart with the surprise that also happens the same problem, I thank me to collaborate.
Title: Re: URL problem loading new products using a module with AJAX
Post by: jjk on February 02, 2017, 14:44:42 PM
I would suggest to ask in the developer's forum. Perhaps the extension needs an update after 1 1/2 years after the developer's last update.
Title: Re: URL problem loading new products using a module with AJAX
Post by: cistelsa on February 02, 2017, 19:17:31 PM
The truth is that the module developer has not given a response, I as a web design and development company I want to give solution, I have read some texts regarding AJAX and Virtuemart but I do not find how to apply it to this module. I know that there is not much that needs to be corrected should be a code and now. I ask for a collaboration please, not to tell me the basics that we all know if we are in this forum. Thank you.
Title: Re: URL problem loading new products using a module with AJAX
Post by: Milbo on February 02, 2017, 19:54:38 PM
The ajax has nothing todo with the SEF. When the developer uses our ajax method, anything is rendered like a normal page, so with SEF. For me it looks like an error of the component. The links should be wrapped in a JRoute::_($mylink)