Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#451 2010-04-24 14:17:33

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 465
Website

Re: yab_shop (simple textpattern shop with paypal support)

Thank YOU, Trenc, for this amazing plugin. I am really looking forward to the next version update!


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#452 2010-05-08 19:00:23

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hi Trenc – I’ve finally gotten round to testing your plugin, and i’m quite enjoying the experience. Nice work – certainly a valuable addition to my uses of txp! But hey, like all bastards who first compliment you, I actually have a couple of requests for the checkout table:

  • just one Change Qty. button for the whole form.
  • I think the item price should be in a column of its own rather than under content
  • delete button also in a column of its own.

I think it would declutter the table more and allow for easier customization with css.
What do you think?

edit. Ooh, and for CSS and semantics … I have a few more requests. how about <colgroup> and <thead> too and scope="col" for the <th>?

Last edited by JanDW (2010-05-09 18:41:41)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#453 2010-05-09 18:01:37

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: yab_shop (simple textpattern shop with paypal support)

Does anybody know how to make this work with AJAX? I’m trying to get the form generated by <txp:yab_shop_add /> to submit through jQuery’s $.post(). I get a succesful http response (200 OK) but the item didn’t get added to the cart when going to the checkout section.

This is one of the forms (which adds to the cart when not intercepting submit with jQuery )

<form method="post" action="http://iseethesuntxp.dev/#yab-shop-form-3" id="yab-shop-form-3">
    <input type="hidden" value="3" name="yab-shop-id" />
    <p class="yab-add">
        <input type="text" value="1" name="qty" size="1" />
        <input type="submit" value="Add to Cart" name="add" class="submit" />
    </p>
</form>

Jquery:

$('#books form').submit(function(){
		var thisForm =  $(this);
		var url = thisForm.attr('action');
		$.post(url, thisForm.serialize(), showAddedToCart());
		return false;
	});

Cheers!

Last edited by JanDW (2010-05-09 18:13:00)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#454 2010-05-10 01:16:22

hidalgo
Member
From: Australia
Registered: 2008-02-05
Posts: 86

Re: yab_shop (simple textpattern shop with paypal support)

Hi Jan, from what I remember .serialize() doesn’t include the submit button data (only qty and id).

Yab_shop uses add from the submit button, so you will need to include this in the $.post() data:

var data = thisForm.serialize()+'&add=1';
$.post(url, data, showAddedToCart());

Hope this helps!

Offline

#455 2010-05-10 01:50:44

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hey Hidalgo– aha, you’re right… stupid of me not to have looked at the post parameters in firebug… thanks, much appreciated!


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#456 2010-05-12 01:58:30

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hi again – I’m experiencing two minor issues. When I’m using the sandbox with paypal, I get the following error as soon as I get to paypal:

We were unable to decrypt the certificate id.

When I go “live” I don’t have this problem.

Only the first name, last name and email address filled in in the checkout form get used on paypal. Billing address, phone number, ZIP, etc… need to be reentered. It’s a little tedious if customers would have to enter this info twice, can it be avoided?

Thanks – Jan

Last edited by JanDW (2010-05-12 01:59:17)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#457 2010-05-13 02:59:11

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: yab_shop (simple textpattern shop with paypal support)

Can I throw one more on the pile? Turns out that my ajax submit doesn’t work in IE – I get a 404… could that be because of the # the url? (url generated by yab_shop is http://iseethesunbooks.com/#yab-shop-form-2)

Last edited by JanDW (2010-05-13 02:59:32)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#458 2010-05-13 03:17:33

hidalgo
Member
From: Australia
Registered: 2008-02-05
Posts: 86

Re: yab_shop (simple textpattern shop with paypal support)

Ah yes, I had the same problem. My not so elegant solution was to remove the hash tag:

var url = thisForm.attr('action');
var url = url.substr(0,url.indexOf('#'));

Offline

#459 2010-05-13 03:26:34

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: yab_shop (simple textpattern shop with paypal support)

