Plugin Directory

Changeset 3198064


Ignore:
Timestamp:
11/27/2024 10:53:04 AM (16 months ago)
Author:
triopsi
Message:

New Release v1.2.0

Location:
extra-product-data-for-woocommerce/trunk
Files:
15 added
8 edited

Legend:

Unmodified
Added
Removed
  • extra-product-data-for-woocommerce/trunk/CHANGELOG.md

    r3195971 r3198064  
     1## [1.1.2](https://git.triopsi.dev/triopsi/extra-product-data-for-woocommerce/compare/v1.1.1...v1.1.2) (2024-11-20)
     2
     3
     4### Bug Fixes
     5
     6* add js to the footer ([7b70b82](https://git.triopsi.dev/triopsi/extra-product-data-for-woocommerce/commit/7b70b826dc90f77663f2e75d44deb13965339d81))
     7* add translators ([54fa4bc](https://git.triopsi.dev/triopsi/extra-product-data-for-woocommerce/commit/54fa4bcacf8ecf5edc70aa499bba6241b6243f99))
     8
    19## [1.1.1](https://git.triopsi.dev/triopsi/extra-product-data-for-woocommerce/compare/v1.1.0...v1.1.1) (2024-11-20)
    210
  • extra-product-data-for-woocommerce/trunk/assets/css/admin-backend.css

    r3195971 r3198064  
    1 #extra-product-data{padding:10px}table.exprdawc_attribute_table td{vertical-align:middle!important}table.exprdawc_attribute_table td.exprdawc_attribute_require_checkbox label{padding-top:15px}table.exprdawc_field_table tr:nth-child(2n){background-color:#dedede}table.exprdawc_field_table tr{border-bottom:1px solid #a6a6a6}table.exprdawc_field_table tr:last-child{border-bottom:none}table.exprdawc_field_table tbody tr:hover{background-color:#f1f1f1}table.exprdawc_field_table tbody td{text-align:center;vertical-align:middle}table.exprdawc_field_table tbody td input[type=text]{width:100%}table.exprdawc_field_table tbody td.move i{cursor:move}.exprdawc_attribute h3 .sort{cursor:move;float:right;font-size:15px;font-weight:400;height:26px;margin-right:.5em;text-align:center;vertical-align:middle;width:17px}.exprdawc_attribute h3 .sort:before{color:#999;content:"\f333";display:block;float:left;font-family:Dashicons;height:100%;line-height:28px;text-align:center;width:17px}.exprdawc_attribute h3 .sort:hover:before{color:#777}.exprdawc_attribute h3:hover .sort,.exprdawc_attribute.ui-sortable-helper .sort{visibility:visible}.exprdawc_attribute.wc-metabox.postbox{border-left:0;border-right:0;border-top:0}.exprdawc_panel .wc-metabox{background:#fff;border-bottom:1px solid #eee;margin:0!important}.exprdawc_panel .wc-metabox.exprdawc_attribute h3{cursor:pointer;padding:.5em .75em .5em 1em!important}.exprdawc_panel .wc-metabox.exprdawc_attribute h3 .sort,.exprdawc_panel .wc-metabox.exprdawc_attribute h3 a.delete,.exprdawc_panel .wc-metabox.exprdawc_attribute h3 a.edit{margin-top:.25em}.exprdawc_panel{display:block}#woocommerce-coupon-data ul.wc-tabs li.custom_fields_options a:before,#woocommerce-product-data ul.wc-tabs li.custom_fields_options a:before,.woocommerce ul.wc-tabs li.custom_fields_options a:before{content:"\f163";font-family:Dashicons}
     1#extra-product-data {
     2  padding: 10px 10px;
     3}
     4
     5table.exprdawc_attribute_table td {
     6  vertical-align: middle !important;
     7}
     8table.exprdawc_attribute_table td.exprdawc_attribute_require_checkbox label {
     9  padding-top: 15px;
     10}
     11
     12table.exprdawc_field_table tr:nth-child(even) {
     13  background-color: #dedede;
     14}
     15table.exprdawc_field_table tr {
     16  border-bottom: 1px solid #a6a6a6;
     17}
     18table.exprdawc_field_table tr:last-child {
     19  border-bottom: none;
     20}
     21table.exprdawc_field_table tbody tr:hover {
     22  background-color: #f1f1f1;
     23}
     24table.exprdawc_field_table tbody td {
     25  text-align: center;
     26  vertical-align: middle;
     27}
     28table.exprdawc_field_table tbody td input[type=text] {
     29  width: 100%;
     30}
     31table.exprdawc_field_table tbody td.move i {
     32  cursor: move;
     33}
     34
     35.exprdawc_attribute h3 .sort {
     36  width: 17px;
     37  height: 26px;
     38  cursor: move;
     39  float: right;
     40  font-size: 15px;
     41  font-weight: 400;
     42  margin-right: 0.5em;
     43  text-align: center;
     44  vertical-align: middle;
     45}
     46.exprdawc_attribute h3 .sort::before {
     47  content: "\f333";
     48  font-family: "Dashicons";
     49  text-align: center;
     50  line-height: 28px;
     51  color: #999;
     52  display: block;
     53  width: 17px;
     54  float: left;
     55  height: 100%;
     56}
     57.exprdawc_attribute h3 .sort:hover::before {
     58  color: #777;
     59}
     60.exprdawc_attribute h3:hover .sort, .exprdawc_attribute.ui-sortable-helper .sort {
     61  visibility: visible;
     62}
     63.exprdawc_attribute.wc-metabox.postbox {
     64  border-top: 0px;
     65  border-left: 0px;
     66  border-right: 0px;
     67}
     68
     69.exprdawc_panel .wc-metabox {
     70  background: #fff;
     71  border-bottom: 1px solid #eee;
     72  margin: 0 !important;
     73}
     74.exprdawc_panel .wc-metabox.exprdawc_attribute h3 {
     75  cursor: pointer;
     76  padding: 0.5em 0.75em 0.5em 1em !important;
     77}
     78.exprdawc_panel .wc-metabox.exprdawc_attribute h3 a.delete,
     79.exprdawc_panel .wc-metabox.exprdawc_attribute h3 a.edit,
     80.exprdawc_panel .wc-metabox.exprdawc_attribute h3 .sort {
     81  margin-top: 0.25em;
     82}
     83
     84.exprdawc_panel {
     85  display: block;
     86}
     87
     88#woocommerce-product-data ul.wc-tabs li.custom_fields_options a::before,
     89#woocommerce-coupon-data ul.wc-tabs li.custom_fields_options a::before,
     90.woocommerce ul.wc-tabs li.custom_fields_options a::before {
     91  font-family: "Dashicons";
     92  content: "\f163";
     93}
  • extra-product-data-for-woocommerce/trunk/assets/js/wc-meta-boxes-product.js

    r3195971 r3198064  
    1 (()=>{var t,e={976:()=>{jQuery((function(t){t("#exprdawc_add_custom_field").on("click",(function(){console.log("Add custom field");var e=t("#exprdawc_field_body .exprdawc_attribute").length;t("#exprdawc_field_body").append('\n            <tr class="exprdawc_attribute">\n                <td class="move"><i class="dashicons dashicons-move"></i></td>\n                <td class="exprdawc_attribute_input_name">                                    \n                    <input type="text" name="extra_product_fields['.concat(e,'][label]" placeholder="').concat(exprdawc_admin_meta_boxes.label_placeholder,'" />\n                </td>\n                <td>\n                    <select id="exprdawc_attribute_type_').concat(e,'" name="extra_product_fields[').concat(e,'][type]" class="exprdawc_attribute_type">\n                        <option value="text" selected="selected">').concat(exprdawc_admin_meta_boxes.short_text,'</option>\n                        <option value="long_text">').concat(exprdawc_admin_meta_boxes.long_text,'</option>\n                        <option value="email">').concat(exprdawc_admin_meta_boxes.email,'</option>\n                        <option value="number">').concat(exprdawc_admin_meta_boxes.number,'</option>\n                        <option value="date">').concat(exprdawc_admin_meta_boxes.date,'</option>\n                        <option value="yes-no">').concat(exprdawc_admin_meta_boxes.yes_no,'</option>\n                    </select>\n                </td>\n                <td class="exprdawc_attribute_require_checkbox">\n                    <input type="checkbox" class="checkbox" name="extra_product_fields[').concat(e,'][required]" value="1" />\n                </td>\n                <td class="exprdawc_attribute_placeholder_text">\n                    <input type="text" name="extra_product_fields[').concat(e,'][placeholder_text]" placeholder="').concat(exprdawc_admin_meta_boxes.placeholder_text,'" />\n                </td>\n                <td class="exprdawc_attribute_help_text">\n                    <input type="text" name="extra_product_fields[').concat(e,'][help_text]" placeholder="').concat(exprdawc_admin_meta_boxes.help_text,'" />\n                </td>\n                <td>\n                    <button type="button" class="exprdawc_remove_custom_field button">').concat(exprdawc_admin_meta_boxes.remove,"</button>\n                </td>\n            </tr>\n            "))})),t(document).on("click",".exprdawc_remove_custom_field",(function(){return confirm("Are you sure you want to delete this field?")&&t(this).closest("tr").remove(),!1})),t("#exprdawc_attribute_container").on("click",".exprdawc_attribute .exprdawc_remove_custom_field",(function(){return t(this).parent().parent().remove(),!1})),t(".exprdawc_attributes tbody").sortable({items:"tr.exprdawc_attribute",cursor:"move",axis:"y",handle:".move",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(t,e){e.item.css("background-color","#f6f6f6")},stop:function(t,e){e.item.removeAttr("style")}}),t("#exprdawc_attribute_container").on("input",".exprdawc_attribute .exprdawc_attribute_input_name input",(function(){var e=t(this).val(),a=t(this).closest(".exprdawc_attribute").find(".attribute_name");e&&a.text(e)})),t("#exprdawc_attribute_container").on("input",".exprdawc_attribute .exprdawc_attribute_input_name input",(function(){var e=t(this).val(),a=t(this).closest(".exprdawc_attribute").find(".attribute_name");e&&a.text(e)}))}))},989:()=>{}},a={};function o(t){var r=a[t];if(void 0!==r)return r.exports;var n=a[t]={exports:{}};return e[t](n,n.exports,o),n.exports}o.m=e,t=[],o.O=(e,a,r,n)=>{if(!a){var c=1/0;for(p=0;p<t.length;p++){for(var[a,r,n]=t[p],i=!0,d=0;d<a.length;d++)(!1&n||c>=n)&&Object.keys(o.O).every((t=>o.O[t](a[d])))?a.splice(d--,1):(i=!1,n<c&&(c=n));if(i){t.splice(p--,1);var _=r();void 0!==_&&(e=_)}}return e}n=n||0;for(var p=t.length;p>0&&t[p-1][2]>n;p--)t[p]=t[p-1];t[p]=[a,r,n]},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={890:0,107:0};o.O.j=e=>0===t[e];var e=(e,a)=>{var r,n,[c,i,d]=a,_=0;if(c.some((e=>0!==t[e]))){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(d)var p=d(o)}for(e&&e(a);_<c.length;_++)n=c[_],o.o(t,n)&&t[n]&&t[n][0](),t[n]=0;return o.O(p)},a=self.webpackChunkextra_product_data_for_woocommerce=self.webpackChunkextra_product_data_for_woocommerce||[];a.forEach(e.bind(null,0)),a.push=e.bind(null,a.push.bind(a))})(),o.O(void 0,[107],(()=>o(976)));var r=o.O(void 0,[107],(()=>o(989)));r=o.O(r)})();
     1/******/ (() => { // webpackBootstrap
     2/******/    var __webpack_modules__ = ({
     3
     4/***/ "./src/assets/js/wc-meta-boxes-product.js":
     5/*!************************************************!*\
     6  !*** ./src/assets/js/wc-meta-boxes-product.js ***!
     7  \************************************************/
     8/***/ (() => {
     9
     10/**
     11 * Add custom fields to the product data meta box.
     12 */
     13jQuery(function ($) {
     14  // Add custom field.
     15  $('#exprdawc_add_custom_field').on('click', function () {
     16    console.log('Add custom field');
     17    var fieldIndex = $('#exprdawc_field_body .exprdawc_attribute').length;
     18    $('#exprdawc_field_body').append("\n            <tr class=\"exprdawc_attribute\">\n                <td class=\"move\"><i class=\"dashicons dashicons-move\"></i></td>\n                <td class=\"exprdawc_attribute_input_name\">                                    \n                    <input type=\"text\" name=\"extra_product_fields[".concat(fieldIndex, "][label]\" placeholder=\"").concat(exprdawc_admin_meta_boxes.label_placeholder, "\" />\n                </td>\n                <td>\n                    <select id=\"exprdawc_attribute_type_").concat(fieldIndex, "\" name=\"extra_product_fields[").concat(fieldIndex, "][type]\" class=\"exprdawc_attribute_type\">\n                        <option value=\"text\" selected=\"selected\">").concat(exprdawc_admin_meta_boxes.short_text, "</option>\n                        <option value=\"long_text\">").concat(exprdawc_admin_meta_boxes.long_text, "</option>\n                        <option value=\"email\">").concat(exprdawc_admin_meta_boxes.email, "</option>\n                        <option value=\"number\">").concat(exprdawc_admin_meta_boxes.number, "</option>\n                        <option value=\"date\">").concat(exprdawc_admin_meta_boxes.date, "</option>\n                        <option value=\"yes-no\">").concat(exprdawc_admin_meta_boxes.yes_no, "</option>\n                    </select>\n                </td>\n                <td class=\"exprdawc_attribute_require_checkbox\">\n                    <input type=\"checkbox\" class=\"checkbox\" name=\"extra_product_fields[").concat(fieldIndex, "][required]\" value=\"1\" />\n                </td>\n                <td class=\"exprdawc_attribute_placeholder_text\">\n                    <input type=\"text\" name=\"extra_product_fields[").concat(fieldIndex, "][placeholder_text]\" placeholder=\"").concat(exprdawc_admin_meta_boxes.placeholder_text, "\" />\n                </td>\n                <td class=\"exprdawc_attribute_help_text\">\n                    <input type=\"text\" name=\"extra_product_fields[").concat(fieldIndex, "][help_text]\" placeholder=\"").concat(exprdawc_admin_meta_boxes.help_text, "\" />\n                </td>\n                <td>\n                    <button type=\"button\" class=\"exprdawc_remove_custom_field button\">").concat(exprdawc_admin_meta_boxes.remove, "</button>\n                </td>\n            </tr>\n            "));
     19  });
     20
     21  // Confirm deletion of custom fields.
     22  $(document).on('click', '.exprdawc_remove_custom_field', function () {
     23    if (confirm("Are you sure you want to delete this field?")) {
     24      $(this).closest('tr').remove();
     25    }
     26    return false;
     27  });
     28  $('#exprdawc_attribute_container').on('click', '.exprdawc_attribute .exprdawc_remove_custom_field', function () {
     29    var parent_el = $(this).parent().parent();
     30    parent_el.remove();
     31    return false;
     32  });
     33
     34  // Attribute ordering.
     35  $('.exprdawc_attributes tbody').sortable({
     36    items: 'tr.exprdawc_attribute',
     37    cursor: 'move',
     38    axis: 'y',
     39    handle: '.move',
     40    scrollSensitivity: 40,
     41    forcePlaceholderSize: true,
     42    helper: 'clone',
     43    opacity: 0.65,
     44    placeholder: 'wc-metabox-sortable-placeholder',
     45    start: function start(event, ui) {
     46      ui.item.css('background-color', '#f6f6f6');
     47    },
     48    stop: function stop(event, ui) {
     49      ui.item.removeAttr('style');
     50    }
     51  });
     52
     53  // Get the name of the input and set the header.
     54  $('#exprdawc_attribute_container').on('input', '.exprdawc_attribute .exprdawc_attribute_input_name input', function () {
     55    var text = $(this).val(),
     56      target = $(this).closest('.exprdawc_attribute').find('.attribute_name');
     57    if (text) {
     58      target.text(text);
     59    }
     60  });
     61
     62  // Get the name of the input and set the header.
     63  $('#exprdawc_attribute_container').on('input', '.exprdawc_attribute .exprdawc_attribute_input_name input', function () {
     64    var text = $(this).val(),
     65      target = $(this).closest('.exprdawc_attribute').find('.attribute_name');
     66    if (text) {
     67      target.text(text);
     68    }
     69  });
     70});
     71
     72/***/ }),
     73
     74/***/ "./src/assets/scss/admin-backend.scss":
     75/*!********************************************!*\
     76  !*** ./src/assets/scss/admin-backend.scss ***!
     77  \********************************************/
     78/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
     79
     80"use strict";
     81__webpack_require__.r(__webpack_exports__);
     82// extracted by mini-css-extract-plugin
     83
     84
     85/***/ })
     86
     87/******/    });
     88/************************************************************************/
     89/******/    // The module cache
     90/******/    var __webpack_module_cache__ = {};
     91/******/   
     92/******/    // The require function
     93/******/    function __webpack_require__(moduleId) {
     94/******/        // Check if module is in cache
     95/******/        var cachedModule = __webpack_module_cache__[moduleId];
     96/******/        if (cachedModule !== undefined) {
     97/******/            return cachedModule.exports;
     98/******/        }
     99/******/        // Create a new module (and put it into the cache)
     100/******/        var module = __webpack_module_cache__[moduleId] = {
     101/******/            // no module.id needed
     102/******/            // no module.loaded needed
     103/******/            exports: {}
     104/******/        };
     105/******/   
     106/******/        // Execute the module function
     107/******/        __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
     108/******/   
     109/******/        // Return the exports of the module
     110/******/        return module.exports;
     111/******/    }
     112/******/   
     113/******/    // expose the modules object (__webpack_modules__)
     114/******/    __webpack_require__.m = __webpack_modules__;
     115/******/   
     116/************************************************************************/
     117/******/    /* webpack/runtime/chunk loaded */
     118/******/    (() => {
     119/******/        var deferred = [];
     120/******/        __webpack_require__.O = (result, chunkIds, fn, priority) => {
     121/******/            if(chunkIds) {
     122/******/                priority = priority || 0;
     123/******/                for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
     124/******/                deferred[i] = [chunkIds, fn, priority];
     125/******/                return;
     126/******/            }
     127/******/            var notFulfilled = Infinity;
     128/******/            for (var i = 0; i < deferred.length; i++) {
     129/******/                var [chunkIds, fn, priority] = deferred[i];
     130/******/                var fulfilled = true;
     131/******/                for (var j = 0; j < chunkIds.length; j++) {
     132/******/                    if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
     133/******/                        chunkIds.splice(j--, 1);
     134/******/                    } else {
     135/******/                        fulfilled = false;
     136/******/                        if(priority < notFulfilled) notFulfilled = priority;
     137/******/                    }
     138/******/                }
     139/******/                if(fulfilled) {
     140/******/                    deferred.splice(i--, 1)
     141/******/                    var r = fn();
     142/******/                    if (r !== undefined) result = r;
     143/******/                }
     144/******/            }
     145/******/            return result;
     146/******/        };
     147/******/    })();
     148/******/   
     149/******/    /* webpack/runtime/hasOwnProperty shorthand */
     150/******/    (() => {
     151/******/        __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
     152/******/    })();
     153/******/   
     154/******/    /* webpack/runtime/make namespace object */
     155/******/    (() => {
     156/******/        // define __esModule on exports
     157/******/        __webpack_require__.r = (exports) => {
     158/******/            if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
     159/******/                Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
     160/******/            }
     161/******/            Object.defineProperty(exports, '__esModule', { value: true });
     162/******/        };
     163/******/    })();
     164/******/   
     165/******/    /* webpack/runtime/jsonp chunk loading */
     166/******/    (() => {
     167/******/        // no baseURI
     168/******/       
     169/******/        // object to store loaded and loading chunks
     170/******/        // undefined = chunk not loaded, null = chunk preloaded/prefetched
     171/******/        // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
     172/******/        var installedChunks = {
     173/******/            "/assets/js/wc-meta-boxes-product": 0,
     174/******/            "assets/css/admin-backend": 0
     175/******/        };
     176/******/       
     177/******/        // no chunk on demand loading
     178/******/       
     179/******/        // no prefetching
     180/******/       
     181/******/        // no preloaded
     182/******/       
     183/******/        // no HMR
     184/******/       
     185/******/        // no HMR manifest
     186/******/       
     187/******/        __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
     188/******/       
     189/******/        // install a JSONP callback for chunk loading
     190/******/        var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
     191/******/            var [chunkIds, moreModules, runtime] = data;
     192/******/            // add "moreModules" to the modules object,
     193/******/            // then flag all "chunkIds" as loaded and fire callback
     194/******/            var moduleId, chunkId, i = 0;
     195/******/            if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
     196/******/                for(moduleId in moreModules) {
     197/******/                    if(__webpack_require__.o(moreModules, moduleId)) {
     198/******/                        __webpack_require__.m[moduleId] = moreModules[moduleId];
     199/******/                    }
     200/******/                }
     201/******/                if(runtime) var result = runtime(__webpack_require__);
     202/******/            }
     203/******/            if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
     204/******/            for(;i < chunkIds.length; i++) {
     205/******/                chunkId = chunkIds[i];
     206/******/                if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
     207/******/                    installedChunks[chunkId][0]();
     208/******/                }
     209/******/                installedChunks[chunkId] = 0;
     210/******/            }
     211/******/            return __webpack_require__.O(result);
     212/******/        }
     213/******/       
     214/******/        var chunkLoadingGlobal = self["webpackChunkextra_product_data_for_woocommerce"] = self["webpackChunkextra_product_data_for_woocommerce"] || [];
     215/******/        chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
     216/******/        chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
     217/******/    })();
     218/******/   
     219/************************************************************************/
     220/******/   
     221/******/    // startup
     222/******/    // Load entry module and return exports
     223/******/    // This entry module depends on other loaded chunks and execution need to be delayed
     224/******/    __webpack_require__.O(undefined, ["assets/css/admin-backend"], () => (__webpack_require__("./src/assets/js/wc-meta-boxes-product.js")))
     225/******/    var __webpack_exports__ = __webpack_require__.O(undefined, ["assets/css/admin-backend"], () => (__webpack_require__("./src/assets/scss/admin-backend.scss")))
     226/******/    __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
     227/******/   
     228/******/ })()
     229;
  • extra-product-data-for-woocommerce/trunk/extra-product-data-for-woocommerce.php

    r3195971 r3198064  
    33Plugin Name: Extra Product Data for WooCommerce
    44Description: Adds customizable input fields per product in WooCommerce, allowing users to enter extra details on the frontend.
    5 Version: 1.1.2
     5Version: 1.2.0
    66Author: Triopsi
    7 Author URI: https://triopsi.com
     7Author URI: https://triopsi.dev
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010Text Domain: extra-product-data-for-woocommerce
     11WC requires at least: 3.9
     12WC tested up to: 9.4
     13Requires Plugins: woocommerce
    1114*/
    1215
     
    2730define( 'EXPRDAWC_ASSETS_CSS', EXPRDAWC_URL . 'assets/css/' );
    2831define( 'EXPRDAWC_ASSETS_JS', EXPRDAWC_URL . 'assets/js/' );
    29 define( 'EXPRDAWC_TEMPLATES', EXPRDAWC_SRC . 'templates/view' );
     32define( 'EXPRDAWC_TEMPLATES', EXPRDAWC_SRC . 'templates/view/' );
     33define( 'EXPRDAWC_ADMIN_TEMPLATES_PATH', EXPRDAWC_TEMPLATES . 'admin/' );
     34define( 'EXPRDAWC_FIELDS_TEMPLATES_PATH', EXPRDAWC_TEMPLATES . 'fields/' );
    3035
    3136// Include functions/helpers.
  • extra-product-data-for-woocommerce/trunk/readme.txt

    r3196183 r3198064  
    55Tested up to: 6.7
    66Requires PHP: 8.2
    7 Stable tag: 1.0.0
     7Stable tag: 1.2.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3131== Supported Fields ==
    3232The following field types are currently implemented:
     33
    3334    *   Text
    3435    *   Textarea
     
    7273* Initial release.
    7374
    74 = 1.0.1 =
     75= 1.1.2 =
    7576* Initial release with fixes
     77
     78= 1.1.3 =
     79* Update for the WordPress Library
    7680
    7781== Upgrade Notice ==
  • extra-product-data-for-woocommerce/trunk/src/classes/class-exprdawc-main.php

    r3195971 r3198064  
    7777
    7878    /**
     79    * Overview Order Obejct Holder.
     80    *
     81    * @var \Overview_Order
     82    */
     83   protected $exprdawc_admin_order_edit = null;
     84
     85    /**
    7986     * Creates or returns an instance of this class.
    8087     *
     
    130137            // Product Order Overview.
    131138            $this->exprdawc_overview_order = new Exprdawc_Overview_Order();
     139
     140            // Admin Order Edit Page.
     141            $this->exprdawc_admin_order_edit = new Exprdawc_Admin_Order();
     142
    132143        }
    133144    }
  • extra-product-data-for-woocommerce/trunk/src/classes/class-exprdawc-product-page-backend.php

    r3195971 r3198064  
    7878    public function exprdawc_add_custom_product_fields() {
    7979        global $post, $thepostid, $product_object;
    80         include EXPRDAWC_TEMPLATES . '/html-tab-extra-attributes.php';
     80        include EXPRDAWC_TEMPLATES . 'html-tab-extra-attributes.php';
    8181    }
    8282
  • extra-product-data-for-woocommerce/trunk/src/templates/view/html-tab-extra-attributes.php

    r3195971 r3198064  
    6161                if ( ! empty( $custom_fields ) ) {
    6262                    foreach ( $custom_fields as $index => $field ) {
    63                         include EXPRDAWC_TEMPLATES . '/html-tab-extra-attributes-fields.php';
     63                        include EXPRDAWC_TEMPLATES . 'html-tab-extra-attributes-fields.php';
    6464                    }
    6565                }
Note: See TracChangeset for help on using the changeset viewer.