Open Product Page use Ajax

  • Posts: 309
  • Thank you received: 11
  • Hikaauction Standard Hikamarket Multivendor Hikaserial Subscription Hikashop Business
2 weeks 6 days ago #305499

-- HikaShop version -- : 4.0.3

Hi, I have an idea and I need to use Ajax in this case. Is it possible to load a product page via Ajax? If possible, could you give an example to know what to do?

Please Log in or Create an account to join the conversation.

  • Posts: 65411
  • Thank you received: 9529
  • MODERATOR
2 weeks 5 days ago #305504

Sure.

Take the URL of the product page, and use the ajax function from jQuery to load it and retrieve it's HTML:
www.w3schools.com/jquery/jquery_ajax_load.asp
If you don't want the whole page but only the inside where there is the product page layout displayed by HikaShop, you can and ?tmpl=component or ?tmpl=raw to the URL.

The following user(s) said Thank You: neo191987

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum