Post by scottyboyyy » Thu May 03, 2018 11:02 pm

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?

Active Member

Posts

Joined
Fri Apr 07, 2017 2:36 am

Post by thekrotek » Fri May 04, 2018 3:13 am

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


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am

Who is online

Users browsing this forum: No registered users and 198 guests