Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#817 2014-10-09 13:16:11

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

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

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

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)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#819 2014-10-09 13:38:32

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

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

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: yab_shop (simple textpattern shop with paypal support)

Bloke wrote #284637:

Can you please either send me…

Sent.
Thank you.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#821 2014-10-09 23:41:18

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

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

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

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.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#823 2015-02-14 17:06:59

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

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

trenc
Plugin Author
From: Amsterdam
Registered: 2008-02-27
Posts: 571
Website GitHub

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.

Offline

#825 2015-03-04 19:10:16

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 228
Website

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

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 228
Website

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

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#828 2015-03-18 08:19:07

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 228
Website

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

Board footer

Powered by FluxBB