Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#571 2011-05-09 12:40:21

miles
Member
From: Plymouth
Registered: 2008-05-22
Posts: 78
Website

Re: yab_shop (simple textpattern shop with paypal support)

trenc wrote:

Hi miles,

1. Everytime I put something in the shopping basket and then go to the checkout nothing seems to be there unless I refresh. http://www.booenterprise.com/shop
Can anyone see what I mean?

Disable the the »Send Last-Modified-Header« in the TXP preferences and try it again!

2. Is there anyway to control quantity of an item. For example if I only have 10 of an item and then they are all sold out it removes it from the site or something?

No sorry, a store or warehouse management is not implemented.

Thanks mate. Problem Solved.

Offline

#572 2011-05-09 16:14:27

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: yab_shop (simple textpattern shop with paypal support)

nj318 a écrit:

I also use this great plugin for quite some time now but I wonder if there is a bug with orders using PayPal checkout.

Same issue here, and I wonder if Paypal changed something since the plugin has been released.
All I can say is that confimation emails are sent by the function yab_shop_shop_mail() but I haven’t determined yet the conditions.

If someone knows about Paypal arcanes, further help would be greatly appreciated.

Last edited by CeBe (2011-05-09 16:52:15)

Offline

#573 2011-05-10 08:47:10

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

About the Paypal issue I cite myself:

An email will not be sent if the payment methods are Google checkout or Paypal checkout for the following reasons: If a customer is on the third party payment page (say Paypal) and he decide not to finish the order so yab_shop have no feedback from Paypal about the cancel of the order. So it would be logical Paypal would manage the customer and admin order mails. But Paypal does not. :(

If you want that always an email is send, regardless of the success of the Paypal process, you have to edit the plugin an I refer to this thread: http://forum.textpattern.com/viewtopic.php?pid=217097#p217097


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#574 2011-05-10 09:31:03

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: yab_shop (simple textpattern shop with paypal support)

I’ve just read the paypal documentation.
It says that you can set the cancel_return variable to redirect to a specific page when the order is cancelled.
Does it help ?

Offline

#575 2011-05-10 11:03:22

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: yab_shop (simple textpattern shop with paypal support)

nj318 a écrit:

After redirect the user is back in our shops checkout section where it shows just an empty cart.

I think I got this one.
The user should be redirected to the thanks page as set up in the plugin’s preferences. This is conditionned by the presence of a GET parameter called merchant_return_link when returning from Paypal. I guess that, once upon a time, this parameter was returned, but is not anymore. Or at least, I don’t receive it for some reason. [1]

I don’t provide any solution yet, maybe it’s not my job :) But at least we know what happens.

1 The reason is : you should use yab_shop with a business Paypal account.

Last edited by CeBe (2011-05-10 15:14:23)

Offline

#576 2011-05-12 08:05:45

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

CeBe wrote:

I’ve just read the paypal documentation.
It says that you can set the cancel_return variable to redirect to a specific page when the order is cancelled.
Does it help ?

No. Maybe it would catch some user who cancel the process. But most of them (as I do, too) simply close the browser/tab.


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#577 2011-05-12 14:48:34

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: yab_shop (simple textpattern shop with paypal support)

On TXP 4.4.0 this error appears:

Errore nel caricare il plug-in: yab_shop_core -> : Assigning the return value of new by reference is deprecated on line 998

What I should do?

Edit:

Solved – Uploading to web server everything works fine

Last edited by wornout (2011-05-12 15:37:34)

Offline

#578 2011-05-13 06:59:10

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi Edoardo,

Errore nel caricare il plug-in: yab_shop_core -> : Assigning the return value of new by reference is deprecated on line 998

This is a bug related to PHP version above 5.3.
This can be solved by removing the ampersand (&) at line 998:

From

$paypal = & new PayPalEWP();

To

$paypal = new PayPalEWP();

Last edited by trenc (2011-05-13 06:59:26)


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#579 2011-05-13 08:13:05

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: yab_shop (simple textpattern shop with paypal support)

Thanks Tommy,

I’de like to know if yab_shop is now compatible with MLP. In this post I’ve seen that other are in the same situation.

Thanks

Offline

#580 2011-05-15 09:33:25

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Sorry Edoardo,

but yab_shop is not compatible with MLP.


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#581 2011-05-15 10:20:01

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: yab_shop (simple textpattern shop with paypal support)

Edoardo,

Yes I do have an MLP compatible version of yab_shop which was put together by net-carver for a recent project. I believe he had some plans to release his version but you would have to ask him in case he does not follow this thread.

Offline

#582 2011-05-26 04:42:18

Chris_H
New Member
Registered: 2011-05-25
Posts: 1

