Jump to content



Member Since 08 Nov 2008
Offline Last Active Yesterday, 09:13 PM

Topics I've Started

Global Options In Mve

20 October 2020 - 08:31 PM

Feeling a little deft here....

I want to be able to create a global option available to all vendors and all products.  I.e. Framing: [simple = $10], [fancy = $20], [elegant = $50].


I want to be able to apply this to all products from the 'Link an existing option" search box (there used to be a "global options" button to do this).


So I went (as admin, not vendor) to Products/Options.  I create an option as above for Vendor = none (which I assumed would make it global).


I then went to the Options tab in a vendor product.  I searched for "Framing" and it shows as a search result.  Saving the product then 'links' this product.  But the problem is that it's a 'link' and not a 'copy'.  So a Vendor can't modify the variants specific to their product.


The documentation stinks and doesn't even refer to the "Link an existing option" search box.


The goal is to apply a copy of that global option to a product so a Vendor can add/delete/modify variants for a specific product without affecting the global option (option template)..  In older version (pre-variations), options could be "linked" or "copied" to a product from a global option.  The global option essentially became a template.  How do I get that prior functionality in today's system?


What am I missing?

Submitform Error "cannot Read Property 'data' Of Undefined"

05 October 2020 - 05:43 PM

Just started seeing this error.  It's a simple form submit from a menu using a targed form for the save.

Has anyone else seen this or know of a solution.  Appears to be off in the cm-submit code....



Menu button for saving of a targeted form is:

<a class="cm-process-items cm-submit " data-ca-target-form="frm_lk_manage_keys" data-ca-dispatch="dispatch[license_keys.manage_keys&amp;amp;company_id=1]">

And the corresponding form definition is:

<form action="https://dev4.ez-ms.com/ezsilly.php" name="frm_lk_manage_keys" method="post" id="frm_lk_manage_keys" class="cm-processed-form cm-check-changes" novalidate="novalidate">
And the error stack is:
Uncaught TypeError: Cannot read property 'data' of undefined

    at Function.submitForm (scripts-ac2e9f0be33f5390cb8d7e9014e82cae1601677256.js:formatted:10112)
    at Function.dispatchEvent (scripts-ac2e9f0be33f5390cb8d7e9014e82cae1601677256.js:formatted:9258)
    at HTMLDocument.<anonymous> (scripts-ac2e9f0be33f5390cb8d7e9014e82cae1601677256.js:formatted:9563)
    at HTMLDocument.dispatch (scripts-ac2e9f0be33f5390cb8d7e9014e82cae1601677256.js:formatted:2028)
    at HTMLDocument.v.handle (scripts-ac2e9f0be33f5390cb8d7e9014e82cae1601677256.js:formatted:1960)


New Backend Template Hook Request

11 September 2020 - 07:43 PM

I've done this mod several times for customers.  It would be great is you could add a hook so it would not have to be a custom mod.


Please add a backend hook at the end of the order_search_form 'simple search' list so we can add other fields to a simple search.

{hook name="orders:simple_search"}{/hood}


While you're in there, you could add the 'order_id' to the simple search as well.  Many times an admin is doing paperwork and needs to quickly look up an order by order_id.  Additionally, if the results of a simple search or an advanced search results in one order, have it redirect to the orders.details page rather than the orders.manage page.  Reduces the number of clicks to get to where you want to be.


Posted Variable Values Being Stripped

21 July 2020 - 06:01 PM

I have a client who uses an addon from a different developer (not responding to their needs).  The addon is installed on 2 sites with the exact same version of cs-cart (including other addons and schemas).


On  site1 everything works fine.  There is a separate tab on the order.details page for shipping label info.  On this page there are form variables named like 'delivery_type', 'pkg_weight', etc. (not within a separate array container like my_shipping[delivery_type], my_shipping[pkg_weight]..  On site1, POSTed data comes through just fine with delivery_type=type1, pkg_weight=4.5.


However, on site2 the variable values are being stripped.    I.e. the variables are coming across, but empty.  I.e. delivery_type=, pkg_weight=


I had thought that maybe they were being stripped due to fn_trusted_vars() but there's no call to this on either site within this addon.  I also thought that a security issue would remove the variable and its value.


The schema tree of the two sites is the same.


Any pointers?

Has This Changed For Anyone Else?

20 July 2020 - 07:12 PM

Using a addon.xml section of:

  <item for="install">

No longer seems to work on a new install when my_install_function() is in func.php.  It used to work.


So how does one now call a private installation function when the addon is first installed?


And of course, there is no error indication at all.