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

Retrive POST data Value

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-19-2016, 07:23 AM
 
vigneshkutty vigneshkutty is offline
 

Member
  
Join Date: Jul 2016
Posts: 24
 

Thumbs up Retrive POST data Value

Hi X-Cart Team,

I have X-cart 5 store With REST API, And also i develop one more new customer end using REST API. In my new customer end,i showed category and product as well as ,if customer brought any product then it added in my X- Cart 5 store customer cart page.
when i added (POST ) such product detail,attributes detail and quantity detail it shown in cart page but if i Added(POST) one more detail like website name among these, it doesn't came??

can you suggest have can retrieve that particular added detail?

i tried retrieve but it failed

return (int) \XLite\Core\Request::getInstance()->product_id (it gives which productid i have added in my new customer end and came to my store cart page)

as same as i use

return \XLite\Core\Request::getInstance()->website_name it doesn't came to my store cart page??


kindly guide me ASAP,

Awaiting For Your Reply

Thanks,
Kutty
xcart 5.2.15
__________________
kutty
Reply With Quote
  #2  
Old 10-25-2016, 12:19 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Retrive POST data Value

\XLite\Core\Request::getInstance()->website_name should work.

Did you check the request on the Network tab in the browser? Is the parameter sent by the browser actually?
__________________
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 > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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:42 AM.

   

 
X-Cart forums © 2001-2020