Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

RESTAPI Rich Text Desriptions

 
Reply
   X-Cart forums > Considering X-Cart > Considering using X-Cart for my project
 
Thread Tools Search this Thread
  #1  
Old 04-05-2016, 09:28 PM
 
ej595 ej595 is offline
 

Member
  
Join Date: Dec 2014
Posts: 26
 

Default RESTAPI Rich Text Desriptions

I've been trying to use the rest module to create items, however I couldn't succeed while trying to create item with rich text (HTML mainly), since the rest module seems to only accept the parameters as query params in a regular GET request. We're building a feature in our side and is very important for us being able to create rich text content in our product page rather than simple text.

Can anyone shed any light on this ?
__________________
X-Cart 5

Last edited by qualiteam : 04-06-2016 at 08:44 PM.
Reply With Quote
  #2  
Old 04-06-2016, 08:33 PM
 
ej595 ej595 is offline
 

Member
  
Join Date: Dec 2014
Posts: 26
 

Default Re: RESTAPI Rich Text Desriptions

Thanks Alex, I was hoping your were just going to provide an example, but here is my request:

HTML Code:
http://<domain>/admin.php?target=RESTAPI&_key=KEY&_path=product/0&_method=post&model[inventory][enabled]=true&model[inventory][amount]=1&model[price]=21.7602247343&model[images][0][path]=http://ecx.images-amazon.com/images/I/71%Hello_.jpg&model[translations][0][name]=Ba...<br\>Hola\<br\>&model[translations][0][briefDescription]=SOME ITEM+Pi...&model[attributes][0][id]=10&model[attributeValueC][0][value]=yes

Thanks for the reply
__________________
X-Cart 5
Reply With Quote
  #3  
Old 04-06-2016, 08:35 PM
 
ej595 ej595 is offline
 

Member
  
Join Date: Dec 2014
Posts: 26
 

Default Re: RESTAPI Rich Text Desriptions

reply appeared above Alex.. sorry.
__________________
X-Cart 5
Reply With Quote
  #4  
Old 04-06-2016, 08:58 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: RESTAPI Rich Text Desriptions

How does your request (the one that doesn't work) look like?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 04-09-2016, 01:39 AM
 
ej595 ej595 is offline
 

Member
  
Join Date: Dec 2014
Posts: 26
 

Default Re: RESTAPI Rich Text Desriptions

Quote:
Originally Posted by qualiteam
How does your request (the one that doesn't work) look like?

Any response to this question? or simply ...'cannot be done' will do.
__________________
X-Cart 5
Reply With Quote
  #6  
Old 04-10-2016, 09:44 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: RESTAPI Rich Text Desriptions

I haven't tried this on my local installation yet, but my thoughts are that you should encode some of the chars in your request.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #7  
Old 04-10-2016, 10:59 PM
 
ej595 ej595 is offline
 

Member
  
Join Date: Dec 2014
Posts: 26
 

Default Re: RESTAPI Rich Text Desriptions

Quote:
Originally Posted by qualiteam
I haven't tried this on my local installation yet, but my thoughts are that you should encode some of the chars in your request.

Hi Alex, yes we tried that first of course, no luck. Please try on your local environment, and lets see what you come up with. I really just want to know if this RESTAPI module is worth investing any more time in..
__________________
X-Cart 5
Reply With Quote
  #8  
Old 04-12-2016, 09:08 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: RESTAPI Rich Text Desriptions

This seems to be a bug.

Please follow this ticket to receive updates on the topic:
https://bt.x-cart.com/view.php?id=45936
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #9  
Old 04-12-2016, 09:44 PM
 
ej595 ej595 is offline
 

Member
  
Join Date: Dec 2014
Posts: 26
 

Default Re: RESTAPI Rich Text Desriptions

Quote:
Originally Posted by qualiteam
This seems to be a bug.

Please follow this ticket to receive updates on the topic:
https://bt.x-cart.com/view.php?id=45936

Thanks, is there anything i can do to expedite this fix ?
__________________
X-Cart 5
Reply With Quote
  #10  
Old 04-13-2016, 06:59 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: RESTAPI Rich Text Desriptions

You may try to contact our support staff by submitting a ticket at https://secure.x-cart.com/
If it is possible, they may provide a fix before the dev team include it into the next version.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > Considering X-Cart > Considering using X-Cart for my project


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:46 AM.

   

 
X-Cart forums © 2001-2020