Announcement

Collapse
No announcement yet.

BasketInfo conversion to custom order fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    BasketInfo conversion to custom order fields

    Hi folks,

    I seem to recall that the store will automatically convert BasketInfo records into custom order fields, if the BasketInfo's :type value matches the field code of some order field. I've just been trying to use that feature in a custom project, and it's not working. Did I mis-remember something? Is there another step to the process?

    Thanks --
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    #2
    Re: BasketInfo conversion to custom order fields

    Hi Kent:
    Hope I understand your question.
    I think if you create a custom order field and populate it with basket info, the basket info is retained in the custom order field when INVC is completed.
    This is an example of how we pass a basket value to a custom order field in OSEL:
    <mvt:item name="customfields" param="Write_Basket('salestax', g.taxinfo)" />
    (salestax is defined as a custom order field)
    Last edited by wajake41; 09-17-15, 11:12 PM.
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en


    Comment


      #3
      Re: BasketInfo conversion to custom order fields

      I'm not using Store Morph for this; my custom module is creating the BasketInfo records. But the BasketInfo type is "prismcomments," and I've created a custom order field with "prismcomments" as the field code.

      Of course, my module is creating BasketInfo records with its own module_id. Is that the problem? Does the basket-to-order conversion only work for BasketInfo's that have the Custom Fields module ID?

      Thanks --
      Kent Multer
      Magic Metal Productions
      http://TheMagicM.com
      * Web developer/designer
      * E-commerce and Miva
      * Author, The Official Miva Web Scripting Book -- available on-line:
      http://www.amazon.com/exec/obidos/IS...icmetalproducA

      Comment

      Working...
      X