Jump to content

msimonis

Member
  • Posts

    2
  • Joined

  • Last visited

Everything posted by msimonis

  1. When I apply a customfield with the type link to a product and set the option 'Show on Order Form' the value in the database will contain the full html a-tag. This collidates with the output of the field because with the templates where the a tag is also inserted. This results in HTML-code like: <a target="_blank" example.com"="" http:="" href="<a href=">http://example.com</a> " target="_blank"> <a target="_blank" href="http://example.com">http://example.com</a> The bug should be solved when the value is inserted into the database. Only the url should be saved as customfieldvalue. Actually I have done zero changes in the templates.
  2. Hi, you can do this by a hook. I choose the hook AcceptOrder. In this hook you get the orderid and can query the order via the internal api with the getorders-function. Within this Array you get the serviceid in ARRAY['orders']['order'][0]['lineitems']['lineitem'][0]['relid']. With this serviceid you can finally update the product of the customer with the internal api-function: updateclientproduct This is the way I found out, but I am not really sure if there isn't an easier way to do so. Maybe annother hook. I generate API-Keys via this. This is why i choosed the hook AcceptOrder. Regards, Matthias
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated