Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#511 2010-08-23 09:01:17

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

adding some extra fields could only be done by modifying (hardcoding in) the plugin code. Unfortunately on different places/lines in the code (HTML output, validation, remember/forget, email output).


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

Offline

#512 2010-08-23 09:22:41

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hi Trenc,

Thanks for your reaction. I’m willing to modify the code, this is really important for our organisation. Can you explain me how to make the adjustments? I assume that each used field can be found in the code and that I can copy these lines en change the fieldname? If so, I only need to know where to make the adjustments. Or am I underestimating things?

Offline

#513 2010-08-30 08:03:22

Bijay
Member
Registered: 2010-07-02
Posts: 17

Re: yab_shop (simple textpattern shop with paypal support)

Hi Mates!! I am using yab shop plugin. I got a small problem regrading the price. I got a price like 1,300 , What it is showing is 1.300 now, i want to get rid of that “.” and use “,” instead of “.”.. So can anybody could help me.
Thanx
Cheer’s

———-Good News———-

Thanx a lot mates!!! Sorry for troubling you. I had solved this problem, so need to bother.
Thanx
Cheer’s!

Last edited by Bijay (2010-08-30 09:48:02)

Offline

#514 2010-09-01 09:43:56

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: yab_shop (simple textpattern shop with paypal support)

Dear Trenc,

I’ve modified the code and added the fields. It works like a charm!

As always, there’s one thing left. In our existing order form we ask our customers how they found us. We use 4 radio buttons to do this. I managed to get the radio buttons on the checkout screen and I’m able to select one. However the information is not send to the email. I used the following code which is defenitly wrong:

graf( tag(yab_shop_lang(‘checkout_source1’), ‘label’, ‘ for=“source”’). fInput(‘radio’, ‘source’, yab_shop_return_input(‘source1’), ‘’, ‘’, ‘’, ‘’, ‘’, ‘source1’), ‘ class=“yab-shop-source1”’ ).
graf( tag(yab_shop_lang(‘checkout_source2’), ‘label’, ‘ for=“source”’). fInput(‘radio’, ‘source’, yab_shop_return_input(‘source2’), ‘’, ‘’, ‘’, ‘’, ‘’, ‘source2’), ‘ class=“yab-shop-source2”’ ).

Could you please help me?! Then it will be Perfect!

Kind regards,
Sharon

Offline

#515 2010-09-03 11:19:38

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: yab_shop (simple textpattern shop with paypal support)

I would like to contribute to this plugin with a new languaje
Spanish.

Can someone point me out on how to do this? :)

This plugin only uses Paypal or Google Checkout right? There is no way to configure a standart checkout with a bank, like regular ecommerce sites?
That would make this plugin really usefull.

thanks!

Last edited by mlarino (2010-09-03 11:28:00)

Offline

#516 2010-09-04 11:48:40

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

However the information is not send to the email.

you have to add the fields in the mail output too.

The mails are build with the function yab_shop_build_mail_body. There you can add the appropriate lines to the $body variable.

Example:

$eol.'How do you found us: '.$ps_order['source'].

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

Offline

#517 2010-09-04 12:03:17

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

I got a small problem regrading the price. I got a price like 1,300 , What it is showing is 1.300 now, i want to get rid of that “.” and use “,” instead of “.”.. So can anybody could help me.

the currency format is depending on the selected currency. But you can change the output. Go to the function yab_shop_currency_out in yab_shop_core. There are a long switch-statement with different currencies and their output.

Look for the lines with your used currency an modify the

'toform'	=> number_format($toform, 2, ',', '.')

to this:

'toform'	=> number_format($toform, 2')

or this

'toform'	=> number_format($toform, 2, '.', ',')

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

Offline

#518 2010-09-04 12:29:50

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

I would like to contribute to this plugin with a new languaje
Spanish.

Can someone point me out on how to do this? :)

That would be nice!
You can download this file and make your changes. Then you can send it back to me, I will package an spanish language plugin then. Please tell me then your name and website for the credits in the plugin!

This plugin only uses Paypal or Google Checkout right? There is no way to configure a standart checkout with a bank, like regular ecommerce sites?
That would make this plugin really usefull.

