Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#2154 by marksyl
04 Dec 2015, 20:49
hello all!

my first question is:

what's the best idea to solve the problem, if i have 2 post-pos. : national 4 euro, international 9,90 euro
in the basket there comes the step: delivery. shoud i give the 2 possibilities there or directly to the product, but there as selection...
i have tried so many things, but nothing is working...
i hope you can help me...

lg thx, marksyl
#2155 by aimeos
04 Dec 2015, 21:35
Yes, you need to create two delivery services (national and international) with different prices. Add the country decorator (https://aimeos.org/docs/User_Manual/Administration_Interface/Service_decorators) to both services and configure:
- the national with "country.delivery-include = DE" and
- the international with "country.delivery-exclude = DE"
#2157 by marksyl
05 Dec 2015, 09:19
hello!

thanks for the answer..

my problem: at the first basket is standing:

Versandkosten 0.00 €
Postversand International 9.90 € 9.90 €


but the delivery-step comes after the adress on third position in the checkout-steps... there i have the 2 possibilities (postversand international und postversand national per radiobutton), but on the first basket there i can read this 2 things...

if i would give the price of the product this shipping costs for example 4 €, than there would be on the first basket:


Versandkosten 4.00 €
Postversand International 1 9.90 € 9.90 €


i hope you know what i mean. if i have this deliverys-step, than i don't need the versandkosten in the first basket and i would need 2 possibilities, that the people can check: international or national...

2.nd question: how i delete "sprache" and "zusatz" in the adress-formular?

lg and a big thanks for help!

marksyl
#2159 by aimeos
05 Dec 2015, 11:24
marksyl wrote:my problem: at the first basket is standing:

Versandkosten 0.00 €
Postversand International 9.90 € 9.90 €


but the delivery-step comes after the adress on third position in the checkout-steps... there i have the 2 possibilities (postversand international und postversand national per radiobutton), but on the first basket there i can read this 2 things...


Yes, the first available delivery service is added to the basket automatically by the ServiceUpdate plugin and you can disable it if you want, so the shipping will then only be added after the delivery step. The address step must be before the delivery step because you need the address of the customer to know the country for the shipping costs.

marksyl wrote:if i would give the price of the product this shipping costs for example 4 €, than there would be on the first basket:

Versandkosten 4.00 €
Postversand International 1 9.90 € 9.90 €



The shipping costs per item are probably not what you want because if a customer wants to order your product several times, the shipping costs are also added several times.

marksyl wrote:2.nd question: how i delete "sprache" and "zusatz" in the adress-formular?


That's a configuration thing: https://aimeos.org/docs/Configuration/Core/client/html/Adapt_checkout_address
#2162 by marksyl
05 Dec 2015, 12:27
Yes, the first available delivery service is added to the basket automatically by the ServiceUpdate plugin and you can disable it if you want, so the shipping will then only be added after the delivery step. The address step must be before the delivery step because you need the address of the customer to know the country for the shipping costs.


Image

i have deactivited the service plugin, but it's the same and there is also standing one of the 2 delivering step services..... you can see on the pic...

lg theanx, marksyl
#2163 by marksyl
05 Dec 2015, 12:54
2nd question:
the configuration:

checkout-site: in the checkout-standard-plugin i take the typoscript config:

Code: Select allplugin.tx_aimeos.settings.client.html.checkout.standard.address.billing.mandatory = Array
(
   [0] => order.base.address.company
   [1] => order.base.address.vatid
   [2] => order.base.address.salutation
   [3] => order.base.address.firstname
   [4] => order.base.address.lastname
   [5] => order.base.address.postal
   [6] => order.base.address.city
   [7] => order.base.address.state
   [8] => order.base.address.email
   [9] => order.base.address.countryid
)


then i only get the field: Zusatz


lg thanx, marksyl....
#2166 by aimeos
05 Dec 2015, 13:14
marksyl wrote:Image


First: You have added the shipping as price "value", not as "cost". That's the reason why it is listed together with the articles and not in the shipping section.

marksyl wrote:i have deactivited the service plugin, but it's the same and there is also standing one of the 2 delivering step services..... you can see on the pic...


Can you post a screenshot of your plugin tab of the admin interface?
#2175 by marksyl
07 Dec 2015, 10:06
hello!
thx

1.

I have 2 delivery-services, where i have set the price "4 euro" on "preis per stück" and "0 €" on "tatsächlicher preis". that worked.
but in the basket i have always one of these 2 prices in "Versandkosten+", like you see on the picture.

at the product i have only the normal price without the shipping price...

2.

checkout-site:

yes, i see the configuration details...

i have set in the setup-template on the checkout-site this code:

Code: Select allplugin.tx_aimeos.settings.client.html.common.standard.address.billing.mandatory = Array
 (
 
    [0] => order.base.address.salutation
    [1] => order.base.address.firstname
    [2] => order.base.address.lastname
    [3] => order.base.address.address1
    [4] => order.base.address.postal
    [5] => order.base.address.city
    [6] => order.base.address.website
    [7] => order.base.address.email
 )
 plugin.tx_aimeos.settings.client.html.checkout.standard.address.billing.hidden = Array
 
 (
    [0] => order.base.address.languageid
 )


is this not correct?

the problem, i always get only the "zusatz"-field in the adress-checkout-step.
i delete all cache, i delete all cookies, i set always a new product, it doesn't matter what i do, there is only one field anymore...

maybe i have to go to the install tool and to Database analyzer
Remove tables (rename with prefix)... but then everything is lost...

normally i have to delete the tables there if i delete an extension. but only at the aimeos extension i can't delete this tables, cause then my products usw. are away... is this correct?
----
so i can't see, if tthe configuration works, cause there may be a problem in a cache-file

lg thanx, marksyl
#2181 by aimeos
07 Dec 2015, 16:23
marksyl wrote:I have 2 delivery-services, where i have set the price "4 euro" on "preis per stück" and "0 €" on "tatsächlicher preis". that worked. but in the basket i have always one of these 2 prices in "Versandkosten+", like you see on the picture.
at the product i have only the normal price without the shipping price...


The "price per piece" is misleading and we will change that to "service fee" (resp. "Versand-/Zahlungskosten") in the future.

I'm still not sure what your problem is. First, please do this steps:
- Delete your cookies so your basket is gone
- Make sure none of your products contain a "Cost per piece" value
- Check that the delivery and payment service items only contain values in the "Costs per piece" field

If it's still not what you expect, please send some more screenshots and mark what's wrong from your point of view.

marksyl wrote:i have set in the setup-template on the checkout-site this code:
Code: Select allplugin.tx_aimeos.settings.client.html.common.standard.address.billing.mandatory = Array
 (
 
    [0] => order.base.address.salutation
    [1] => order.base.address.firstname
    [2] => order.base.address.lastname
    [3] => order.base.address.address1
    [4] => order.base.address.postal
    [5] => order.base.address.city
    [6] => order.base.address.website
    [7] => order.base.address.email
 )
 )


is this not correct?


No, that's wrong and this was the reason we've posted the link of how to change configuration settings in TYPO3. The correct TypoScript code would be:
Code: Select allplugin.tx_aimeos.settings.client.html.common.standard.address.billing.mandatory {
  0 = order.base.address.salutation
  1 = ...
}