X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Retrive POST data Value (https://forum.x-cart.com/showthread.php?t=74554)

vigneshkutty 10-19-2016 07:23 AM

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

qualiteam 10-25-2016 12:19 AM

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?


All times are GMT -8. The time now is 08:27 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.