Show Posts


Messages - lydmanp

Pages: [1] 2
1
Hi,

thanks for the tip.
But, im not planning yet to take other payment methods than paypal or bank transfer since unknown payment methods means less customers.

But googling stripe, it seems quite nice. I'll have to consider it also.

-Peter

2
No :) Somehow the name indicates to me that it costs something. Maybe i'll have to take a look.

3
NEED TWEAKS:
- Paypal express quick purchase button => IN GUEST MODE, WORKS ONLY WHEN STATE AND COUNTRY IS CORRECT (SHOULD WORK ALSO IF ONLY COUNTRY IS CORRECT)
What do you mean correct? Also customers should provide correct info to pay with PayPal
[/quote]
I mean that expess quickpay button purchase works only, if paypal is entered with a proper state. At least when country is Finland, i must write the state by hand (ie. no option dopdown to select the state), thus means that if you have miss spelled state or you have not typed the state at all, the purchase wont go through. I think the state is compared somehow between paypal and abantecart ?

Otherwise, ok. I understand now that express is meant to be used as the reference for the purchase (ie. products shipped to address defined in paypal).

So for me, i think the pp_standart is the payment method to be used in my case. I just have to swallow the fact that i can't do refunds from abantecart admin side, or could it be implemented to pp_standart ?

But i still have plenty of think with my custom priced items.

What i have now done is as follows:

