Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#736 2013-04-01 15:51:53

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hello,
I’m using yab_shop plugin for e-commerce site development. On the product’s page, in add product form, the default quantity is shown as 1 but when added to cart, it adds 3 instead of 1.

I’m completely clueless why is this happening. I’ve tried setting “Send Last header” to No but it doesnt seem to make any effect.

Can anyone help me with this?
Thanks.

Last edited by vineonardo (2013-04-11 14:20:41)

Offline

#737 2013-04-01 16:33:49

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,439
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

vineonardo wrote:

the default quantity is shown as 1 but when added to cart, it adds 3 instead of 1.

Without seeing your yab_shop tag code I’m not quite sure why it would do this. Can you post your code please? Might give us a starting point.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#738 2013-04-01 16:46:09

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hey Stef, thanks for your reply.

Following is add to cart code

<div id="add_to_cart">
<label>Price: </label><txp:yab_shop_price />
<txp:yab_shop_add />
</div>
Here's code of shopping cart
<txp:yab_shop_cart>
<div id="item_count">
<txp:yab_shop_cart_quantity label="" break=""/>
</div>
</txp:yab_shop_cart>
Here's code of checkout page
<txp:yab_shop_cart>
  <txp:yab_shop_checkout />
</txp:yab_shop_cart>
I hope this helps, I've tried installing the clean new plugin, but it also has the same bug. Thanks for your help.

Offline

#739 2013-04-08 13:42:12

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hello,
I made a clean installation of the plugin on a brand new installation. It adds the quantity correctly at first but when the page is revisited or any other page is visited, the quantity get updated by +1 then it stays the same.

I’ve set Send “Last-Modified” header? to No.

I’ve done testing on different browsers, by clearing all the cache & cookies, still, the same thing happens.
Certainly this has something to do with Textpattern.

If the problem is not resolved, then I must think of scrapping the whole project and start fresh with ProcessWire.

Offline

#740 2013-04-08 19:09:45

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,439
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Looks like you’re using it correctly. One thing: does your yab_shop_cart tag appear before or after your yab_shop_add tag in the page output? I seem to recall there might be issues if some tags occur before the shop has “set itself up”, which is what the yab_shop_cart tag does. But I might be wrong. If it is that, it’s on my list of things to fix.

Failing that, if you’d like me to take a look, would you be able to send me a site login please?

Last edited by Bloke (2013-04-08 19:11:01)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#741 2013-04-08 19:21:24

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hey Stef,
From what I understand, yes, the code of cart comes before the code of the add to cart. Is that what you are asking?
I will surely provide you login details, I’ve no problem with that.
And thanks a ton for taking time to help me, really grateful for this.

Offline

#742 2013-04-11 14:19:45

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hello,
The wrong quantity problem was solved by Stef Dawson.
As told by Stef, the problem was caused by using yab_cart tag container multiple times on a single page. For each iteration of yab_cart tag, quantity was being added.
Since in my case, I had split the cart’s item details, cart message & cart count to 3 different code blocks for presentation purpose, a single quantity was being added 3 times.

I hope this post will be helpful for other developers in future.

Offline

#743 2013-04-12 00:35:31

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

Re: yab_shop (simple textpattern shop with paypal support)

Hi Vineet, glad you fixed your problem! Would be good if you could post on the plugin forum thread too for other users…

Offline

#744 2013-04-12 05:40:26

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hello Jonathan,
That’s a good advice, I’ll do that,I’ll a post a link to this topic on plugin forum thread.

Offline

#745 2013-04-12 12:32:31

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: yab_shop (simple textpattern shop with paypal support)

jstubbs wrote:

Would be good if you could post on the plugin forum thread too for other users…

You don’t have to, I will merge this topic with the plugin thread.

Offline

#746 2013-04-12 12:33:23

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: yab_shop (simple textpattern shop with paypal support)

@Els
That’s so kind, thanks.

Offline

#747 2013-04-12 15:00:16

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

Re: yab_shop (simple textpattern shop with paypal support)

It’s just: the more topics are opend de-centralised, the harder it’ll get for people to follow advice and comments on the yab plugin topic once a moderator merged all the splinters. And there’s another yab topic opened just today.


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

Offline

#748 2013-04-12 15:53:20

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hello Uli,
can you please help with this?

Offline

#749 2013-04-15 19:21:06

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: yab_shop (simple textpattern shop with paypal support)

Group:

Hopeing someone can assist —- everything is working fine with plug in with the connection to Paypal — but it is not sending out the email to the admin or buyer —- I am using Textpattern CMS (v4.5.4) — is there something I can look at to see why —- I have tried multiple email addresses with no success —-

progre55

Offline

#750 2013-04-16 09:40:14

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 progre55,

Hopeing someone can assist —- everything is working fine with plug in with the connection to Paypal — but it is not sending out the email to the admin or buyer —- I am using Textpattern CMS (v4.5.4) — is there something I can look at to see why —- I have tried multiple email addresses with no success —-

when Paypal is used as payment method, the plugin will not send an email, because the plugin has no knowledge of the payment process. So when a buyer decides to cancel the order on the paypal site, the plugin should not send an affirmation email about a successful order.

It’s the Paypal’s job to send the affirmation email on a successfully finished order.

The plugin could send an affirmation email when it has the Paypal IPN implemented. But only Stefs version 0.9 of the plugin has the IPN support this time.

Last edited by trenc (2013-04-16 09:43:57)


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

Offline

Board footer

Powered by FluxBB