Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,394
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

#586 2011-06-15 13:21:09

hildebruns
Member
Registered: 2009-03-10
Posts: 27

Re: yab_shop (simple textpattern shop with paypal support)

@Chris_H

I have the same issue, have got somebody a solution?

??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. ??

Many thanks

Last edited by hildebruns (2011-06-15 13:22:54)

Offline

#587 2011-06-15 16:32:35

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

Re: yab_shop (simple textpattern shop with paypal support)

Chris_H a écrit:

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.

As far as I know, this is a normal behaviour when refreshing the page just after having added the product in the cart. At least, Firefox warns me about that :)

When you refresh the page where you posted your first demand, you post again the same demand. That’s why on many forums you see double or multiple posts, because it takes time to load after sending the message, people think there’s a bug, refresh the page … and send the same message again.

Offline

#588 2011-06-17 05:07:13

hildebruns
Member
Registered: 2009-03-10
Posts: 27

Re: yab_shop (simple textpattern shop with paypal support)

@CeBe: Thank you for your reply! I have to explain. It is not only on refresh. When i add one product to my cart- after there are two products in my cart. And when i go to checkout section there are three products in my cart. After when i maybe add 3 from the same product to cart- there will be 9 in my cart…and so on.

I´m a newby in PHP so i can´t imagine what happens. How does the cart work? With sessions? Maybe there is a problem with a other Plugin?

You can see it (only in german) at http://www.holzsteckregal.de
Here under “Bestellen” – “Einzelteile” – For checkout click “Zum Warenkorb” on the bottom.

Offline

#589 2011-06-17 06:24:20

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

Re: yab_shop (simple textpattern shop with paypal support)

hildebruns a écrit:

When i add one product to my cart- after there are two products in my cart. And when i go to checkout section there are three products in my cart.

Oh, ok. Thanks for the re-explanation, sorry for my misunderstanding.
I’ve read somewhere in this thread that this happens when you have one of the <txp:yab_shop_*> tag more than once in the page. I don’t really remember whiwh one and where I saw this, I’ll try to find.

Edit: found it here. Check that you don’t have <txp:yab_shop_cart> twice in the page, as this is the only place where an item is added to the cart. Check also the checkout page.

Last edited by CeBe (2011-06-17 06:54:52)

Offline

#590 2011-06-17 09:25:46

hildebruns
Member
Registered: 2009-03-10
Posts: 27

Re: yab_shop (simple textpattern shop with paypal support)

Edit: found it here. Check that you don’t have <txp:yab_shop_cart> twice in the page, as this is the only place where an item is added to the cart. Check also the checkout page.

Thank you very much, now it works!

Offline

Board footer

Powered by FluxBB