Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#397 2010-01-06 11:24:46
- ricoschette
- Member
- From: Estonia
- Registered: 2005-09-17
- Posts: 176
Re: yab_shop (simple textpattern shop with paypal support)
Yes, now when I think about it, it’s logical that there can’t be properties with the same name.
Tnx.
Offline
#398 2010-01-14 20:50:36
- ricoschette
- Member
- From: Estonia
- Registered: 2005-09-17
- Posts: 176
Re: yab_shop (simple textpattern shop with paypal support)
Few questions.
1. The price has currency symbol in front of it. How can it be removed?
Price at the moment: kr1000.00, but would prefer 1000.00 (no “kr”).
I can add “kr” to the back like this:
<p class=“price”>Price: <txp:yab_shop_price /> kr</p>
2. VAT calculation and transport cost.
I understand that at the moment the total sum is calculated like this:
Price of a product * VAT + transport.
So, transport is not taxed.
But can transport cost be included in VAT calculation?
Offline
#399 2010-01-17 11:40:59
Re: yab_shop (simple textpattern shop with paypal support)
Hi ricoschette,
1. The price has currency symbol in front of it. How can it be removed?
Due the output of all prices, sums etc is hardcoded, so the currency ist hardcoded in code too.
But you can look for the function yab_shop_currency_out
in the plugin code yab_shop_core
and remove the kr
for your currency.
So in your case, if you use EEK, the statement for EEK have look like this:
case 'EEK':
$out = array(
'cur' => '',
'toform' => number_format($toform, 2)
);
break;
2. VAT calculation and transport cost. I understand that at the moment the total sum is calculated like this: Price of a product * VAT + transport. So, transport is not taxed.
Hm, yes. I read a little bit about it, because of your post.
Here in Germany the shipping and packing costs have to be taxed too. I don’t know the usage in other countries, but I will fix this issue in a next release.
Thanks for the suggestions.
Last edited by trenc (2010-01-17 11:47:22)
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#400 2010-01-20 13:49:32
- inkywillow
- Member
- From: France
- Registered: 2009-12-22
- Posts: 37
Re: yab_shop (simple textpattern shop with paypal support)
Sorry if this has been covered before…
When specifing the wraptag attribute of yab_shop_cart_quantity the closing wraptag that I have specified seems to be missing??? I basically want to wrap the output of yab_shop_cart_quantity with a span but am just getting the opening tag.
Works fine without the wraptag though. Is this a bug or am I losing it here?
Cheers
Tom
Last edited by inkywillow (2010-01-20 13:50:22)
The Design Works – Freelance website designer
Offline
#401 2010-01-26 11:43:47
Re: yab_shop (simple textpattern shop with paypal support)
Hi inkywillow,
sorry but I can’t reproduce this. Works as expected here:
<txp:yab_shop_cart>
<txp:yab_shop_cart_quantity wraptag="span" class="wraptag" />
</txp:yab_shop_cart>
Will output:
<span class="wraptag">Quantity: 1</span><br />
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#402 2010-02-01 15:24:47
Re: yab_shop (simple textpattern shop with paypal support)
Hi everyone,
last week my webhost upgraded to php 5.3, unfortunately there seems to be a conflict with the yab plugin now, i get a warning saying “A problem occured while loading the plugin: yab_shop_core -> : Assigning the return value of new by reference is deprecated on line 998”.
Moreover, the size of the fonts change when the core plugin is activated, once i turn that off everything is back to normal.
Any advice?
Offline
#403 2010-02-02 09:55:41
Re: yab_shop (simple textpattern shop with paypal support)
Hi freischwimmen,
the plugin is not yet PHP 5.3 ready. There are some options:
- downgrade your PHP-version
- wait for an new plugin, which will fix this issue or
- search in plugin code for this:
$cart =& $_SESSION['wfcart'];
and replace it with this:
$cart = $_SESSION['wfcart'];
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#404 2010-02-02 10:39:30
Re: yab_shop (simple textpattern shop with paypal support)
@freischwimmen Tommy said it. Get yourself in to a position where your host is not upgrading PHP willy nilly. If that was the case. Jeeeeeez it’s so wacky though with all the different wares and providers. :) If you can downgrade as Tommy suggested you are at a good host enough. Yab_Shop rips.
Last edited by whaleen (2010-02-02 10:39:53)
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
#405 2010-02-04 22:02:18
Re: yab_shop (simple textpattern shop with paypal support)
Thank you for the info trenc, unfortunately that did not do the trick yet – i still get the same warning + strange behaviour with the fonts that I mentioned earlier. My host is one.com and they told me a downgrade is not possible which is a pity, have been quite happy with them before, especially because of the quick & direct support they usually offer.
in case trenc or someone else has another idea what might cause the trouble i would be grateful, thanks in advance!
Offline
#406 2010-02-05 10:06:30
Re: yab_shop (simple textpattern shop with paypal support)
Hi freischwimmen,
did you really replaced all the $cart =& $_SESSION['wfcart'];
? There are more than one inside the plugin code. IIRC this snippet is the only one, that can produce the PHP-5.3 error message.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#407 2010-02-05 17:19:12
Re: yab_shop (simple textpattern shop with paypal support)
Thanks for the quick answer trenc, but i replaced all 9 instances of the snippet you posted with what you suggested in the yab core, did not work… Weird.
Offline
#408 2010-02-06 11:48:51
Re: yab_shop (simple textpattern shop with paypal support)
I have look into the code.
The replacing above was wrong, sorry. My fault. :(
The snippet you have to change is the following:
Replace
$paypal = &new PayPalEWP();
with
$paypal = new PayPalEWP();
Sorry for the inconveniences.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline