Maybe a bit off topic here.
I am using version 2.3.0.2. I am a beginner with javascript and I am trying to merge Google Maps API with my Opencart site.
I am trying to display my Open Cart products as markers on the map.
I have made a copy of the category and named it map. It currently has all the values I need for every product / marker already on the page but in php, my problem is merging the two so that it shows in javascript.
I have the values currently and they show as PHP:
<?php foreach ($products as $product) { ?>
<?php echo $product['name']; ?>
<?php echo $product['lat']; ?>
<?php echo $product['long']; ?>
Has anyoen done this already? Is there an easy way to do this? Or is it not possible like this - does it need to come direct from the sql or the model?
Your question is extremely confusing. You need to explain it better.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Who is online
Users browsing this forum: No registered users and 198 guests