Johnny
Forum Replies Created
-
Hey no prob.
I already made some progress since that message. I set the function to run before the template content so the template content only shows if the customer hasn’t purchased the upsells before.
This is the code: https://gist.github.com/jorpdesigns/56a2a72a25c299b2e46653aa04b06c15
There is the minor issue of the popup spinner showing momentarily before disappearing. Perhaps you’ve got a solution to remove the spinner completely based on the function above? Not a big deal anyway. I can arrange to grant you temporary access so you can view the popup as a user who’s purchased all upsells.
Forum: Plugins
In reply to: [Interactive Geo Maps] Populating RoundMarkers@carlosmoreirapt Figured it out. The latitude & longitude are entered in a coordinate array.
$entry = array( 'id' => $venueID, 'name' => $venue->post_title, 'tooltipContent' => $tooltipContent, 'content' => get_permalink( $venueID ), 'useDefaults' => '1', 'coordinates' => array('latitude' => $latitude, 'longitude' => $longitude,), );
Forum: Plugins
In reply to: [Interactive Geo Maps] Populating RoundMarkers@carlosmoreirapt Added the id but no luck still.
This is how the markers appear (top left corner) – https://snipboard.io/IH0hpu.jpg
I also clicked on the marker so you can see it contains the correct coordinates.Here’s the amended code:
function igm_cpt_addon_venues( $meta ){ if ( intval( $meta['id'] ) !== 1253 ) { return $meta; } $venueObjects = []; $args = array( 'posts_per_page' => -1, 'post_status' => 'publish', 'post_type' => 'venue', ); $venues = get_posts( $args ); foreach ( $venues as $venue ) { $venueID = $venue->ID; $tooltipContent = '<div class="venue-tooltip-wrapper"><div class="venue-tooltip-image">' . get_the_post_thumbnail( $venueID, "thumbnail" ) . '</div><div class="venue-tooltip-description"><h6>' . $venue->post_title . '</h6><p>' . wp_trim_words( $venue->post_content, 20, "..." ) . '</p></div></div>'; $latitude = get_field('location', $venueID)['latitude']; $longitude = get_field('location', $venueID)['longitude']; $entry = array( 'id' => $venueID, 'name' => $venue->post_title, 'tooltipContent' => $tooltipContent, 'content' => get_permalink( $venueID ), 'useDefaults' => '1', 'action' => 'open_url', 'latitude' => $latitude, 'longitude' => $longitude ); array_push( $venueObjects, $entry ); } $meta['roundMarkers'] = $venueObjects; return $meta; }
Forum: Plugins
In reply to: [Woocommerce Upsell Popup] Multiple Popups in one sequenceYou’re amazing, thanks.
Forum: Plugins
In reply to: [Woocommerce Upsell Popup] Multiple Popups in one sequence@tentenbiz Yes your plugin does work on the custom page. I was satisfied with it until I got a new requirement asking for the multiple popups. I also disabled AJAX to test your solution and it actually did work. Unfortunately the site heavily relies on AJAX for the user experience so the multiple popups wouldn’t be applicable.
I’ll see if I can get the client to agree to a single popup with multiple products instead. Appreciate your help regardless, thanks!
Forum: Plugins
In reply to: [Woocommerce Upsell Popup] Multiple Popups in one sequence@tentenbiz Thanks for your help with this.
Unfortunately the custom page MUST use AJAX. There is a grid of products with “add to cart” buttons so customers click on thee button directly from the grid and the product is added to cart via AJAX. There is no other way to add such products to cart, not even from their individual product pages.
I’m also not using any of the shortcodes you mentioned – it’s a custom grid.
Forum: Plugins
In reply to: [Woocommerce Upsell Popup] Multiple Popups in one sequenceThanks for taking your time, much appreciated.
However I assume this fix is only possible if you’re adding the product to cart from the product page?
I want to trigger the popup on a custom page that only uses AJAX when adding products to cart.
Forum: Plugins
In reply to: [WOOF - Products Filter for WooCommerce] Pagination not working properlyHey @mediawebster
Really appreciate your help. One more question if you don’t mind, is there a way to enable only one toggle open at a time? Referring to the category filters (the ones with subcategories underneath)
Forum: Plugins
In reply to: [Product Enquiry for WooCommerce] Cart DisplaySorry missed the thread.
I already sorted this issue with a member of your team via mail.
Forum: Plugins
In reply to: [WOOF - Products Filter for WooCommerce] Pagination not working properly@mediawebster Thing is the products shown on that page are from a custom shortcode – that page doesn’t use the default shop or product category template.
I believe this might be the issue as your plugin initializes some functions on the archive template after the page is loaded and after the pagination links are clicked. Is there a way to manually initalize those functions since the loop is from a custom shortcode?
It only shows paged=NAN if your first action after loading the page is to click the pagination number. After you do that, the pagination works perfectly fine.
If you load the page and your first action is to select a filter (on the left side of the screen) then click on a pagination number then the pagination works fine as well.
Forum: Plugins
In reply to: [WOOF - Products Filter for WooCommerce] Pagination not working properly@mediawebster Forgot about that, my bad.
The password is here – https://quickforget.com/s/5000e2176e88d4a90774f4652bbd72cfa49306b3b8eb7c34
Hi @thenextwp
Is there a fix for this?
Hi @jayjay0110
Can you try installing a plugin like Code Snippets then adding the code there instead?
Forum: Plugins
In reply to: [PropertyHive] Images Not ImportedGoing through the logs and seen this error for a couple of images –
AGENT_REF: XXXX – An error occurred whilst downloading queued media https://XXX.jpg for property XXXX. The error was as follows: cURL error 6:
Forum: Plugins
In reply to: [WooCommerce MPGS] Duplicate PluginMeant to say:
“This error doesn’t show when the original gateway plugin is deactivated”.