Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#733 2013-03-13 16:11:18

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

Re: yab_shop (simple textpattern shop with paypal support)

Hello,
I just wanted to know if it’s possible to have article image in the cart & checkout page?
I’ve this as basic requirement for the project I’m working on.

Thank you so much for your time & the great plugin.

Offline

#734 2013-03-13 19:57:52

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

Re: yab_shop (simple textpattern shop with paypal support)

Vineet, I’ve seen article images in the checkout page on the demo before. Try some 2D or 3D examples.


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

Offline

#735 2013-03-13 20:09:01

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

Re: yab_shop (simple textpattern shop with paypal support)

uli wrote:

Vineet, I’ve seen article images in the checkout page on the demo before. Try some 2D or 3D examples.

Thanks Uli for your reply. It’s exactly how I want it but I’m not sure how to get it. Is there any way to control cart output on checkout page? Or Should I add another custom_field?

Offline

#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: 11,271
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.

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: 11,271
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.

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
Moderator
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

Board footer

Powered by FluxBB