Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#817 2014-10-09 13:16:11
Re: yab_shop (simple textpattern shop with paypal support)
NicolasGraph wrote #284634:
I’m trying to make MLP work with yab_shop but the website reset the cart at each request.
The two plugins don’t work nicely together. At least, not the current ‘official’ versions. The development MLP is more tolerant of sessions and shouldn’t reset things, so you could try that if you wish. If it’s not working, please let me know because it’ll probably be a bug!
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#818 2014-10-09 13:34:58
Re: yab_shop (simple textpattern shop with paypal support)
Bloke wrote #284635:
The development MLP is more tolerant…
I’m working with these MLP plugins with the Textpattern folder found on your Github.
Aren’t they from the development version?
Last edited by NicolasGraph (2014-10-09 13:40:54)
Offline
#819 2014-10-09 13:38:32
Re: yab_shop (simple textpattern shop with paypal support)
NicolasGraph wrote #284636:
Aren’t they from the development version?
Yes. Probably a bug then. So we don’t pollute trenc’s thread, can you please either send me some Page/Form template code that you’re using and some info about your shop setup (custom fields used, for example, maybe some examples of article content) or let me have a login so I can see if I can figure it out? Thanks.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#820 2014-10-09 16:42:54
Offline
#821 2014-10-09 23:41:18
Re: yab_shop (simple textpattern shop with paypal support)
Bloke wrote #284637:
Probably a bug then.
Definitely a bug. The problem is to do with the session and the wfCart interaction.
For posterity, the issue is that when MLP first fires up it tries to initiate the session (where the cart is stored) but at that moment, the cart class hasn’t been defined so PHP helpfully assigns it __PHP_Incomplete_Class_Name
. When yab_shop loads, it goes to access the cart in the session, finds an incomplete definition of the cart, gets confused, assumes it’s the first time that the page has been run, and creates a brand new cart, thus wiping out whatever was there.
I really don’t know how to get round it. Using cookies worked, but it borked other things. Some people suggest serializing stuff first, but I don’t really understand it yet. If anybody has any helpful hints, I’d love to hear them.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#822 2014-10-10 12:40:56
Re: yab_shop (simple textpattern shop with paypal support)
Bloke wrote #284667:
Definitely a bug. The problem is to do with the session and the wfCart interaction.
Ok thanks to took a look.
Unfortunatly I can’t help.
Offline
#823 2015-02-14 17:06:59
Re: yab_shop (simple textpattern shop with paypal support)
There is a way for add new input field into checkout or I must mod the code?
Offline
#824 2015-02-23 11:43:54
Re: yab_shop (simple textpattern shop with paypal support)
There is a way for add new input field into checkout or I must mod the code?
Unfortunately you have to modify the code.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#825 2015-03-04 19:10:16
Re: yab_shop (simple textpattern shop with paypal support)
A feature request: allowing admin to decide if currency symbol is in front of a number or after it.
Offline
#826 2015-03-17 21:43:57
Re: yab_shop (simple textpattern shop with paypal support)
My client claims he is unable to put products to shopping cart. Has anyone else got similar experiences with yab_shop? I mean, I’ve tested it with several browsers, with several different operating systems and it seems to work just fine… The (claimed) problem occurs at http://xn—kortitnetist-rcb.fi/.
Offline
#827 2015-03-17 22:42:37
Re: yab_shop (simple textpattern shop with paypal support)
kuopassa, check if it works by disabling the “Send Last-Modified” option in Textpattern. See FAQ
Offline
#828 2015-03-18 08:19:07
Re: yab_shop (simple textpattern shop with paypal support)
Thanks, maniqui. I was thinking just that and disabled it earlier, but no effect. :-) Perhaps my customer’s just using some strange, old browser which isn’t working properly.
Offline