Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#169 2008-09-30 18:33:34

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

freischwimmen wrote:

The property prices i gave show up in he pulldown, its just that the outputted price above always stays the base price i gave to the product, no matter which property (=price) is selected.

If the prices in the checkout is working, then maybe it’s only a problem with the javascript. Look at the source code of the generated site. In the head are the following line:

<script type="text/javascript" src="http://demoshop.yablo.de/textpattern/jquery.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
  $(document).ready(function() {
    $("#select-variant").change(function () {
      $("#select-variant option:selected").each(function() {
        var str = $(this).text().match(/ - /) ? $(this).text().replace(/.* - /, "") : "€5,00";
      $("#price").text(str);
      })
    })
  });
/* ]]> */
</script>

Be assure the jquery.js is at the right place and is loaded. Then go to line 8 and look if $("#price") match your id in the <span> for your price. In the example above it should. Then you have to ensure that this id is unique in your html code and not used anywhere (html code should be valid).

If you don’t find any misconfiguration, try the firebug extension of firefox or similar javascript debugger and look for an error. Or maybe you can post or pm me the url so I can have a look on it.

Offline

#170 2008-09-30 18:36:20

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

LeonNet wrote:

I’got one question, it is possible to add a fieldset for “function yab_shop_checkout_qty_edit” at line1233 ?

Sure, next version you have it.
Btw.: Do you need the fieldset for some reason?

Offline

#171 2008-09-30 18:50:39

LeonNet
Plugin Author
From: Deutschland
Registered: 2007-07-12
Posts: 17
Website

Re: yab_shop (simple textpattern shop with paypal support)

trenc schrieb:

Sure, next version you have it.
bq. Btw.: Do you need the fieldset for some reason?

Sounds good, thx a lot.

Without the fieldset, the form has 4 errors.
That is also the only one, otherwise the shop is always valid.

Leon

Offline

#172 2008-09-30 19:42:23

freischwimmen
Member
From: Cologne
Registered: 2007-05-28
Posts: 71
Website

Re: yab_shop (simple textpattern shop with paypal support)

hey trenc, danke for the quick answer!
it looks all good in my code though, jquery is found and all java script is present and has the right values.
i would like to show you but i am running this on localhost for now, could that be the problem?
thanks again!

Offline

#173 2008-09-30 20:24:57

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

LeonNet wrote:

Without the fieldset, the form has 4 errors. That is also the only one, otherwise the shop is always valid.

Hmm, the checkout in demoshop is valid html. Maybe the error depends on another broken element, ‘cause fieldsets are optional in html.

Offline

#174 2008-09-30 20:26:15

freischwimmen
Member
From: Cologne
Registered: 2007-05-28
Posts: 71
Website

Re: yab_shop (simple textpattern shop with paypal support)

of course it was my fault :)
its obvious there should be only one <txp:yab_shop_add /> for a product
at the single article view, i had it in there twice, one was still in the article form
and i now use it somewhere else on the page and forgot to delete the old one… stupid me, sorry for stealing your time :)

Offline

#175 2008-09-30 20:53:44

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

freischwimmen wrote

stupid me, sorry for stealing your time :)

No problem! :)

Last edited by trenc (2008-09-30 20:56:22)

Offline

#176 2008-09-30 22:29:02

LeonNet
Plugin Author
From: Deutschland
Registered: 2007-07-12
Posts: 17
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hi trenc,

My MySql Server from my provider is down, so i cant show you.
But in your demoshop, is the same, TidyHTML say 4 Errors, and w3c validator say is valid.

A little bit strange…

When my site is on, i tell you more.

thx trenc

Offline

#177 2008-10-01 13:28:13

LeonNet
Plugin Author
From: Deutschland
Registered: 2007-07-12
Posts: 17
Website

Re: yab_shop (simple textpattern shop with paypal support)

I’ve checked it again, and it is no mistake.
Perhaps I should times more breaks in between to make.

Sorry

Offline

#178 2008-10-01 18:14:38

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hmm looks good.

Is anyone interested in writing a step by step, and I mean step by step guide to installing and using this where you can just copy, paste, and follow instructions rather than having to understand the process of what txp is doing?

Offline

#179 2008-10-06 19:12:55

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: yab_shop (simple textpattern shop with paypal support)

has anyone used this with MLP? if so, any pointers, tips or tricks?


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#180 2008-10-25 12:36:44

Si
Member
From: Kiev
Registered: 2008-08-31
Posts: 45
Website

Re: yab_shop (simple textpattern shop with paypal support)

First of all – many thanks, Trenc for this amazing plugin, which is so easy to handle! I’m now implementing it in an online vinyl record shop and it’s a first e-commerce project for me — and it works like a charm!

I have a question, how can I remove the delivery and tax rows from the checkout table? The client doesn’t want to have these fields, just the grand total? I’m trying to do it in the core plugin, but since I’m a php noob, I’d appreciate some help on this.

Offline

Board footer

Powered by FluxBB