Muddling through this myself for the first mod which is pretty simple.
So far I have created the configuration group and configuration setting which are only 2, 1 to activate the mod and 1 for the page is it needed on which is the product_info page.
I created a define statement that contains the actual javascript for the document ready statement.
In the the html_header then, I have placed the enclosing script and now have to create the php that goes inside.
Code:
<script type="text/javascript">
$(document).ready(function() {
<?php
code to be entered here.
?>
});
</script>
So now, I need to call up all the jquery mods that are in the database.
The php comes next:
The gist of it is if it has the configuration_group_title of 'jQuery Document Ready', then echo each active one here.
A loop and array are required obviously. I don't remember seeing a loop to pull from configuration settings like that. Trying to follow zen cart code here and or going for efficiency.
What the best way to do this?
Bookmarks