Home
Forum
Extensions
Developer Portal
VirtueMart Forum
VirtueMart & Joomla! - The Future of eCommerce
Home
Help
Search
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Support the VirtueMart project and become a
member
VirtueMart Forum
»
VirtueMart 2 + 3
»
Templating & Layouts
»
Save a value in the Database? (from within the template)
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Save a value in the Database? (from within the template) (Read 826 times)
EvanGR
Jr. Member
Posts: 493
Save a value in the Database? (from within the template)
«
on:
December 30, 2021, 08:24:02 am »
Hello,
Is it possible to save a value in the database, from a template?
Reason: I want to store some custom analytics data in a custom table, on every page load.
Thanks
Logged
Studio 42
Contributing Developer
Sr. Member
Posts: 4674
Joomla & Virtuemart developper
VirtueMart Version: 2.6 & 3
Re: Save a value in the Database? (from within the template)
«
Reply #1 on:
December 30, 2021, 14:48:57 pm »
You can use a Joomla system plugin for this case
Check if you are in admin or not, if you only want Virtuemart pages ... and save in a table you create what you need(iP, URL, GET or POST parameters....)
Logged
Free
XML sitemap generator
http://shop.st42.fr/en/catalog/products/virtuemart-2-sitemap.htm
,
Free
Unused Image cleaner
http://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm
Language
Switch in product & category
http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm
More
extentions
http://shop.st42.fr/en/
EvanGR
Jr. Member
Posts: 493
Re: Save a value in the Database? (from within the template)
«
Reply #2 on:
December 31, 2021, 13:10:48 pm »
Based on your response, I managed to do it via the standard Joomla API. Thank you!
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
VirtueMart Forum
»
VirtueMart 2 + 3
»
Templating & Layouts
»
Save a value in the Database? (from within the template)
We use cookies, just to track visits to our website, we store no personal details.
OK
Learn more