Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#391 2009-12-17 11:00:02

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

you don’t need an API access.

I’ve wrote tiny howto setup paypal here, here and in the plugin help.


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

Offline

#392 2009-12-17 11:55:57

mauricenaef
Member
Registered: 2008-01-31
Posts: 23

Re: yab_shop (simple textpattern shop with paypal support)

trenc wrote:

Hi mauricenaef,

I’ve processed an order and all seems well. I get the success message and the customer email.

Hi trenc

That is cause I removed it to the old host! I thought it was because the new host ran PHP 5.2.9 and not latest version 5.2.11, but even after that upgrade it didn’t work?

You can try my test setup on the host under: testshop.mauricenaef.ch

I really can’t think of why it’s not working under this host?

If you want a peak at the backend, let me know ill p.m. you logindetails..

thanks for the help anyway.. regards Marcel

just tested it again on the new server and it now seems to work! Maybee it needed some time to change on the new server and I was to impatitiant?
Anyway ill leave it as it is…. sorry for the confusion, but maybee it can help someone else so I just left the old commet there!

Offline

#393 2010-01-04 18:59:58

ricoschette
Member
From: Estonia
Registered: 2005-09-17
Posts: 176

Re: yab_shop (simple textpattern shop with paypal support)

I don’t know if this has been asked here before…

I have products that have multiple prices within one product set and the price depends on amount of packages (e.g. badges, that are sold in larger amounts):
1 package (100 pcs) – costing 100 USD, 2-3 packages – costing 80 USD, 5+ packages – 60 USD

So, what I see is – there’s a drop down select nav where you can choose a package that suits the most.

Can this be done?
One product with multiple choices of price.

Excuse my poor english here.

Offline

#394 2010-01-05 16:45:43

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 638
Website

Re: yab_shop (simple textpattern shop with paypal support)

ricoschette wrote:

So, what I see is – there’s a drop down select nav where you can choose a package that suits the most.
Can this be done?
One product with multiple choices of price.

From the plugin info page:

And how do I input prices for a property?
Note: You can only assign one property with a price. |
First go in yab_shop_config and change the use_property_prices to ‘1’. |
Input the Prices:
If you want use a property price you must give an price in your price field (custom field) even so. You can use it as an base price.
Now you can give prices to the properties in one property field (custom field). Use double minus as delimter between property and price. E.g for the property field color: |
red; white—2,50; black—12,00; green—0,55 |
The properties with no price declaration will use the base price of the price field (custom field). The first property price should be the same as the base price. That’s all!

Last edited by THE BLUE DRAGON (2010-01-05 16:47:31)

Offline

#395 2010-01-05 20:38:57

ricoschette
Member
From: Estonia
Registered: 2005-09-17
Posts: 176

Re: yab_shop (simple textpattern shop with paypal support)

Thanks a lot!
Don’t know how did I miss that :)

But I did find smth interesting here.
Demo shop link
So, there are options (“Kogused”), packages, to choose from. More you choose, less it costs.

In custom field I have following:
100 tk; 1 pakk—1000; 2 pakki—900; 3-4 pakki—800; 500 tk; 1pk—3000; 1000 tk; 1 pk—5900; 2-3 pk—5500; 4-9 pk—5000; 10+ pk—4900;

What I discovered was that when I leave options with the same name, e.g. “1 pakk—1000;” and “1 pakk—3000;” then the price will be taken for the first option. The words meaning the package (in my language it’s “pakk” and “pk” is for short) has to be different.
So, after seeing this I had to change options:
1 pakk; 1pk; 1 pk;
In english it would be: 1 package; 1 pack; 1 pck; etc.

Strange thing or what?

Last edited by ricoschette (2010-01-06 00:59:10)

Offline

#396 2010-01-06 10:33:14

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

Strange thing or what?

No, not really. If you think about it: You separate properties by the same name, that’s strange. :)
You group different properties in one select field, but the shop will recognize the properties by name. So, of course, you must have different names for different properties.

I would perfer something as property name:

  • 100 tk – 1 pakk
  • 100 tk – 2 pakk
  • 100 tk – 3-4 pakk
  • […]
  • 1000 tk – 1 pakk
  • 1000 tk – 2-3 pakk
  • 1000 tk – 4-9 pakk
  • 1000 tk – +10 pakk

The advandage of these names is, that you don’t have to delimit the groups with something like »////////«. The possible disadvandage: The custom field is limited by 255 Bytes, so mybe it’s to small. But you can you can change the size in phpmyadmin.


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

Offline

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

link

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

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

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

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

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

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

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

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

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

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

Board footer

Powered by FluxBB