Re: yab_shop (simple textpattern shop with paypal support)

Hello everyone,

Just installed the plugin a couple of days ago and I think it’s fantastic. Having said that I’ve been having a minor problem that I’m hoping to get some help with (I did have a good long look through this thread and couldn’t really find an answer :) )

Everything seems to be working as it should; adding products to the cart, viewing the cart, checkout and so on, but the issue is this:
Whenever I refresh the page (the individual product page with the yab_shop_cart tags added) I’m getting quantities added again to my cart. That is, whatever amount was submitted by the form initially is getting submitted again.
I’ve tried changing the ‘last modified header’ setting in the admin page to no avail, and I’ve not had much luck trying to research the problem through the net. My PHP skills are more or less non-existent and I’m not sure what, if anything, can be done about it.

Any help would be greatly appreciated.

Here’s how the code looks, incidentally
The product info, with add to cart and price:

<div id="main-product-page">
  <txp:article_image />
 <div id="entry-content">
  <h3 class="product-title"><txp:title /></h3>
  <txp:body />
  <txp:yab_shop_price />
  <txp:yab_shop_add />
  <txp:section class="previous-page">back to <txp:section /></txp:section>
 </div>
</div>

and a separate div with what I’m referring to as a cart preview (shows quantities added to cart and subtotal, with links to a ‘view cart’ page and the checkout page)

<div id="cart-preview">
<txp:yab_shop_cart>
  <txp:yab_shop_cart_quantity label="Items in your cart: " break="" showalways="0" output="all" />
  <txp:yab_shop_cart_subtotal label="| $" break="" showalways="0" />
  <txp:section name="cart" class="cart-links">View Cart</txp:section> 
  <txp:section name="checkout">Checkout</txp:section>
</txp:yab_shop_cart>
</div>

Offline

#583 2011-05-26 13:17:17

nj318
New Member
Registered: 2009-08-27
Posts: 3

Re: yab_shop (simple textpattern shop with paypal support)

CeBe schrieb:

nj318 a écrit:

After redirect the user is back in our shops checkout section where it shows just an empty cart.

I think I got this one.
bq. The user should be redirected to the thanks page as set up in the plugin’s preferences. This is conditionned by the presence of a GET parameter called merchant_return_link when returning from Paypal. I guess that, once upon a time, this parameter was returned, but is not anymore. Or at least, I don’t receive it for some reason. [1]

I don’t provide any solution yet, maybe it’s not my job :) But at least we know what happens.

fn1. The reason is : you should use yab_shop with a business Paypal account.

@CeBe:

Great job :) So, simply using a paypal business account will do the trick. We will check that.

Last edited by nj318 (2011-06-01 10:19:59)

Offline

#584 2011-05-30 13:22:45

AdamK
Member
From: Kraków, Poland
Registered: 2009-08-11
Posts: 47

Re: yab_shop (simple textpattern shop with paypal support)

Hi :)

I have set the plugin up, it works and it’s great.

But: whenever I add a product, I get #yab-shop-form-1 appended to the address:

http://kamyk.media.pl/artykuly#yab-shop-form-1

and when I checkout, I get:

http://kamyk.media.pl/about/dziekujemy#yab-shop-checkout-anchor

where http://kamyk.media.pl/about/dziekujemy is a valid URI of the “thank you page”, which is already set in preferences.

Is there any way to get rid of this #yab-shop-something-string ?

And another question: different costs of the shipping (one for prepayment, the other for purchase on delivery)?

Greetings

Adam

P.S. is there any development going with this plugin? the last version is dated 2009, and we have (hopefully) TXP 5.0 coming?

Offline

#585 2011-06-07 23:24:54

brunodario
Member
From: Belo Horizonte, Brasil
Registered: 2007-09-19
Posts: 75

Re: yab_shop (simple textpattern shop with paypal support)

I´ve spent a bunch of hours trying to modify this plugin core in order to make a few changes on the way it behaves but no luck. I´m trying to modify 2 things:

Property prices: Instead of entering the prices itself i´d like to input % discount on the product price. So say a product costs U$10,00 and i input A; B—5;C—10; on the variable field. I´d like both B and C values to act like discounts not prices (so if a user selects “B” then the product price will change to U$9,50 – 5% discount). I´ve managed to modify the behavior on the front-end but when i add to the cart the property behaves like price (as it should) not as % (as i want).

I´ve also tried to add a select field and manipulate the price with jquery but same thing, the price changes at the product page but when i add it to the cart the price is again the full price (looks like the price is not sent to the cart when i add a product to the cart, instead the cart take the original custom field price value).

Any clues on how i can achieve this?
Thx in advance

Offline

Board footer

Powered by FluxBB