Skip Navigation

[Resolved] the focus button on the map does not work in the view loop

This support ticket is created 2 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by manuelL-5 2 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2412593
toolset2.jpg

I am trying to: show on the map the different addresses of products.

Link to a page where the issue can be seen:
hidden link

I expected to see:
when you click "Ver en Mapa" the address is displayed on the map.
Instead, I got:
Only the address of the first product is visible.

#2412927

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Based on the debug information you shared I can see you are using latest Toolset plugins.

It must be issue as far as I could imagine that there would be mis-configuration with the focus on map button.

Could you please share admin access details and I'm happy to see whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2413241

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Could you please check now:
hidden link

I've created the following content template and added the following code to it:
=> hidden link

[wpv-conditional if="( '[wpv-loop-index accumulate='false' pad='false' offset='-1']' eq '0' )"]
<p><a class="js-wpv-addon-maps-focus-map js-toolset-maps-hover-map-map-6-marker-marker-p js-toolset-maps-open-infowindow-map-map-6-marker-marker-p" href="#" data-map="map-6" data-marker="marker-p">Ver en Mapa</a></p>
[/wpv-conditional]

[wpv-conditional if="( '[wpv-loop-index accumulate='false' pad='false' offset='-1']' gt '0' )"]
<p><a class="js-wpv-addon-maps-focus-map js-toolset-maps-hover-map-map-6-marker-marker-p js-toolset-maps-open-infowindow-map-map-6-marker-marker-p-[wpv-loop-index accumulate='false' pad='false' offset='-1']" href="#" data-map="map-6" data-marker="marker-p-[wpv-loop-index accumulate='false' pad='false' offset='-1']">Ver en Mapa</a></p>
[/wpv-conditional]

And added the above content template to the place where you added the "Ver en Mapa" link using the Fields and Text block.
=> hidden link

[wpv-post-body view_template="ct-for-conditonal-focus-on-marker"]

Can you please check now it works as Expected.

More info:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-loop-index

#2413359

My issue is resolved now. Thank you!