Plugin Directory

Changeset 3466102


Ignore:
Timestamp:
02/20/2026 09:22:39 PM (24 hours ago)
Author:
imranwebdev
Message:

Initial version

Location:
iwd-quick-order/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • iwd-quick-order/trunk/assets/css/admin.css

    r3466088 r3466102  
    55 */
    66
    7 .iwd-admin-wrapper {
     7.iwdquo-admin-wrapper {
    88    max-width: 950px;
    99    margin: 20px 18px 20px 0;
    1010}
    1111
    12 .iwd-admin-header {
     12.iwdquo-admin-header {
    1313    background: #fff;
    1414    padding: 10px 20px;
     
    1919}
    2020
    21 .iwd-admin-header h1 {
     21.iwdquo-admin-header h1 {
    2222    margin: 0 0 5px 0;
    2323    font-size: 20px;
    2424}
    2525
    26 .iwd-admin-header p {
     26.iwdquo-admin-header p {
    2727    margin: 0;
    2828    color: #666;
    2929}
    3030
    31 .iwd-tabs-wrapper {
     31.iwdquo-tabs-wrapper {
    3232    background: #fff;
    3333    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
     
    3535}
    3636
    37 .iwd-tab-nav-wrapper {
     37.iwdquo-tab-nav-wrapper {
    3838    display: flex;
    3939    border-bottom: 1px solid #ddd;
     
    4343
    4444
    45 .iwd-tab-nav {
     45.iwdquo-tab-nav {
    4646    display: flex;
    4747    margin: 0;
     
    5050}
    5151
    52 .iwd-tab-nav li {
     52.iwdquo-tab-nav li {
    5353    margin: 0;
    5454}
    5555
    56 .iwd-tab-nav button {
     56.iwdquo-tab-nav button {
    5757    background: none;
    5858    border: none;
     
    6666}
    6767
    68 .iwd-tab-nav button:hover {
     68.iwdquo-tab-nav button:hover {
    6969    color: #288733;
    7070}
    7171
    72 .iwd-tab-nav button.active {
     72.iwdquo-tab-nav button.active {
    7373    color: #288733;
    7474    border-bottom-color: #288733;
    7575}
    7676
    77 .iwd-tab-content {
     77.iwdquo-tab-content {
    7878    display: none;
    7979    padding: 30px;
    8080}
    8181
    82 .iwd-tab-content.active {
     82.iwdquo-tab-content.active {
    8383    display: block;
    8484}
    8585
    86 .iwd-form-group {
     86.iwdquo-form-group {
    8787    margin-bottom: 25px;
    8888}
    8989
    90 .iwd-form-group label {
     90.iwdquo-form-group label {
    9191    display: inline-block;
    9292    font-weight: 600;
     
    9595}
    9696
    97 .iwd-form-group input[type='text'],
    98 .iwd-form-group input[type='number'],
    99 .iwd-form-group select,
    100 .iwd-form-group textarea {
     97.iwdquo-form-group input[type='text'],
     98.iwdquo-form-group input[type='number'],
     99.iwdquo-form-group select,
     100.iwdquo-form-group textarea {
    101101    width: 100%;
    102102    max-width: 270px;
     
    106106}
    107107
    108 .iwd-form-group input[type='text']:focus,
    109 .iwd-form-group input[type='number']:focus,
    110 .iwd-form-group select:focus,
    111 .iwd-form-group textarea:focus {
     108.iwdquo-form-group input[type='text']:focus,
     109.iwdquo-form-group input[type='number']:focus,
     110.iwdquo-form-group select:focus,
     111.iwdquo-form-group textarea:focus {
    112112    box-shadow: none !important;
    113113    border-color: #898989;
     
    120120}
    121121
    122 .iwd-form-group textarea {
     122.iwdquo-form-group textarea {
    123123    max-width: 100%;
    124124    min-height: 100px;
     
    130130}
    131131
    132 .iwd-form-group input[type='checkbox'] {
     132.iwdquo-form-group input[type='checkbox'] {
    133133    margin-right: 8px;
    134134}
    135135
    136 .iwd-form-group .description {
     136.iwdquo-form-group .description {
    137137    font-size: 13px;
    138138    color: #666;
     
    142142
    143143/* Inline Fields (Country Code + Phone) */
    144 .iwd-inline-fields {
     144.iwdquo-inline-fields {
    145145    display: flex;
    146146    gap: 10px;
     
    148148}
    149149
    150 .iwd-radio-group.delivery-Charge-type {
     150.iwdquo-radio-group.delivery-Charge-type {
    151151    display: flex;
    152152    gap: 20px;
     
    154154}
    155155
    156 .iwd-radio-group label {
     156.iwdquo-radio-group label {
    157157    display: block;
    158158    margin-bottom: 10px;
     
    160160}
    161161
    162 .iwd-radio-group input[type='radio'] {
     162.iwdquo-radio-group input[type='radio'] {
    163163    margin-right: 8px;
    164164}
    165165
    166 .iwd-color-picker-wrapper {
     166.iwdquo-color-picker-wrapper {
    167167    display: flex;
    168168    align-items: center;
     
    170170}
    171171
    172 .iwd-save-button {
     172.iwdquo-save-button {
    173173    background: #288733 !important;
    174174    color: #fff !important;
     
    181181}
    182182
    183 .iwd-save-button:hover {
     183.iwdquo-save-button:hover {
    184184    background: #000 !important;
    185185}
    186186
    187 .iwd-tab-nav-wrapper .iwd-save-button {
     187.iwdquo-tab-nav-wrapper .iwdquo-save-button {
    188188    padding: 4px 12px !important;
    189189    display: none;
    190190}
    191191
    192 .iwd-save-button:focus {
     192.iwdquo-save-button:focus {
    193193    outline: none !important;
    194194    box-shadow: none !important;
    195195}
    196196
    197 .iwd-notice {
     197.iwdquo-notice {
    198198    padding: 12px 20px;
    199199    border-left: 4px solid #288733;
     
    202202}
    203203
    204 .iwd-section-title {
     204.iwdquo-section-title {
    205205    font-size: 16px;
    206206    font-weight: 600;
     
    212212}
    213213
    214 .iwd-message-format-help {
     214.iwdquo-message-format-help {
    215215    padding-left: 15px;
    216216    border-left: 1px solid #b9b9b9;
     
    220220}
    221221
    222 .iwd-message-format-help strong {
     222.iwdquo-message-format-help strong {
    223223    display: block;
    224224    margin-bottom: 8px;
    225225}
    226226
    227 .iwd-message-format-help code {
     227.iwdquo-message-format-help code {
    228228    background: #fff;
    229229    padding: 2px 6px;
     
    233233}
    234234
    235 .iwd-popup-only-settings .iwd-form-group {
     235.iwdquo-popup-only-settings .iwdquo-form-group {
    236236    margin-bottom: 10px;
    237237}
    238238
    239 .button-position-group.iwd-form-group label,
    240 .button-lebel-group.iwd-form-group label {
     239.button-position-group.iwdquo-form-group label,
     240.button-lebel-group.iwdquo-form-group label {
    241241    min-width: 110px;
    242242}
    243243
    244 .button-color-group.iwd-form-group label {
     244.button-color-group.iwdquo-form-group label {
    245245    min-width: 165px;
    246246}
     
    257257}
    258258
    259 .iwd-message-format-help {
     259.iwdquo-message-format-help {
    260260    border-left: 1px solid #d4d4d4;
    261261    margin-top: 10px;
     
    268268@media (min-width: 768px) {
    269269
    270     .iwd-admin-wrapper {
     270    .iwdquo-admin-wrapper {
    271271        margin: 12px 12px 12px 0;
    272272    }
    273273
    274     .iwd-tab-nav-wrapper .iwd-save-button {
     274    .iwdquo-tab-nav-wrapper .iwdquo-save-button {
    275275        display: block;
    276276    }
  • iwd-quick-order/trunk/assets/css/frontend.css

    r3466088 r3466102  
    4747
    4848/* Variation Error Message */
    49 .iwd-variation-error {
     49.iwdquo-variation-error {
    5050    color: #dc3545;
    5151    font-size: 14px;
     
    5858
    5959/* Popup Overlay */
    60 .iwd-popup-overlay {
     60.iwdquo-popup-overlay {
    6161    display: none;
    6262    position: fixed;
     
    7676
    7777/* Popup Content */
    78 .iwd-popup-content {
     78.iwdquo-popup-content {
    7979    position: fixed;
    8080    top: 50%;
     
    104104
    105105/* Popup Header */
    106 .iwd-popup-header {
     106.iwdquo-popup-header {
    107107    display: flex;
    108108    justify-content: space-between;
     
    113113}
    114114
    115 .iwd-popup-title {
     115.iwdquo-popup-title {
    116116    margin: 0;
    117117    font-size: 22px;
     
    119119}
    120120
    121 .iwd-popup-close {
     121.iwdquo-popup-close {
    122122    background: none;
    123123    border: none;
     
    134134}
    135135
    136 .iwd-popup-close:hover {
     136.iwdquo-popup-close:hover {
    137137    color: #fff;
    138138    background-color: #000;
     
    140140
    141141/* Popup Product Info */
    142 .iwd-popup-product-info {
     142.iwdquo-popup-product-info {
    143143    background: #f8f9fa;
    144144    padding: 15px;
     
    147147}
    148148
    149 .iwd-popup-product-name {
     149.iwdquo-popup-product-name {
    150150    font-weight: 600;
    151151    font-size: 16px;
     
    154154}
    155155
    156 .iwd-popup-product-price {
     156.iwdquo-popup-product-price {
    157157    font-weight: 600;
    158158    font-size: 18px;
     
    160160}
    161161
    162 .iwd-popup-price-breakdown {
     162.iwdquo-popup-price-breakdown {
    163163    margin-top: 10px;
    164164    padding-top: 10px;
     
    167167}
    168168
    169 .iwd-popup-price-row {
     169.iwdquo-popup-price-row {
    170170    display: flex;
    171171    justify-content: space-between;
     
    174174}
    175175
    176 .iwd-popup-price-row.total {
     176.iwdquo-popup-price-row.total {
    177177    font-weight: 700;
    178178    font-size: 16px;
     
    182182}
    183183
    184 /* Popup Form */
    185 .iwd-popup-form-group {
     184/* Popup Form (iwdquo prefix) */
     185.iwdquo-popup-form-group {
    186186    margin-bottom: 15px;
    187187}
    188188
    189 .iwd-popup-label {
     189.iwdquo-popup-label {
    190190    display: block;
    191191    margin-bottom: 5px;
     
    195195}
    196196
    197 .iwd-popup-input,
    198 .iwd-popup-textarea {
     197.iwdquo-popup-input,
     198.iwdquo-popup-textarea {
    199199    width: 100%;
    200200    padding: 10px 12px !important;
     
    206206}
    207207
    208 .iwd-popup-input:focus,
    209 .iwd-popup-textarea:focus {
     208.iwdquo-popup-input:focus,
     209.iwdquo-popup-textarea:focus {
    210210    outline: none;
    211211    border: 1px solid #8b8b8b !important;
    212212}
    213213
    214 .iwd-popup-textarea {
     214.iwdquo-popup-textarea {
    215215    resize: vertical;
    216216    min-height: 80px;
    217217}
    218218
    219 .iwd-popup-error {
     219.iwdquo-popup-error {
    220220    color: #dc3545;
    221221    font-size: 12px;
     
    225225
    226226/* Popup Buttons */
    227 .iwd-popup-buttons {
     227.iwdquo-popup-buttons {
    228228    display: flex;
    229229    gap: 10px;
     
    231231}
    232232
    233 .iwd-popup-submit {
     233.iwdquo-popup-submit {
    234234    flex: 1;
    235235    border: none;
     
    242242}
    243243
    244 .iwd-popup-submit:hover {
     244.iwdquo-popup-submit:hover {
    245245    opacity: 0.9;
    246246}
    247247
    248 .iwd-popup-cancel {
     248.iwdquo-popup-cancel {
    249249    background: #6c757d;
    250250    color: #fff;
     
    257257}
    258258
    259 .iwd-popup-cancel:hover {
     259.iwdquo-popup-cancel:hover {
    260260    opacity: 0.9;
    261261}
     
    263263/* Responsive */
    264264@media (max-width: 600px) {
    265     .iwd-popup-content {
     265    .iwdquo-popup-content {
    266266        width: 95%;
    267267        padding: 20px;
    268268    }
    269269   
    270     .iwd-popup-title {
     270    .iwdquo-popup-title {
    271271        font-size: 18px;
    272272    }
    273273   
    274     .iwd-popup-buttons {
     274    .iwdquo-popup-buttons {
    275275        flex-direction: column;
    276276    }
  • iwd-quick-order/trunk/assets/js/admin.js

    r3466088 r3466102  
    1111       
    1212        // 1. Initialize Color Picker
    13         $('.iwd-color-picker').wpColorPicker();
     13        $('.iwdquo-color-picker').wpColorPicker();
    1414
    1515        // 2. Tab switching
    16         $(document).on('click', '.iwd-tab-button', function(e){
     16        $(document).on('click', '.iwdquo-tab-button', function(e){
    1717            e.preventDefault();
    1818            var target = $(this).data('tab');
    19             $('.iwd-tab-button').removeClass('active');
     19            $('.iwdquo-tab-button').removeClass('active');
    2020            $(this).addClass('active');
    21             $('.iwd-tab-content').removeClass('active');
     21            $('.iwdquo-tab-content').removeClass('active');
    2222            $('#' + target).addClass('active');
    2323        });
     
    2525        // 3. Popup Fields Visibility (Based on "Order Mode")
    2626        function togglePopupSections() {
    27             var mode = $('input[name="iwd_whatsapp_settings[order_mode]"]:checked').val();
     27            var mode = $('input[name="iwdquo_settings[order_mode]"]:checked').val();
    2828            if (mode === 'direct') {
    29                 $('.iwd-popup-only-settings').slideUp();
     29                $('.iwdquo-popup-only-settings').slideUp();
    3030            } else {
    31                 $('.iwd-popup-only-settings').slideDown();
     31                $('.iwdquo-popup-only-settings').slideDown();
    3232            }
    3333        }
    34         $(document).on('change', 'input[name="iwd_whatsapp_settings[order_mode]"]', togglePopupSections);
     34        $(document).on('change', 'input[name="iwdquo_settings[order_mode]"]', togglePopupSections);
    3535        togglePopupSections();
    3636
    3737        // 4. Delivery Charge Type Toggle
    3838        function toggleDeliveryFields() {
    39             var val = $('input[name="iwd_whatsapp_settings[delivery_type]"]:checked').val();
    40             $('.iwd-delivery-option').hide();
     39            var val = $('input[name="iwdquo_settings[delivery_type]"]:checked').val();
     40            $('.iwdquo-delivery-option').hide();
    4141            if (val === 'fixed') {
    42                 $('.iwd-delivery-fixed').show();
     42                $('.iwdquo-delivery-fixed').show();
    4343            } else if (val === 'custom_text') {
    44                 $('.iwd-delivery-custom').show();
     44                $('.iwdquo-delivery-custom').show();
    4545            }
    4646        }
    47         $(document).on('change', 'input[name="iwd_whatsapp_settings[delivery_type]"]', toggleDeliveryFields);
     47        $(document).on('change', 'input[name="iwdquo_settings[delivery_type]"]', toggleDeliveryFields);
    4848        toggleDeliveryFields();
    4949
     
    6161        }
    6262
    63         bindLabelToggle('#iwd_check_name', '#iwd_label_name_wrapper');
    64         bindLabelToggle('#iwd_check_address', '#iwd_label_address_wrapper');
    65         bindLabelToggle('#iwd_check_phone', '#iwd_label_phone_wrapper');
    66         bindLabelToggle('#iwd_check_email', '#iwd_label_email_wrapper');
    67         bindLabelToggle('#iwd_check_message', '#iwd_label_message_wrapper');
     63        bindLabelToggle('#iwdquo_check_name', '#iwdquo_label_name_wrapper');
     64        bindLabelToggle('#iwdquo_check_address', '#iwdquo_label_address_wrapper');
     65        bindLabelToggle('#iwdquo_check_phone', '#iwdquo_label_phone_wrapper');
     66        bindLabelToggle('#iwdquo_check_email', '#iwdquo_label_email_wrapper');
     67        bindLabelToggle('#iwdquo_check_message', '#iwdquo_label_message_wrapper');
    6868
    6969
    7070        // 6. AJAX Save Settings
    71         $('#iwd-whatsapp-form').on('submit', function(e){
     71        $('#iwdquo-form').on('submit', function(e){
    7272            e.preventDefault();
    7373           
    74             var $btn = $(this).find('.iwd-save-button');
    75             var $msg = $('#iwd-ajax-message');
     74            var $btn = $(this).find('.iwdquo-save-button');
     75            var $msg = $('#iwdquo-ajax-message');
    7676           
    7777            $btn.prop('disabled', true).text('Saving...');
     
    8181
    8282            $.ajax({
    83                 url: iwdAdmin.ajaxurl,
     83                url: iwdquoAdmin.ajaxurl,
    8484                type: 'POST',
    8585                data: {
    86                     action: 'iwd_save_settings',
    87                     security: iwdAdmin.nonce,
     86                    action: 'iwdquo_save_settings',
     87                    security: iwdquoAdmin.nonce,
    8888                    form_data: formData
    8989                },
  • iwd-quick-order/trunk/assets/js/frontend.js

    r3466088 r3466102  
    99   
    1010    var iwdWhatsAppOrder = {
    11         settings: iwdWhatsAppSettings || {},
    12         i18n: (iwdWhatsAppSettings && iwdWhatsAppSettings.i18n) || {},
     11        settings: iwdquoSettings || {},
     12        i18n: (iwdquoSettings && iwdquoSettings.i18n) || {},
    1313        nl: '%0A',
    1414       
     
    2727           
    2828            // Close Popup Actions
    29             $(document).on('click', '.iwd-popup-close, .iwd-popup-cancel', function() {
     29            $(document).on('click', '.iwdquo-popup-close, .iwdquo-popup-cancel', function() {
    3030                self.closePopup();
    3131            });
    32             $(document).on('click', '.iwd-popup-overlay', function(e) {
    33                 if ($(e.target).hasClass('iwd-popup-overlay')) {
     32            $(document).on('click', '.iwdquo-popup-overlay', function(e) {
     33                if ($(e.target).hasClass('iwdquo-popup-overlay')) {
    3434                    self.closePopup();
    3535                }
     
    3737           
    3838            // Submit Popup Form
    39             $(document).on('click', '.iwd-popup-submit', function(e) {
     39            $(document).on('click', '.iwdquo-popup-submit', function(e) {
    4040                e.preventDefault();
    4141                self.submitPopupForm();
     
    6161       
    6262        showVariationError: function() {
    63             var errorMsg = $('.iwd-variation-error');
     63            var errorMsg = $('.iwdquo-variation-error');
    6464            if (errorMsg.length === 0) {
    65                 $('.iwd-whatsapp-button').after('<div class="iwd-variation-error">' + this.i18n.pleaseSelectOptions + '</div>');
    66                 errorMsg = $('.iwd-variation-error');
     65                $('.iwd-whatsapp-button').after('<div class="iwdquo-variation-error">' + this.i18n.pleaseSelectOptions + '</div>');
     66                errorMsg = $('.iwdquo-variation-error');
    6767            }
    6868            errorMsg.slideDown();
     
    234234            var product = this.getProductData();
    235235            // Fill Popup Data
    236             $('#iwd-popup-product-name').text(product.name);
    237             $('#iwd-popup-product-price').text(product.priceFormatted);
     236            $('#iwdquo-popup-product-name').text(product.name);
     237            $('#iwdquo-popup-product-price').text(product.priceFormatted);
    238238           
    239239            if (this.settings.showPriceCalc === 'yes') {
    240                 $('#iwd-popup-product-quantity').text(product.quantity);
    241                 $('#iwd-popup-product-subtotal').text(this.formatPrice(product.subtotal));
     240                $('#iwdquo-popup-product-quantity').text(product.quantity);
     241                $('#iwdquo-popup-product-subtotal').text(this.formatPrice(product.subtotal));
    242242               
    243243                if(product.deliveryType === 'fixed') {
    244                     $('#iwd-popup-product-delivery').text(this.formatPrice(product.deliveryCost)).parent().show();
    245                     $('#iwd-popup-product-total').text(this.formatPrice(product.total));
     244                    $('#iwdquo-popup-product-delivery').text(this.formatPrice(product.deliveryCost)).parent().show();
     245                    $('#iwdquo-popup-product-total').text(this.formatPrice(product.total));
    246246                } else if(product.deliveryType === 'custom_text') {
    247                     $('#iwd-popup-product-delivery').text(product.deliveryText).parent().show();
    248                     $('#iwd-popup-product-total').text(this.formatPrice(product.total));
     247                    $('#iwdquo-popup-product-delivery').text(product.deliveryText).parent().show();
     248                    $('#iwdquo-popup-product-total').text(this.formatPrice(product.total));
    249249                } else {
    250                     $('#iwd-popup-product-delivery').parent().hide();
    251                     $('#iwd-popup-product-total').text(this.formatPrice(product.total));
     250                    $('#iwdquo-popup-product-delivery').parent().hide();
     251                    $('#iwdquo-popup-product-total').text(this.formatPrice(product.total));
    252252                }
    253                 $('.iwd-popup-price-breakdown').show();
    254             } else {
    255                 $('.iwd-popup-price-breakdown').hide();
     253                $('.iwdquo-popup-price-breakdown').show();
     254            } else {
     255                $('.iwdquo-popup-price-breakdown').hide();
    256256            }
    257257           
    258258            if (product.variations) {
    259                 $('#iwd-popup-product-variations').text(product.variations).show();
    260             } else {
    261                 $('#iwd-popup-product-variations').hide();
    262             }
    263            
    264             $('.iwd-popup-overlay').fadeIn(300);
     259                $('#iwdquo-popup-product-variations').text(product.variations).show();
     260            } else {
     261                $('#iwdquo-popup-product-variations').hide();
     262            }
     263           
     264            $('.iwdquo-popup-overlay').fadeIn(300);
    265265            $('body').css('overflow', 'hidden');
    266266        },
    267267       
    268268        closePopup: function() {
    269             $('.iwd-popup-overlay').fadeOut(300);
     269            $('.iwdquo-popup-overlay').fadeOut(300);
    270270            $('body').css('overflow', '');
    271             if ($('.iwd-popup-form').length) { $('.iwd-popup-form')[0].reset(); }
    272             $('.iwd-popup-error').hide();
     271            if ($('.iwdquo-popup-form').length) { $('.iwdquo-popup-form')[0].reset(); }
     272            $('.iwdquo-popup-error').hide();
    273273        },
    274274       
     
    278278           
    279279            // Validate
    280             $('.iwd-popup-form').find('input[required], textarea[required]').each(function() {
     280            $('.iwdquo-popup-form').find('input[required], textarea[required]').each(function() {
    281281                var field = $(this);
    282                 var error = field.siblings('.iwd-popup-error');
     282                var error = field.siblings('.iwdquo-popup-error');
    283283                if (!field.val().trim()) {
    284284                    error.text(self.i18n.fieldRequired).show();
  • iwd-quick-order/trunk/includes/class-iwdquo-admin.php

    r3466088 r3466102  
    6464            __('WhatsApp Order', 'iwd-quick-order'),
    6565            'manage_woocommerce',
    66             'iwdquo-order',
     66            'iwd-whatsapp-order',
    6767            array($this, 'render_admin_page')
    6868        );
  • iwd-quick-order/trunk/includes/class-iwdquo-frontend.php

    r3466088 r3466102  
    146146            fill: {$text_color};
    147147        }
    148         .iwd-popup-product-price {
     148        .iwdquo-popup-product-price {
    149149            color: {$bg_color};
    150150        }
    151         .iwd-popup-price-row.total {
     151        .iwdquo-popup-price-row.total {
    152152            color: {$bg_color};
    153153        }
    154         .iwd-popup-input:focus, .iwd-popup-textarea:focus {
     154        .iwdquo-popup-input:focus, .iwdquo-popup-textarea:focus {
    155155            border-color: {$bg_color};
    156156        }
    157         .iwd-popup-submit {
     157        .iwdquo-popup-submit {
    158158            background: {$bg_color};
    159159            color: {$text_color};
Note: See TracChangeset for help on using the changeset viewer.