Textpattern CMS support forum

You are not logged in. Register | Login | Help

#881 2018-05-15 11:10:34

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,152

Re: yab_shop (simple textpattern shop with paypal support)

According to gaekwad/Pete’s tests, updating from 4.5.5 to a current version should be easy and happen flawless. So only plugins to check. (Mail is sent.)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#882 2018-05-15 23:43:39

sgreener
Member
Registered: 2008-11-05
Posts: 16

Re: yab_shop (simple textpattern shop with paypal support)

Thank you for the previous version.

It has installed correctly and I can now use it.

Simon

Offline

#883 2018-06-26 13:55:33

Saldacenkaw
Member
Registered: 2006-12-28
Posts: 22

Re: yab_shop (simple textpattern shop with paypal support)

hi there, i guess we have some issue with our loved yab_shop and php 7.1+
http://php.net/manual/en/migration71.other-changes.php

when I’m trying to add some product with different prices i got warning:

Tag error: <txp:yab_shop_cart>
<span class="added"><txp:yab_shop_cart_message  /></span>
  <txp:yab_shop_cart_items />
</txp:yab_shop_cart> ->  Warning: sizeof(): Parameter must be an array or an object that implements Countable while parsing form None on page default

I disabled E_warning as a temporary solution

And something in the checkout_form

Tag error: <txp:yab_shop_checkout /> ->  Warning: A non-numeric value encountered while parsing form None on page default

Last edited by Saldacenkaw (2018-06-26 18:51:17)


I know, my english is horrible

Offline

#884 2018-06-26 18:33:10

Saldacenkaw
Member
Registered: 2006-12-28
Posts: 22

Re: yab_shop (simple textpattern shop with paypal support)

function _update_total()
		{
			$this->itemcount = 0;
			$this->total = 0;
			if (sizeof($this->items > 0))
			{

issue in the sizeof , but i can’t realize how to fix it?


I know, my english is horrible

Offline

#885 2018-07-12 20:57:13

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 281
Website

Re: yab_shop (simple textpattern shop with paypal support)

I’m not a php programmer and I haven’t used this plugin.

But … if (sizeof($this->items > 0)) looks wrong?

should be …. if (sizeof($this->items) > 0)

Also looking in the php manual .. sizeof() is an alias for count()
and this is preferred/recommended as in other languages sizeof refers to memory alloc

so … if (count($this->items) > 0)

hope it works/helps …

EDIT: concerned that this would never have worked and isn’t php7 related.

Last edited by geoff777 (2018-07-12 21:03:59)


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#886 2018-08-20 07:56:12

Saldacenkaw
Member
Registered: 2006-12-28
Posts: 22

Re: yab_shop (simple textpattern shop with paypal support)

hi there,

trenc, do you have any plans to update the plugin? it will be amazing


I know, my english is horrible

Offline

#887 2018-10-18 09:54:09

trenc
Plugin Author
From: Cologne
Registered: 2008-02-27
Posts: 560
Website

Re: yab_shop (simple textpattern shop with paypal support)

I’m really sorry for the long delay.

I’ve updated the plugin und hopefully bugfixed the annoying sizeof error and I inlcuded Ruud’s code regarding the last modified header (thanks Ruud).

So grab it here: yab_shop_v0.8.3.tar.gz

Offline

#888 2018-10-18 13:51:16

Saldacenkaw
Member
Registered: 2006-12-28
Posts: 22

Re: yab_shop (simple textpattern shop with paypal support)

trenc wrote #314632:

I’m really sorry for the long delay.

I’ve updated the plugin und hopefully bugfixed the annoying sizeof error and I inlcuded Ruud’s code regarding the last modified header (thanks Ruud).

So grab it here: yab_shop_v0.8.3.tar.gz

what a great news! thank you so much, i’m going to test :)


I know, my english is horrible

Offline

#889 2018-10-30 23:04:13

Kris
New Member
Registered: 2018-10-30
Posts: 5

Re: yab_shop (simple textpattern shop with paypal support)

Thank you very much for maintaining your plugin after so many years.
I have an issue with this update: I can’t delete articles from the cart, also I can’t update the quantity. Is someone having the same issue?
(I am using PHP 7.2 and txp-4.7.1)

EDIT: I found a solution: I didn’t realize immediately that I had to update some code when I updated to the newest version of yab_shop (I was updating from a version before v0.7.0).

<txp:yab_shop_cart output=“message” /> had to be changed to <txp:yab_shop_cart />, because attribute value: output=“message” doesn’t exists any more. Also, I had to place <txp:yab_shop_cart output=“none” /> into my checkout section. I can now update quantities in the card without issues.

Last edited by Kris (2018-11-07 19:16:15)

Offline

#890 2018-11-07 20:38:49

Kris
New Member
Registered: 2018-10-30
Posts: 5

Re: yab_shop (simple textpattern shop with paypal support)

There is a new error:
yablo_shop_v0.8.3 seems to be incompatible with txp_4.7.1 because it uses the function is_windows() that is apparently not supported anymore. (is_windows() still used in txp_4.6 but not above)
Therefore checkout fails and no email with the customer orders is created. I noticed that the yablo demoshop also has a fatal error during checkout.

We just removed that function from the code. No bad side effect until now. Formatting of email is normal and everything works.

Offline

Board footer

Powered by FluxBB