Do you mean paying with credit card? Thats a not so easy task and requires a decision what payment gateway should be used.
Or do you mean standard payments? These are included and supported (payment by delivery, on account, prepayment).

Cheers trenc


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

Offline

#519 2010-09-04 14:34:44

tom_iwa
New Member
Registered: 2010-09-04
Posts: 2

Re: yab_shop (simple textpattern shop with paypal support)

Hi, mates.

I’m very impressed with that plugin.
But … I’ve just installed pure textpattern and this 3 obligatory plug-ins (core, admin, 3th party).

yab_shop tags were placed as well as 2 test products.
Unfortunately i can’t remove products from shopping cart and change product quantity.

Probably i’ve made some common mistake but didn’t find proper solution.

Test shop can be found on dom.iwaszkiewicz.eu – pls forgive me messy layout.
Pls help.

Tom.

Offline

#520 2010-09-05 09:01:42

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

be sure a <txp:yab_shop_cart /> is placed in the checkout section, too.

e.g.:

<txp:yab_shop_cart output="none" />

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

Offline

#521 2010-09-06 04:40:14

Bijay
Member
Registered: 2010-07-02
Posts: 17

Re: yab_shop (simple textpattern shop with paypal support)

Hi mates! I am in big trouble. I am using yab_shop plug in. Directly coming to the point’s— When i click on purchase order button, it place an order i.e one mail to the admin and another to the customer. Up to this Its working perfectly, But when i wanted to give the delivery instruction regarding your order will be deliverd on bla bla days like for example:

“We will delivered guaranteed-fresh, to-your-door, between 8 and 9 a.m. on $delivery hours)”

lets say i am a customer.. if i place order within Monday Tuesday and Wednesday i will receive my order on Friday and except other days i will receive on Sunday,.. so $delivery does it..

and what is the big deal is days should be flexible .. i had done the php code for days and it worked fine but i am unable to place in the correct place.

Does yab_shop support this?
If it support can any body get me rid off this problem? i would be very much appreciated !

Cheer’s !!

Offline

#522 2010-09-06 08:44:41

tom_iwa
New Member
Registered: 2010-09-04
Posts: 2

Re: yab_shop (simple textpattern shop with paypal support)

trenc wrote:

Hi Tom,

be sure a <txp:yab_shop_cart /> is placed in the checkout section, too.

e.g.:

<txp:yab_shop_cart output="none" />

Thanks buddy.
Works fine.

Respect! Tom.

Offline

#523 2010-09-06 10:37:31

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

lets say i am a customer.. if i place order within Monday Tuesday and Wednesday i will receive my order on Friday and except other days i will receive on Sunday,.. so $delivery does it.

yab_shop can’t do this. You have to hardcode it. You can include your text and php snippet in the function that produces the mail.

The function is named yab_shop_build_mail_body in the yab_shop_core.


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

Offline

#524 2010-09-06 11:18:18

Bijay
Member
Registered: 2010-07-02
Posts: 17

Re: yab_shop (simple textpattern shop with paypal support)

Hi trence Thanx for your kind help.. You suggested me to hard code on “yab_shop_build_mail_body”. But i have hard coded on “ if ($affirmation != ‘1’) { $body .= $promo_admin.$eol.yab_shop_lang(‘admin_mail_after_products’); } else { $body .= $promo_client.$eol.yab_shop_lang(‘affirmation_mail_after_products’);

} return $body;”

Instead of else i had hard coded my own php code. and woks fine.
Thanx for your help

Appreciatively,
Bijay

Offline

#525 2010-09-07 03:54:44

Bijay
Member
Registered: 2010-07-02
Posts: 17

Re: yab_shop (simple textpattern shop with paypal support)

Hi trence… Small problem regarding “ Add to cart”.. I have one category name “Coffee” and i have 20 item related on coffee category.. My problem is, whenever i add a product after clicking “Add to cart” my list scroll downside.. Do you have any idea why my list is scrolling down? Is these happening because i got a long list”? What should i do to stop scrolling down?

Hoping to get your solution on it?

Cheer’s !

Offline

Board footer

Powered by FluxBB