Elisa Calvo Jiménez
Elisa Calvo Jiménez
2023-09-16
I used it for the first time and I am quite happy with the service. The results were as expected. They also are very communicative and willing to answer all your questions.
Read more
Monika Kučerová
Monika Kučerová
2023-09-15
Elizabet M Company offers solid cleaning. They might've overlooked a corner or two, but their response was quick when mentioned. Professionalism is commendable. :))
Read more
PLIN
PLIN
2023-09-03
Elizabet is responsible. professional and provides good results. All cleaning takes place accordingly all the time. Always show up on time as agreed!! Definitely a recommended company!
Read more
Deep space Nine
Deep space Nine
2023-09-01
Elizabet M Company did wonders in my space, the cleaning is truly first-rate!
 
Swon CZ
Swon CZ
2023-09-01
Been searching for the right cleaning service in Maastricht, and Elizabet M Company fits the bill. Their meticulous approach left me awestruck.
Read more
Sinan Guloksuz
Sinan Guloksuz
2023-09-01
I use this service for over 5 years, every week. Always on time, attentive to details, best cleaning service ever!!
 
The D
The D
2023-08-31
I am very satisfied with Elizabet's service and I would totally recommend her to a friend. extremely professional and trustworthy
Read more
Skip to main content
This field is hidden when viewing the form

Base Cleaning Section

Please enter a number greater than or equal to 0.
Please enter a number greater than or equal to 0.
Please enter a number greater than or equal to 0.
Please enter a number greater than or equal to 0.
Please enter a number greater than or equal to 0.
Please enter a number greater than or equal to 0.

Extra Services Section

Extra Service

Total Price & Time

This field is hidden when viewing the form
This field is hidden when viewing the form
<?php

add_action('wp_footer', 'inject_membership_rate_only');
function inject_membership_rate_only() {
    if (!is_user_logged_in()) return;

    $user = wp_get_current_user();
    $membership = function_exists('pmpro_getMembershipLevelForUser')
        ? pmpro_getMembershipLevelForUser($user->ID)
        : null;

    // Get membership ID (if any)
    $membership_id = $membership ? intval($membership->id) : 0;
    ?>
    <script>
      // Set user's membership ID in JS
      window.currentUserMembershipId = <?php echo $membership_id; ?>;

      const membershipRates = {
        7: 40.00,  // MONTHLY CLEANING
        6: 34.50,  // BI-WEEKLY CLEANING
        5: 31.50,  // WEEKLY CLEANING
        8: 35.00   // HOME IRONING SERVICE
      };

      const membershipMultipliers = {
        7: 0.85,   // MONTHLY CLEANING
        6: 0.75,   // BI-WEEKLY CLEANING
        5: 0.5,    // WEEKLY CLEANING
        8: 1       // HOME IRONING SERVICE
      };

      document.addEventListener("DOMContentLoaded", function () {
        const rateInput = document.getElementById('input_7_68');
        const multiplierInput = document.getElementById('input_7_26');
        const totalInput = document.getElementById('input_7_37');
        const checkboxContainer = document.getElementById('input_7_20');

        if (!rateInput || !multiplierInput) {
          console.warn("Required input fields not found.");
          return;
        }

        const membershipId = window.currentUserMembershipId;

        if (membershipRates.hasOwnProperty(membershipId)) {
          const rate = membershipRates[membershipId];
          const multiplier = membershipMultipliers[membershipId] || 0;

          rateInput.value = rate;
          multiplierInput.value = multiplier;

          console.log(`💰 Membership ID: ${membershipId}, Rate: ${rate}, Multiplier: ${multiplier}`);

          // Trigger change events
          multiplierInput.dispatchEvent(new Event('change', { bubbles: true }));
        } else {
          rateInput.value = '';
          multiplierInput.value = '0';
          console.warn('⚠️ No matching membership ID found for rate/multiplier:', membershipId);
        }

        // Handle checkbox changes to update total
        if (checkboxContainer && totalInput) {
          const checkboxes = checkboxContainer.querySelectorAll('input[type="checkbox"]');
          checkboxes.forEach(checkbox => {
            checkbox.addEventListener('change', function () {
              multiplierInput.dispatchEvent(new Event('change', { bubbles: true }));
              totalInput.dispatchEvent(new Event('change', { bubbles: true }));
            });
          });
        }
      });
    </script>
    <?php
}