strife's devLog

prestashop-logoGetting Cart From Prestashop

If you have a problem with getting cart from prestashop that would be interesting for you.

I had a huge problem with Prestashop (version 1.4.3) because I didn’t know how exactly I should get cart from Prestashop to the WordPress or somewhere else. However I spent some time to resolve that issue and I wrote that:

First of all we should get session data from Pretashop:

As you see you should add some lines from Prestashop configuration and then you should create a function in which you have cart ID. And then you can easily get all data from the cart:

(Sorry for quality of code but I had to wrote this as  quick as possible)

And that’s all :)

« Previous post

14 ResponsesLeave one →

  1. Thank you so much

  2. I’m an academic writer who loves to bring smiles to people’s face.

    Writing is what I do for a living and I am so passionate about this. I have worked with several companies whose goal is to help people solve problems.
    I love traveling and have visited several countries in the past few years.
    I’m happy to have written several books that have contributed positively to the lives of many. My books are available in several parts of the world. And I’m currently working with service providers that help people save energy. Being a part of this team has open more opportunities for me to excel as a writer. I have worked with different people and met many clients as a professional.
    I can handle any kind of writing and provide nothing but the best. People come to me all the time to ask if I can solve their writing problems and I accept. I find pleasure in helping them to solve their problems as a professional.

    Professional Academic Writer – Asa Woodard – //]Kawarthacsa Team

  3. Hello, it’s Marnie here!
    I work as an academic writer and have created this content with the intent of changing your life for the better. I started honing my writing talent in college. I learned that my fellow students needed writing help—and they were willing to pay for it. The money was enough to help pay my tuition for my first semester of college.
    Ever since college, I have continued to work as a professional writer. I was hired by a writing company based in the United Kingdom. Since then, the dissertations that I have written have been sold around Europe and the United States.
    In my line of work, I have become used to hearing, “Marnie, can you help me meet my writing assignment deadline?” I know that I can save their time.

    Professional Writer – Marnie Dalby – //]Prospectfinearts Confederation

  4. Minelabqes

     /  March 27, 2019

    ???????,??????????! .

  5. Flexiblenaa

     /  March 27, 2019

    ???????,??????????! .

  6. Rubberefr

     /  March 27, 2019

    ???????,??????????! .

  7. Проверенный заработок в интернете от 6017 rubley в сутки

     /  November 25, 2019

    Проверенный способ заработка в интернете от 5915 р. в день. Реальный заработок денег в сети

  8. Get $8985 per day:

     /  December 9, 2019

    93 WEBSITES TO MAKE $9546 per day IN 2020:

  9. ПЛАTИНОBЫЕ ключи Stеam всeго зa 200 рyб:

     /  May 12, 2020

    ПЛАTИНOBЫЕ kлючи Стим всeгo зa 200 pyб:

  10. Welcome Everyone
    Thanks for checking out my writing blog . My name is Rufus.
    I have worked several years in this niche. My passion for writing started at a young age. I wrote short stories as a child and eventually went on to work with my school newspaper.
    This early tryst into journalism eventually led me to academic writing. There is plenty of work for professional writers. I specialize in dissertations , but have the skills to do all types of academic writing.
    Contact me for more information about rates and a price quote. I’m looking forward to helping you.

    Academic Writer – Rufus – Corp

  11. Objektiv von

    und im Detail eine Berucksichtigung von aller Merkmalen zu machen, konnen Sie schnell alle Vor- und Nachteile bezeichnen. Anspruchsvolles Bonusprogramm.


Leave a Reply