pierre-yvesC
Support threads created in the last 30 days: 1
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Add lines connecting Markers in a Google Map
Started by: pierre-yvesC
in: Toolset Professional Support
Problem: I want to connect Google Map markers in a sequential line (A → B → C) without closing the loop back to the starting point (A). Solution: The issue arises when the last coordinate duplicates the first one, which closes the loop. The updated JavaScript provided ensures that if the first and last coordinates are identical, the last coordinate is removed to prevent the path from closing. Here’s the corrected code snippet: jQuery(document).ready(function($){ function initMap() { var mapid = 'map-2'; var map = WPViews.view_addon_maps.get_map(mapid); var markers = WPViews.view_addon_maps.markers[mapid]; if (markers.length === 0) return; var tripCoordinates = []; var latLng; // Loop over all the markers and create an array of lat/lng objects for (var marker in markers) { if (markers.hasOwnProperty(marker)) { latLng = { 'lat': markers[marker].position.lat(), 'lng': markers[marker].position.lng() }; tripCoordinates.push(latLng); } } // Remove the last coordinate if it duplicates the first coordinate if (tripCoordinates.length > 1) { var firstCoord = tripCoordinates[0]; var lastCoord = tripCoordinates[tripCoordinates.length - 1]; if (firstCoord.lat === lastCoord.lat && firstCoord.lng === lastCoord |
1 | 3 | 6 days, 1 hour ago | ||
wpv-add-to-cart-message not diplaying on single product
Started by: pierre-yvesC
in: Toolset Professional Support
Problem: The customer reports that the "Added to Cart" message is not displaying correctly on their product page, even though a previous similar issue had been resolved. The initial troubleshooting step of toggling the AJAX add to cart buttons did not resolve the issue. Solution: I identified that the issue was caused by a specific line of code in the template that interfered with the wpv-add-to-cart-message shortcode: [wpv-conditional if="( '[wpv-post-body]' eq '0' )" evaluate="false"]<h2>Description</h2>[/wpv-conditional] To fix, I went ahead and changed the conditional to use a custom function: The line in the template was changed to: <div class="col-sm-8">[wpv-conditional debug="false" if="( wpv_conditional_post_has_content() eq '0' )"]<h2>Description</h2>[/wpv-conditional] </div> I added the following check function to the theme's functions.php file: function wpv_conditional_post_has_content($type, $object) { $return = 0; if ( $type == 'products' ) { if ( empty( $object->post_content ) ) { $return = 0; } else { $return = count($object->post_content); } } return $return; } After that I tested it and the 'Description' title is being displayed correctly and so is the added to cart message. |
2 | 9 | 5 months, 2 weeks ago | ||
Add to cart image or icon
Started by: pierre-yvesC
in: Toolset Professional Support
Problem: I am trying to replace the 'Add to cart' text with an image or an icon but can't figure out how to do it using the shortcode variations. Solution: It is not possible to add an icon or text directly inside the add_to_cart_text attribute. Instead, use custom CSS to add it as a background image. Provide the URL where the shortcode is used and the URL of the image for further assistance in creating a CSS starting point. |
2 | 3 | 6 months, 1 week ago | ||
Filtering taxonomy multiple selection
Started by: pierre-yvesC in: Toolset Professional Support |
2 | 7 | 7 months, 2 weeks ago | ||
Hide a product category
Started by: pierre-yvesC in: Toolset Professional Support |
2 | 3 | 10 months, 1 week ago | ||
child categories do not display
Started by: pierre-yvesC in: Toolset Professional Support |
2 | 8 | 1 year ago | ||
[wpv-control-distance] move to location
Started by: pierre-yvesC in: Toolset Professional Support |
2 | 15 | 1 year, 5 months ago | ||
html disapear from Form expert mode
Started by: pierre-yvesC in: Toolset Professional Support |
2 | 3 | 1 year, 8 months ago | ||
Custom map cluster
Started by: pierre-yvesC in: Toolset Professional Support |
3 | 5 | 1 year, 9 months ago | ||
Displaying search result in a modal
Started by: pierre-yvesC in: Toolset Professional Support |
2 | 5 | 1 year, 9 months ago | ||
Stuck with dynamic markers
Started by: pierre-yvesC in: Toolset Professional Support |
2 | 3 | 2 years, 3 months ago | ||
Toolset plugin cannot connect to toolset (dot) com
Started by: pierre-yvesC in: Toolset Professional Support |
2 | 9 | 2 years, 7 months ago | ||
Map – displaying different color markers
Started by: pierre-yvesC in: Toolset Professional Support |
2 | 5 | 2 years, 9 months ago | ||
Simple reservation system
Started by: pierre-yvesC in: Toolset Professional Support |
2 | 3 | 2 years, 9 months ago | ||
Show cart link after user clicked Add to cart
Started by: pierre-yvesC in: Toolset Professional Support |
2 | 4 | 3 years ago |