Forum Replies Created

Viewing 15 replies - 46 through 60 (of 88 total)
  • Thread Starter ebud

    (@ebud)

    Figured it out!

    added js.hs-scripts.com to the script center under this part:

    (part of) URL’s or unique string from the inline scripts of third-party scripts & plugins that should be blocked before consent.

    Thread Starter ebud

    (@ebud)

    All good, I toggled the hierarchical attribute and it works.

    Thanks for your time!

    Thread Starter ebud

    (@ebud)

    Thanks for the feedback. I am not doing any customization in the admin area and when I test it out using “Pages” the indenting works.

    When I originally created the CPT hierarchical was false and now there is a need for children so we enabled hierarchical and page attributes… could this be an issue?

    Anything I can check?

    Thread Starter ebud

    (@ebud)

    correct

    I am interested in this feature too, otherwise it’s a bit of a show stopper for a couple of reasons. Can’t easily report out on taxes charges and it’s not clear to the customer.

    Any Idea when this feature request will be implemented?

    Another thing I notice when using the shortcode like so:
    [accept_stripe_payment name=”product 123″ price=”20″ custom_quantity=”1″ button_text=”Order Now” billing_address=”1″ shipping_address=”1″ tax=”12″]

    If the customer increased the quantity the total get’s adjusted correctly with the tax calculated, but on the feedback page and email is shows the tax amount for a single item, it would be nice if it showed the sub total total, tax and total amount charged.

    Quantity: 10
    Item Price: CA$20.00
    Tax: CA$2.40
    ——————————–
    Total Amount: CA$224.00

    or at least say “Item Tax:

    • This reply was modified 4 years, 7 months ago by ebud.
    • This reply was modified 4 years, 7 months ago by ebud.
    • This reply was modified 4 years, 7 months ago by ebud.
    Thread Starter ebud

    (@ebud)

    A follow up on this… I have the guts of this working, but have issues with the data returned from the ajax call.

    My php in the end send this off to which is 1 column of data named geometry(type ‘json’).

    
    echo json_encode($results);
    die();
    

    script

    var featurecollection =[] ;
    	var jsonData = $.ajax({ 
    		  url : '/wp-admin/admin-ajax.php', 
    		  type : 'POST',
    		  dataType: "json",
    		  data : {
    			  action : 'ajax_get_geo',
    		  },
    		  success: function(obj) {
    		   console.log('Got Data');
      	   },
    	   error: function(xhr) {
    			 alert(xhr.statusText)
    	   }
    	});
    	
    	$.when(jsonData).done(function(dd) {
    	  $.each(dd, function(index, item) {
    			featurecollection.push(
    				JSON.parse(dd[index].geometry)
    			);
    		  });
    		  console.log(featurecollection);
    	});

    and on the ajax side I can load and console.log the result in the browser and expand the object, but when I attempt to use the results from this column which contains geometry for various polygons it doesn’t allow me to use the dot syntax to access specific parts (eg. geometry.coordinates ).

    It seems like the data from the returned column is not json?

    Thread Starter ebud

    (@ebud)

    Thanks for the feedback.
    data : serialize({ action : ‘ajax_get_geo’}),errors with > serialize is not defined.

    @howdy_mcgee – the big picture is pulling data for a table and then using ajax to pull it into the Google Map API. Hitting this /wp-admin/admin-ajax.php?action=ajax_get_geo return the data as expected. I would like to use ajax to return that data to page with the mapping script.

    This is working now

    function getGeo() {
         jQuery.ajax({ // We use jQuery instead $ sign, because WordPress convention.
    		url : '/wp-admin/admin-ajax.php', // This addres will redirect the query to the functions.php file, where we coded the function that we need.
    		type : 'POST',
    		dataType: "json",
    		async: false,
    		data : {
    			action : 'ajax_get_geo',
    		},
    		success: function(obj) {
    			jsondata = obj;
    			//console.log(geoData);
    		}
    	});
    	return jsondata;
    }

    and then on the mapping page I use:

      var geoData = getGeo();
      console.log(geoData[0]);

    This seems to be the key
    async: false,

    I am also curious about id I should be using .done vs success?

    Will this work with a Clover setup in Canada – can you confirm?

    Did you figure this out? Happens for me too when importing from WP v5.1.1 to a new install of v5.2.2.

    Big hassle.

    Thread Starter ebud

    (@ebud)

    No luck… tried a few ways to filter out the <p>’s that are appear before and after where the shortcode goes. I am guessing they are generated as the shortcode executes?

    Thread Starter ebud

    (@ebud)

    Great, thanks for the response!

    Were you able to resolve this? Similar issue if I try restrict access via the API settings.

    Thread Starter ebud

    (@ebud)

    Ah… seems like an issue with Easy Fancybox as I am using this to open the form in a popup…needed to wrap the [reCaptcha] tag in a container and five it fixed height.

    Thread Starter ebud

    (@ebud)

    Nevermind – This cannot be done with the plugin, you need to look at other ways to change the activation email content.

    ebud

    (@ebud)

    Hi John,

    Can you explain how those slug change redirects work exactly and why I would want to have that enabled?

    Specifically when and what triggers the creation of the redirect.

Viewing 15 replies - 46 through 60 (of 88 total)