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

URL problem loading new products using a module with AJAX

Started by cistelsa, February 01, 2017, 23:25:23 PM

Previous topic - Next topic

cistelsa

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.

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

cistelsa

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.

Milbo

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)
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/