Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Richardf21

Member
  • Posts

    5
  • Joined

  • Last visited

  1. Site URL: https://www.potent-performance.com Hi All, I have a problem with my homepage banner on mobile view. it doesn't resize to fit screen, can anyone help with some code to make it fit?
  2. So, I'm trying to implement Google customer reviews survey from Google merchant centre. However I have come to realise it won't work without being able to grab a date. Is there a way to add Order placed at XXXX-XX-XX with some javascript on the confirmation page? The hope is once /if I can add that a date to the page, I can then edit the GCR code to grab that date and add a delay GCR code looks something like this but this needs editing <!-- BEGIN GCR Opt-in Module Code --> <script src="https://apis.google.com/js/platform.js?onload=renderOptIn" async defer></script> <script>// <![CDATA[ var currentTime = new Date() var day = currentTime.getDate() + 10 var month = currentTime.getMonth() + 1 var year = currentTime.getFullYear() var final =(year + "/" + month + "/" + day) window.renderOptIn = function() { window.gapi.load('surveyoptin', function() { window.gapi.surveyoptin.render( { // REQUIRED FIELDS "merchant_id": "****", "order_id": "{orderId}", "email": "{customerEmailAddress}", "delivery_country": "GB", "estimated_delivery_date": "final", }); }); } </script>
  3. I have the same issue, I don't think php works with squarespace
  4. I have this so far <!-- BEGIN GCR Opt-in Module Code --> <script src="https://apis.google.com/js/platform.js?onload=renderOptIn" async defer> </script> <script> window.renderOptIn = function() { window.gapi.load('surveyoptin', function() { window.gapi.surveyoptin.render( { "merchant_id": 280599083, "order_id": "{orderId}", "email": "{customerEmailAddress}", "delivery_country": "GB", "estimated_delivery_date": "YYYY-MM-DD" , "opt_in_style": "BOTTOM_LEFT_DIALOG" }); }); } </script> <!-- END GCR Opt-in Module Code --> <!-- BEGIN GCR Language Code --> <script> window.___gcfg = { lang: 'en-GB' }; </script> <!-- END GCR Language Code --> just need some JS to pull the date in the order "YYYY-MM-DD" from the order confirmation and add 4 days. anyone know how to write that in js?
×
×
  • Create New...