1. Product items with default price of 0
2. if product with this specific id is entered to cart and the price for that item is 0 -> set cart price to 0 (this is not fully implemented, i have only implemented the case if cart subtotal is 0, dont add flat_rate_shipping cost or fixed_shipping to cart. I one item has a price, the shipping cost will be added to cart.
3. When customer has checked out the 0 priced cart, i will get a notification and i will estimate the price for what the customer needs.
4. I will give the product a promotion to cutemergroup including only the customer who made the custom item request.
5. Send update by mail or into order status -> that tells customer to go an add the item again to cart
6. customer has a custom price on an item and shipping is added to the total price.
7. ... ship the items.

So i need still to create some logic how and what to do if customer has "fixed" price items + the 0 priced items in cart.
Maybe i have to build a button that says -> get /wait for price estimate which then puts the order as custom order status into admin page so that i can see, that someone wants to get a price estimation of a custom priced item.

4
Hi,

yes i have limited the visibility. But there is still a problem since some times the shipping address i changed to be taken from paypal (ie. billing address).
I tested pp_standart and pp_express with following results:

############
Paypal standard (guest mode):
- Tax ok in all cases (paypal side address in United states (US) or Finland without state, and with state) -> tax according to finnish rates.
- works ok in guest mode (paying with eg. US address in paypal -> shows shipping and payment address Finland (filled in on abantecart side). => still a bug since payment address should be in this case US! I dont know is there plans to fix this kind of issues ?

Paypal standard (login mode):
- Tax ok in all cases (paypal side address in United states or Finland without state, and with state) -> tax according to finnish rates.
- works ok in login mode (paying with eg. US address in paypal -> shows shipping and payment address Finland (filled in on abantecart side). => still a bug since payment address should be in this case US!

Paypal express (guest mode):
- Tax ok
- works NOT ok in guest mode (paying with US address in paypal, shows shipping and payment address US back in abantecart side). => Priorizes / Takes address from paypal side. why ?

Paypal express (login mode):
- Tax ok in all cases with my tweak  (paypal side address in United states (US) or Finland without state, and with state) -> tax according to finnish rates.
- works ok in login mode (paying with eg. US address, shows shipping and payment address in Finland (filled in abantecart side). => still a bug since payment address should be in this case US!
- BUT it creates for some reason 2 orders, first is incomplete and second is ok.

Paypal express quick purchase button (guest mode):
- works ok in guest mode when paypal address is us. Does not allow order!
- works same way if address in Finland without state
-> NEEDS A TWEAK IN CODE (should work with country discarding the state => BUT -> with Finland and and a state from Finland, it works ok.)

Paypal express quick purchase button (login mode):
- Tax ok in all cases (paypal side address in United states (US) or Finland without state, and with state) -> tax according to finnish rates.
- works ok in login mode (paying with eg. US address, shows shipping and payment address in Finland (filled in abantecart side). => still a bug since payment address should be in this case US!

CONCLUSION
WORKS OK:
- Paypal Standard works best in guest vs login mode but it does not have the refund option. :(
- Paypal express quick purchase button => IN LOGIN MODE, WORKS OK.
- Paypal express checkout => WORKS OK IN LOGIN MODE BUT -> MAKES 2 ORDERS (1 incomplete, 1 complete)?

NEED TWEAKS:
- Paypal express checkout => IN GUEST MODE, TAKES ADDRESS FROM PAYPAL SIDE (should take address from abantecart)
- Paypal express checkout => IN LOGIN MODE, MAKES 2 ORDERS (1 incomplete, 1 complete)
- Paypal express quick purchase button => IN GUEST MODE, WORKS ONLY WHEN STATE AND COUNTRY IS CORRECT (SHOULD WORK ALSO IF ONLY COUNTRY IS CORRECT)
############


This forces me to use standart paypal payment.

5
I found one place in the code that removes the issue, ie. leaves the tax in the final price but i wont tell it to you :)

Naa, ok here is the line (first i searched for zone and state and commented out them from code, then i searched for word tax and i found it, btw. i use Aptana ide and its super nice to open eg. abantecart folder. It can "grep" text inside the opened folder, and thats how i found the tax issue):

Code: [Select]
abantecart/extensions/default_pp_express/storefront/controller/responses/extension/default_pp_express.php#341 > $this->tax->setZone($country_id, $zone_id);

i commented out this line of code.
Unfortunately??? or maybe not but it will allow even other country addresses in paypal side to "pay the bill".
Well i think thats okay as long as abantecart wont forward payments to paypal when countri is not Finland. ( i have to test this a bit i think)

Why i wanted this was because of the fact, that im planning to open a webstore in Finland only, and whole Finland tax rate is the same all over finland... ie. 24% tax :/
Its nice to live here with this kind of tax rates but maybe thats ok, since we don't have tornados, landslides, earthquakes and zunamis... The only problem we have is, we are drowning in money :P

6
Ok, thanks for the tip.

I have modified a little bit on the core file so i know something about it. In that file i need to do other things also, eg. skipping paypal section if a product with price 0 is seen.
Let me know if you know the place where to look for the state comparison. I will start to look into it but as i'm new to AbanteCart cart it may take a week to find the "sweet spot" ;)

-Peter

7
One more thing. Paypal_standart does not care of the state field in paypal. It can be empty and the tax will still be applied to the final price.

8
Thanks for the reply,

Still i don't understand how the default_pp_standart payment works what comes into the tax issue in default_pp_express payment since they use same paypal account (i.e. the same storeowner email and addresses)

BUT -> I will read that link through and try again.

EDIT***
I read through your link and all is fine. But i noticed that the freakin state/or province will mess up the order final if customer for eg. has misstyped the state or province... I added a new address with matching state and it started working.

Can the state or province option be ignored from abantecart or paypal side somehow ?

-Peter

9
I use the built-in promotion discount option. See from attachment.

Both AbanteCart customer address and payer address is in finland. So that should not  be the problem.
I also use sandbox version of paypal and i run the abantecart from localhost but using a tunnel to open ports to the wan.

I doublechecked the customer address vs paypal address.
Customer addresses matched on abantecart side and paypal side and as stated before, paypal standart payment method works correctly.
Why then pp_express ? Well mainly  because it has the admin page refund button. No other reason.

Image series capture2-capture4 shows the issue i'm having. Normally my products costs 0€ and i have a +30€ promotion "inverted discount" to the item.

10
So when i make an order of an item that has a promotion of some amount and when i add it to cart and go to checkout, all is fine. I see promotion amount and the taxable value of that.
I confirm and go to paypal. Still everything fine but when it returns back to confirmation page, the tax value has disappeared and paypal sandox shows also that no tax was charged. Why ?
This seems like a bug to me.

I use abantecart 1.2.1

default_paypal_standart works ok.

11
Hello,

after turning everything in and out, i found a quite good way of doing this.
Let me share this:

Product specific PROMOTIONS :) and even further PROMOTIONS that can be bound to specific USER GROUPS!
Thats it. When customer enters as a new person to the webstore, the price is 0. When i get the custom order info i can take the name of the person, add this name as customer group and apply this customer group as a PROMOTION to the custom product. This way, new customers will always see custom product as price 0.
Aftert customer placed and paid his order, i will just remove the PROMOTION and thats that. If the same customer returns with a new custom order, again i can create a new custom price PROMOTION.

There is still couple of issues related to 0 priced prodcuts in the cart => like when they go and order the cart even though custom priced product is not yet defined with a price.
At this point i could make use of the product code and product price in an if statement to check 

pseudocode:
Code: [Select]
If (item_id = 12 & item_id_price) = 0 {
   => at checkout button press, skip paypal redirection and go to info page stating => please wait for the custom order to be priced. If you want to order all the other items, remove the custom order and try to checkout again.
}

12
And one thing more.
If i use the paypal_express (orange paypal logo) button instead of going through checkout and chosing payment option, it works
Paypal shows just total amount (one amount).

I tried to tweek the code so that it would pass the positive value to paypal, but it always returns the error if a positive value is added via coupon towards paypal.

I think the express checkout button works, since it does not compare separate item prices. I just cant find what part is doing the checking of coupon value (if that's even the case why it fails ?)

13
Actually its like this.

In admin page i create a coupon with negative value -20.00
When this coupon is processed on my cart, the value will be shown in text field as --20.00

Checking from DB the coupon text shows --20.00€ and the actual value shows 20.00.
When i try to checkout, paypal_Express will fail in an error:
PayPal Express Checkout Error
Error has occured during request. Please try again later.

When choosing paypal standart, it will go to paypal, but the value has been changed to -20.00€.

14
Nice! Thank you for fast reply.
With this code i got it working

$order = new AOrder( Registry::getInstance() );
$this->data = $order->buildOrderData( $that->session->data );                   
//echo var_dump($this->data);
print '<pre>' . htmlspecialchars(print_r($this->data, true)) . '</pre>';
I couldnt post code in code tags, it says i'm not allowed to post external links... so sorry for that.

Since you seem to be good on Abantecart. Could you have a suggestion how i should make a custom order item. (anybody can answer with ideas :)

I want a customer to be able to order a custom priced item from me.
When customer orders item, i will see the order in admin page if customer has gone to the checkout  page just before paypal is initiated. If customer is guided here to leave that area to wait for me to give the prodcut a price, how could i do it (i mean, how could i define a price for a product on an incomplete order/checkout ?)

I tried to do it with creating an inverted coupon. That worked in abantecart side, so creating an coupon with double minus sign and value => --29.90
But paypal wont see this coupon as an item so that does not work. (paypal sees just the tax value part of 29.90).
This would be enough it paypal just would notice the coupon as a product since i can give a coupon a name that would refere to the custom order item.
Cart would be then:
custom order item: 0€
[username] custom order price: 29.90€
shipping: 8€
tax: ...€


15
Hi,

i have a problem mainly since i don't know how to get variables into my current site.
With get_defined_vars() function i get a "billion" lines long list of variables we can see from current page.

I want to get the products array but i cannot get how i could get the array eg. for echoing or other statements.
After the array listed below ther is a
[order_info] => Array
        (
         ...
         )

And that one i can "access" => print '<pre>' . htmlspecialchars(print_r($order_info, true)) . '</pre>';

I have this sections in mind:

[order_data:AOrder:private] => Array
                (
                    [store_id] => 0
                    [store_name] =>
                    [store_url] =>
                    [customer_id] =>
                    [customer_group_id] =>
                    [firstname] =>
                    [lastname] =>
                    [email] =>
                    [telephone] =>
                    ...
                    [payment_method] => PayPal Express Checkout
                    [products] => Array
                        (
                           
  • => Array

                                (
                                    [product_id] => 112
                                    [name] => Product name
                                    [model] =>
                                    [option] => Array
                                        (
                                           
  • => Array

                                                (
                                                    [product_option_value_id] => 748
                                                    [product_option_id] => 349
                                                    [name] => send file
                                                    [element_type] => U
                                                    [value] => filename.ext
                                                    [prefix] =>
                                                    [price] => 0.0000
                                                    [sku] =>
                                                    [weight] => 0.00000000
                                                    [weight_type] =>
                                                )

                                        )

                                    [download] => Array
                                        (
                                        )

                                    [quantity] => 5
                                    [price] => 1
                                    [total] => 5
                                    [tax] => 1.2
                                    [stock] => 1
                                    [sku] =>
                                )

                        )

                    [totals] => Array
                        (
                           
  • => Array

                                (
                                    [id] => subtotal
                                    [title] => subtotal:
                                    [text] => 5.00€
                                    [value] => 5
                                    [sort_order] => 1
                                    [total_type] => subtotal
                                )

                            [1] => Array
                                (
                                    [id] => shipping
                                    [title] => shippingfee:
                                    [text] => 8.30€
                                    [value] => 8.30
                                    [sort_order] => 3
                                    [total_type] => shipping
                                )

                            [2] => Array
                                (
                                    [id] => tax
                                    [title] => tax
                                    [text] => 1.20€
                                    [value] => 1.2
                                    [sort_order] => 5.1
                                    [total_type] => tax
                                )

                            [3] => Array
                                (
                                    [id] => total
                                    [title] => total:
                                    [text] => 14.50€
                                    [value] => 14.5
                                    [sort_order] => 1000
                                    [total_type] => total
                                )

                        )

                    [comment] =>
                    [total] => 14.5
                    [language_id] => 2
                    [currency_id] => 2
                    [currency] => EUR
                    [value] => 1.00000000
                    [coupon_id] => 0
                    [ip] => ...
                )

Pages: [1] 2

Powered by SMFPacks Social Login Mod