Not-so-elegant beats non-existent by a long shot: I’ll take it. Thanks Hidalgo… Do you use paypal? Does the phone number, billing address etc. get carried over to paypal for you?

Last edited by JanDW (2010-05-13 03:26:54)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#460 2010-05-13 03:51:23

hidalgo
Member
From: Australia
Registered: 2008-02-05
Posts: 86

Re: yab_shop (simple textpattern shop with paypal support)

Hmm, that’s strange, I just checked and the billing address is no longer forwarding for me either. Maybe something has changed on PayPal?

The phone number doesn’t work as it’s not forwarded to PayPal in the Yab_shop code. Adding the following line to the $parameters array of the yab_shop_build_paypal_encrypted_form($cart) function in yab_shop_core should work:

'night_phone_b' => yab_shop_return_input('phone'),

However that doesn’t solve the address issue. I’ve just had a quick look through the latest PayPal integration guide and didn’t find anything obvious.

Offline

#461 2010-05-13 03:58:47

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: yab_shop (simple textpattern shop with paypal support)

Cheers, seems like I’ve got more work cut out for tomorrow…


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#462 2010-05-16 15:13:11

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: yab_shop (simple textpattern shop with paypal support)

Sorry to be a near stalker but: I can’t figure it out: The street, zip, city & message don’t make it across the PainPal pond somehow…

it seems that yabshop conforms with the naming convention see the parameter array on line 1295 of the yab_shop core code . Can anybody help? It’d be much appreciated, you can see it in action on http://www.iseethesunbooks.com

Also I get this daft redundant screen when going to PainPal:
edit: weird, I’m all of the sudden not seeing the first screen anymore

Is it possible to immediately go to:

Thanks.

Last edited by JanDW (2010-05-16 19:17:25)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#463 2010-06-18 10:29:31

Nathanael_mc
Member
From: Liverpool
Registered: 2010-06-16
Posts: 20

Re: yab_shop (simple textpattern shop with paypal support)

can any one help me on these errors please-Tag error: <txp:yab_shop_cart> -> Textpattern Warning: Unknown column ‘timezone_key’ in ‘field list’
select custom_2 as property_1, timezone_key as property_2, timezone_key as property_3 from textpattern where ID = 2 on line 85
and
Tag error: <txp:yab_shop_add /> -> Textpattern Warning: Unknown column ‘timezone_key’ in ‘field list’
select custom_2 as property_1, timezone_key as property_2, timezone_key as property_3 from textpattern where ID = 2 on line 85

im trying to set up a variant like that found on the demo website with the house. these errors are to do with the property price and im a wee bit stuck cause i have to idea what they mean. any input would be greatly appreciated.

thanks

Offline

#464 2010-06-19 08:57:44

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

I don’t know how and why the Textpattern prefs variable timezone_key is appearing in a yab_shop mysql query!

Can you list the names of the custom fields in your Textpattern preferences (»Admin->Preferences->Advanced->Customfields«) and the names of the custom fields for the yab_shop properties (»Extensions->Yab_Shop Preferences«)?


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

Offline

#465 2010-06-19 10:29:09

Nathanael_mc
Member
From: Liverpool
Registered: 2010-06-16
Posts: 20

Re: yab_shop (simple textpattern shop with paypal support)

Hi Trenc,

Thanks for getting back to me,

(»Admin->Preferences->Advanced->Customfield1=price
(»Admin->Preferences->Advanced->Customfield2=size

(»Extensions->Yab_Shop Preferences->custom field property 1= size

I want it so if you chose a different size product the price changes, i have use property prices (yes).

if i remove the yab_shop_add from the form then the error goes away although this is not good as the product needs to be added to the cart.

when i add the product to the cart im getting the same error message but with yab_shop_cart as well.

any help or suggestions would be greatly appreciated.

Cheers

Nat

Offline

Board footer

Powered by FluxBB