Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#676 2012-04-13 20:15:21
Re: yab_shop (simple textpattern shop with paypal support)
Argh!
It took me a few WTF moments to figure out why the checkout page (.i.e. the checkout section where the table is shown) was acting weird, sometimes showing a list of products (when it should be empty), sometimes showing empty when it should be showing a list of products).
It was the “Last-Modified” header thing.
I had set it it to “Yes”, and things worked fine on dev version of website. But there, the site was set to “Testing”, which overrides the “Last-Modified” setting.
So, I wonder if next version of yab_shop (Bloke’s version) could include some trickery to disable the “Last-Modified” header only in the checkout section.
I mean, there is an (speed) advantage on having “Last-Modified” headers set to “Yes”, but then, it doesn’t play nice with yab_shop. Disabling it side-wide is a bit overkilling, just to solve the issue with yab_shop.
Offline
#677 2012-05-17 09:43:31
- michaelb
- Member
- From: London, UK
- Registered: 2008-04-02
- Posts: 21
Re: yab_shop (simple textpattern shop with paypal support)
Hi Stef – I was wondering if I could please get hold of a copy of smd_ipn to use with a small yab_shop I am building? I have also asked via your website contact form (before I knew the name of the plugin), but just thought I’d ask here as well.
Offline
#678 2012-05-17 16:47:28
Re: yab_shop (simple textpattern shop with paypal support)
Hi Steff, I would be interested in smd_ipn as well. Couldn’t find a download link on your site… ^^
• 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
#679 2012-05-17 17:00:43
Re: yab_shop (simple textpattern shop with paypal support)
Hi Stef, If you wouldn’t mind include me into the cc: as well?
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
#680 2012-05-23 18:31:06
- luigiclaudio
- New Member

- From: Costa Rica
- Registered: 2012-05-23
- Posts: 3
Re: yab_shop (simple textpattern shop with paypal support)
Thanks Trenc! Great plug-in! I’ve implemented yab_shop on this website www.personal-resilience.com and very happy with the results. At the moment the client is using PayPal Website Payments Standard and he is about to upgrade the account to Website Payments Pro.
I was wondering whether this change will affect the flow of the plug-in. Anyone using yab_shop with PayPal Website Payments Pro?
Last edited by luigiclaudio (2012-05-23 18:34:42)
Offline
#681 2012-05-23 19:01:15
Re: yab_shop (simple textpattern shop with paypal support)
Just chimed in to say: what a great website, Luigi Claudio!
Impressive use of responsiveness, pushState, & Textpattern, with a very nice design.
Hope you find some time to share some tricks you did there :)
If not, I’ll have to dig thru the website’s front-end code… P
Offline
#682 2012-05-28 21:25:48
Re: yab_shop (simple textpattern shop with paypal support)
[SOLVED]Hi
I am trying to use yab_shop using ajax but havent succeeded yet, i found this code from this discussion but it didnt add to cart:
$('.ajout form').submit(function(){
event.preventDefault();
var thisForm = $(this);
var url = thisForm.attr('action');
var data = thisForm.serialize()+'&add=1';
$.post(url, data, showAddedToCart());
});
I dont know what is showAddedToCart(), i suppose it s a function that update the cart but i havent the code about it!
Hope someone can help!
Cheers
Here is the code that work:
$('.ajout form').submit(function(){
var thisForm = $(this);
var url = thisForm.attr('action');
var data = thisForm.serialize()+'&add=1';
$.post(url, data,
function( data1 ) {
var content = $( data1 ).find( '#panier' );
$( "#panier" ).empty().append( content );
$("#deta").delay(2000).hide("slow");
}
);
Hope that help others
Last edited by Dragondz (2012-05-29 09:05:45)
Offline
#683 2012-06-08 20:08:00
- thijs
- Member
- Registered: 2012-04-17
- Posts: 39
Re: yab_shop (simple textpattern shop with paypal support)
I’m trying this out, but i’ve noticed a weird phenomenon… when you add a product, and go to the checkout, change the quantity to zero, then navigate to the product again, the old quantity is there again. Proceed to the checkout again, and the quantity is back.
Has anyone else noticed this, or am I doing something wrong in the implementation?
working example here: http://dev.thijsvissia.nl/articles/99/cows
Last edited by thijs (2012-06-08 20:29:04)
Offline
#684 2012-06-08 21:24:20
Re: yab_shop (simple textpattern shop with paypal support)
Try setting “Send Last-Modified header” setting to “No” in Textpattern’s advanced preferences.
Offline
#685 2012-06-09 08:20:13
- thijs
- Member
- Registered: 2012-04-17
- Posts: 39
Re: yab_shop (simple textpattern shop with paypal support)
thank you, that did the trick.
Offline
#686 2012-06-10 15:05:53
- luigiclaudio
- New Member

- From: Costa Rica
- Registered: 2012-05-23
- Posts: 3
Re: yab_shop (simple textpattern shop with paypal support)
Thanks mate! Sorry for late reply.
Yea, more than happy to share how it was built. I’m planning for an update in the coming weeks in the attempt of enhancing the design and the code.
maniqui wrote:
Just chimed in to say: what a great website, Luigi Claudio!
Impressive use of responsiveness, pushState, & Textpattern, with a very nice design.
Hope you find some time to share some tricks you did there :)
If not, I’ll have to dig thru the website’s front-end code… P
Offline
#687 2012-06-20 16:57:48
Re: yab_shop (simple textpattern shop with paypal support)
How can i implement a check in yab_shop, which tells me, if an item is already in the cart or not?
I want to replace an item’s “add to cart” button with “This item is already in your cart” as soon as someone has added the item to the cart, because i only sell unique items and have to hinder the customer to even accidentally press the add to cart button twice.
Thanx in advance!
A hole turned upside down is a dome, when there’s also gravity.
Offline
#688 2012-06-21 16:09:07
Re: yab_shop (simple textpattern shop with paypal support)
In checkout section I can’t update quantity or eliminate items.
What could be the problem?
Offline
#689 2012-06-21 16:20:55
Re: yab_shop (simple textpattern shop with paypal support)
wornout
In checkout section I can’t update quantity or eliminate items.
Have you put a <txp:yab_shop_cart output="none" /> in your checkout section?
jayrope
I don’t recall the plugin having any conditionals for this, but you might be able to make one using the txp:variable trick:
<txp:variable name="has_qty"><txp:yab_shop_cart_quantity break="" label="" /></txp:variable>
<txp:if_variable name="has_qty" value="0">
<p>Product already in cart</p>
<txp:else />
<txp:yab_shop_add />
</txp:if_variable>
(untested)
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
#690 2012-06-21 17:47:22
Re: yab_shop (simple textpattern shop with paypal support)
wornout wrote
In checkout section I can’t update quantity or eliminate items.
Bloke wrote:
Have you put a
<txp:yab_shop_cart output="none" />in your checkout section?
Also, try setting “Send Last-Modified header” setting to “No” in Textpattern’s advanced preferences.
Offline