Author Topic: URL problem loading new products using a module with AJAX  (Read 698 times)

cistelsa

  • Beginner
  • *
  • Posts: 2
  • A beginner
  • Skype Name: cistelsaop
URL problem loading new products using a module with AJAX
« 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.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3060
  • using Piwik instead of Google Analytics
Re: URL problem loading new products using a module with AJAX
« Reply #1 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.
Please let the VirtueMart developers know which PHP version you are using for VirtueMart here:
http://forum.virtuemart.net/index.php?topic=133216.0

cistelsa

  • Beginner
  • *
  • Posts: 2
  • A beginner
  • Skype Name: cistelsaop
Re: URL problem loading new products using a module with AJAX
« Reply #2 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.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 8878
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: URL problem loading new products using a module with AJAX
« Reply #3 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)
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/