webdna / commerce-admin-orders Goto Github PK
View Code? Open in Web Editor NEWCreate a new commerce order from the admin
License: Other
Create a new commerce order from the admin
License: Other
Running both 2.5.3 (Commerce 2.1.13) and 2.6.0 (Commerce 2.1.13) and with the Guest checkout. I can create a new address fine but as soon as I try and edit it, the red Craft alert pops up saying it couldn't update the address.
Using the latest version I am getting a 500 error when trying to add a item to the cart:
action: commerce-admin-orders/orders/add-to-cart
response: 500
error: Undefined variable: cart
This prevents the cart from completing and is not returning a full CraftCMS error.
Hello,
we have an online shop with around 15000 products. In the default search field from craft commerce everything is working fine. But if we create a new order via backend there is an issue. The page frozen and don't find any products.
Did you use the default search functionality from craft? We need help, because currently it's not possible to create backend orders.
Thanks for your support.
Would be useful to be able to go back to the previous step when creating an order
Currently when adding a new address via this plugin the countries and state dropdowns show all possible options.
It would be useful if these could be limited to those enabled within Craft Commerce (we have had a customer accidentally create an order with an address in Afghanistan which threw the tax and shipping out).
Is it possible to set a custom price for each product if i create the order with your plugin? Maybe placed under the price a checkbox and if i click on it enabel a input field for a custom price in this order?
I'm wanting to use this with gift vouchers products but there's no ability for admin orders to have a lineitem note attached.
We have recently installed this plugin on a client site and clicking on any of the filtering buttons on the Commerce > Orders triggers the New Order modal, overriding the built-in Craft functionality needed to filter Orders.
Craft CMS 3.6.10
Craft Commerce 3.2.17.3
Commerce Admin Orders 2.7.1
It looks like the JS trigger needs updating: /src/assetbundles/neworder/dist/js/Modal.js:20
Was:
this.$newOrder = $('#header .btn');
Should be:
this.$newOrder = $('#header .btn.add');
Cole
That line is the offending line, as basically the $order
variable is null.
When I try to complete an New order via the admin panel I cannot get past the shipping screen.
When clicking continue on this screen I get the #transactionsTab opening in a new browser tab and the order closes in the original one
The new is blank and loads no html.
The only error flagged is:
TypeError: r.shift is not a function jquery.js:5481:26
jQuery 3
handler
dispatch
handle
I had this installation and had never gotten this error:
CMS: 3.1.31
Commerce: 2.1.7
Admin Orders: 2.4.0
Events: 1.1.1
now with this set of software:
CMS: 3.1.3
Commerce: 2.1.13
Admin Orders: 2.5.0
Events: 1.1.6
I get the following error when trying to create an admin order in the Control Panel:
Next Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Getting unknown property: kuriousagency\commerce\adminorders\elements\Ticket::stock"). in /home/swishvps/dev.stemplecreek.com/vendor/craftcms/cms/src/templates/_elements/tableview/elements.html:25
Stack trace:
#0 /home/swishvps/dev.stemplecreek.com/vendor/twig/twig/src/Template.php(380): Twig\Template->displayWithErrorHandling(Array, Array)
#1 /home/swishvps/dev.stemplecreek.com/storage/runtime/compiled_templates/c2/c22b3d47c3994b58853cdf7d7ad5e82fd30343fb8b0b095cea899dbb79f720eb.php(96): Twig\Template->display(Array)
#2 /home/swishvps/dev.stemplecreek.com/vendor/twig/twig/src/Template.php(407): __TwigTemplate_77f63915bad4da66342e8e5d17c2944d96cba3038582e3621909f4b0d424bc91->doDisplay(Array, Array)
#3 /home/swishvps/dev.stemplecreek.com/vendor/twig/twig/src/Template.php(380): Twig\Template->displayWithErrorHandling(Array, Array)
#4 /home/swishvps/dev.stemplecreek.com/vendor/twig/twig/src/Template.php(392): Twig\Template->display(Array)
#5 /home/swishvps/dev.stemplecreek.com/vendor/twig/twig/src/TemplateWrapper.php(45): Twig\Template->render(Array, Array)
#6 /home/swishvps/dev.stemplecreek.com/vendor/twig/twig/src/Environment.php(318): Twig\TemplateWrapper->render(Array)
#7 /home/swishvps/dev.stemplecreek.com/vendor/craftcms/cms/src/web/View.php(344): Twig\Environment->render('_elements/table...', Array)
#8 /home/swishvps/dev.stemplecreek.com/vendor/craftcms/cms/src/base/Element.php(473): craft\web\View->renderTemplate('_elements/table...', Array)
#9 /home/swishvps/dev.stemplecreek.com/vendor/craftcms/cms/src/controllers/ElementIndexesController.php(442): craft\base\Element::indexHtml(Object(verbb\events\elements\db\TicketQuery), Array, Array, '*', 'index', true, false)
#10 /home/swishvps/dev.stemplecreek.com/vendor/craftcms/cms/src/controllers/ElementIndexesController.php(122): craft\controllers\ElementIndexesController->elementResponseData(true, true)
#11 [internal function]: craft\controllers\ElementIndexesController->actionGetElements()
#12 /home/swishvps/dev.stemplecreek.com/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#13 /home/swishvps/dev.stemplecreek.com/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#14 /home/swishvps/dev.stemplecreek.com/vendor/craftcms/cms/src/web/Controller.php(187): yii\base\Controller->runAction('get-elements', Array)
#15 /home/swishvps/dev.stemplecreek.com/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('get-elements', Array)
#16 /home/swishvps/dev.stemplecreek.com/vendor/craftcms/cms/src/web/Application.php(299): yii\base\Module->runAction('element-indexes...', Array)
#17 /home/swishvps/dev.stemplecreek.com/vendor/craftcms/cms/src/web/Application.php(566): craft\web\Application->runAction('element-indexes...', Array)
#18 /home/swishvps/dev.stemplecreek.com/vendor/craftcms/cms/src/web/Application.php(278): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#19 /home/swishvps/dev.stemplecreek.com/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#20 /home/swishvps/dev.stemplecreek.com/public_html/index.php(21): yii\base\Application->run()
#21 {main}
2019-09-12 15:52:06 [-][1][-][info][application] $_GET = [
'p' => 'admin/actions/element-indexes/get-elements'
]
Any chance you can setup some compatibility with those event tickets?
Gift voucher codes are entered as coupon codes in the frontend cart without any issues, so I'm assuming this plugin doesn't support Verbb's Gift Vouchers.
When using a custom CP trigger in the Craft general config file the 'New order' button throws an template not found error because of hardcoded /admin path.
In file:
/vendor/kuriousagency/commerce-admin-orders/src/assetbundles/ordersnew/dist/js/Orders.js
Line 56:
var
I haven't tested this throughout the site, but on at least some of my CP entry edit pages with Redactor fields, the responsive width is broken by this line of Modal.css:
#main-container #main #header,
#main-container #main #main-content {
width: auto;
}
Could you scope it to only apply to screens you're creating?
I've asked this in another issue already, but I'd like to bring it up again. It would be nice if there would be an extra line just to give a variable discount. I know you can edit it afterwards, but it's a strange flow. My client is using this plugin for sales in the real shop. She now has to make a new order, add items, continue, continue, continue and add a payment. Only after that step, she can edit the line items to add a discount, recalculate the complete order, refund the old order and pay again. It would make more sense if you can just add a discount in the beginning, just like adding an item to the cart or a coupon code.
I recently upgraded from Craft 2 to Craft 3 and installed Commerce Admin Orders - been using it successfully for around 3 weeks.
Today it just stopped saving Addresses. Once I get to the Address screen & click on "New Shipping Address" I fill out all the fields & click on Continue - the screen reloads having cleared all the inputs. The Address is not saved & I cannot continue with the order.
There is no error & no js error either. I don't see anything in the log either and am completely stumped.
PHP 7.2.19
Commerce Admin Orders 2.4.0
Craft CMS 3.1.29
Craft Commerce 2.1.7
When I click "new order", I get the popup as it should.
When I click on search by zip code, I get an error:
SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'studioaimee.orders.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Another error when I try to do a guest checkout:
PHP Notice โ yii\base\ErrorException
Trying to access array offset on value of type null
$userId = Craft::$app->getRequest()->getBodyParam('userId')[0];
Selecting an exisiting user works fine
Steps to reproduce:
SQLSTATE[42601]: Syntax error: 7 ERROR: zero-length delimited identifier at or near """"
LINE 5: WHERE ((REPLACE(addresses.zipCode," ","")=$1) OR (REPLACE(ad...
^
The SQL being executed was: SELECT "orders"."id", "orders"."email", "addresses"."firstName", "addresses"."lastName", "addresses"."address1", "addresses"."city", "addresses"."zipCode", "customers"."userId"
FROM "commerce_orders" "orders"
INNER JOIN "commerce_addresses" "addresses" ON "addresses"."id" = "orders"."shippingAddressId"
INNER JOIN "commerce_customers" "customers" ON "customers"."id" = "orders"."customerId"
WHERE ((REPLACE(addresses.zipCode," ","")='48910') OR (REPLACE(addresses.zipCode," ","") LIKE '%48910%')) AND ("orders"."iscompleted"=1)
GROUP BY "orders"."email"
LIMIT 20
Error Info: Array
(
[0] => 42601
[1] => 7
[2] => ERROR: zero-length delimited identifier at or near """"
LINE 5: WHERE ((REPLACE(addresses.zipCode," ","")=$1) OR (REPLACE(ad...
^
)
Does this support https://github.com/craftcms/digital-products?
Hello,
if i want to create a new order via the backend and add one product the loading icon is stuck and no product is added to the cart.
I use the Craft CMS 3.3.13 and Craft Commerce 2.2.6.
Can you fixed this issue?
The State select element when creating an order lists only US states with no option to enter an alternative.
Is it possible to either change the list or make it a straightforward text input?
Using the Craft Commerce Admin Orders plugin and for some reason (perhaps an underlying Craft update) the generated modal is no longer returning products.
Network console not throwing errors. Just an empty (200) response to the actions/element-indexes/get-elements
POST query:
Payload:
criteria: {siteId: 1, search: null, offset: 0, limit: 100, status: null}
elementType: "kuriousagency\\commerce\\adminorders\\elements\\Variant"
viewState: {mode: "table", order: "title", sort: "desc"}
paginated: 0
source: *
disabledElementIds: []
context: ""
Craft 3.7.16
Craft Commerce 3.4.4
Commerce Admin Orders 2.7.2
Cheers,
Cole
Am I correct that this plugin does not work with Commerce 3? I'd like to use it as the interface is much simpler than the default Commerce "new order" interface, but composer won't let me install when I am running Commerce 3.
When searching for an item, it would be nice if the quantity field would be 1 by default, instead of empty. From a usability point of view: most of the times someone will want to add 1 of the selected item to the cart. "Nothing" will never be the case. So adding a 1 as a default value will save the user some clicks and useless typing.
In the Craft CMS Plugin Store, it says that this plugin is not compatible with Craft CMS & Commerce V4. On this repo, you mentioned that it is a plugin for V4, but i cannot upgrade my Commerce Instance because of this. Could you please check this and make it compatible for V4, so we can upgrade?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.