Page 1 of 1
Как связать Products и Ajax
Posted: Mon May 01, 2017 8:46 am
by iturbay
Здравствуйте, хотел бы подгружать определенные товары без перезагрузки страницы, при нажатии на кнопку. Но я не понял как связать модуль Products и Ajax Made Simple или Ajax Tools. Если у кого есть примеры такого функционала, то покажите наглядно пожалуйста.
Re: Как связать Products и Ajax
Posted: Mon May 01, 2017 3:19 pm
by velden
If you have knowledge of how Ajax works you might have a look here:
http://tinyurl.com/mphmqrb
Much of the content is loaded using ajax: clicking on a product (Foundation's built-in reveal thing). Filter and pagination are ajax too.
Use a browser's developer tool to see the 'source'.
Important:
?showtemplate=false in some urls.
The cms_action_url tag:
https://docs.cmsmadesimple.org/tags/cms ... action_url