[TYPO3-commerce] Problem with checkout on registered users
M Schmitt
michael at michaelschmitt.info
Sun Jan 25 12:14:20 CET 2009
Hi all.
The checkout doesn't work correctly if a user is logged in.
If a user goes from basket to the checkout the user can choose one of
his addresses an than click on the next-button. Now the same page
appears again independent on what selection the user made.
The checkout process works fine with unregistered users.
I didn't find some helpful information on the web or in this newsgroup.
I'm using following:
- Typo3 v4.2.3
- Commerce 0.10.1
- sr_feuser_registr 2.5.19
- newloginbox 3.1.1
- tt_address 2.2.1
Thanks for any answer,
Michael
P.S.: My pi3 + pi4 TS
plugin.tx_commerce_pi3 {
noStockBackPID = 20
useStockHandling < lib.tx_commerce.useStockHandling
checkStock = 1
// Comma separated list of PIDs with the commerce plugin pi1 to clear
cache
clearCacheAfterFinishWithStock <
priceFromNet = {$plugin.tx_commerce_lib.priceFromNet}
showErrors = {$plugin.tx_commerce_lib.showErrors}
templateFile = {$plugin.tx_commerce_pi3.templateFile}
// some settings for addresses
addressMgmPid = {$plugin.tx_commerce_lib.editAddressPid}
// Types for regular ArticleTypes
regularArticleTypes = {$plugin.tx_commerce_lib.regularArticleTypes}
// wrap around an active Step in the step bar
// active steps will be linked to the step
activeStep = stdWrap
activeStep.wrap =<b>|</b>
activeStep.typolink.setCommerceValues =1
actualStep = stdWrap
actualStep.wrap =<b>|</b>
// wrap arount an incative step in the step bar
inactiveStep = stdWrap
inactiveStep.wrap =<i>|</i>
// sets Usermail Charset and Encoding
usermail {
showCurrency = 0
charset = utf-8
encoding = 8bit
from = john.doe at somewhere.com
cc =
bcc =
// Do not user non Asci-Chars here, as not supported by MAIL
from_name = Commerce ShopMaster
templateFile = {$plugin.tx_commerce_pi3.UserMailTemplateFile}
}
// sets AdminMail Charset and Encoding
adminmail {
showCurrency = 0
charset = utf-8
encoding = 8bit
// Only used, when no userMial is given thou the checkout
from = john.doe at somewhere.com
from_name = Commerce ShopMaster
cc =
bcc =
mailto = yourname at server.com
templateFile = {$plugin.tx_commerce_pi3.AdminMailTemplateFile}
}
// currency used for moneylib
currency = {$plugin.tx_commerce_lib.currency}
// currency Id used for orderData
currencyId = {$plugin.tx_commerce_lib.currencyId}
billing {
// additional formparams for the address form tag
formParams =
deliveryAdress.delivery_radio.wrap = |
deliveryAdress.nodelivery_radio.wrap = |
deliveryAdress.delivery_label.wrap = <label for="delivery">|</label>
deliveryAdress.nodelivery_label.wrap = <label
for="nodelivery">|</label>
addressType = 1
userConnection = tx_commerce_fe_user_id
sourceTable = tt_address
sourceLimiter {
field = tx_commerce_address_type_id
value = 1
}
sourceFields {
name.mandatory = 1
surname.mandatory = 1
company.mandatory = 0
address.mandatory = 1
zip.mandatory = 1
city.mandatory = 1
country {
type = static_info_tables
field = COUNTRIES
select = 1
default = DEU
mandatory = 1
readonly = 0
}
email {
mandatory = 1
eval = email,username
}
phone.mandatory = 0
}
mandatorySign = *
mandatorySignStdWrap < lib.tx_commerce.stdField
}
delivery < .billing
delivery.addressType = 2
delivery.sourceLimiter.value = 2
delivery.sourceFields.email.eval = email
createNewUsers = 1
// Place where new user are stored
userPid = {$plugin.tx_commerce_lib.userPid}
// Place where the adresses are stored
addressPid = {$plugin.tx_commerce_lib.addressPid}
// Normally the orders are stored in the commerce/order/incomming Folder
// you can overwirte the default behavior by setting
// newOrderPid to your own PID
// newOrderPid = 120
// ID of the default Usergroup
userGroup = {$plugin.tx_commerce_lib.userGroup}
// if the terms an conditions should be cheked by default
termsdefaultchecked <
terms.errorWrap = <b>|</b><br />
paymentIsDeliveryAdressDefault = 1
deliveryAdressIsSeparateDefault = 0
cantMakeCheckout.noarticles = CONTENT
cantMakeCheckout.noarticles {
table = tt_content
select {
#will be given within php-code
pidInList = {$plugin.tx_commerce_lib.emptyCheckoutPid}
orderBy = sorting
languageField = sys_language_uid
}
}
cantMakeCheckout.nobilling <
plugin.tx_commerce_pi3.cantMakeCheckout.noarticles
cantMakeCheckout.nopayment <
plugin.tx_commerce_pi3.cantMakeCheckout.noarticles
}
#
# Commerce PlugIn 4 (Addresses)
#
plugin.tx_commerce_pi4 {
templateFile = {$plugin.tx_commerce_pi4.templateFile}
# basic settings
minAddressCount = {$plugin.tx_commerce_pi4.minAddressCount}
selectAddressTypes = 1,2
editAddressPid = {$plugin.tx_commerce_lib.editAddressPid}
addressPid = {$plugin.tx_commerce_lib.addressPid}
# some wraps
addressHeaderWrap.wrap = <h1>|</h1>
editLinkWrap.wrap = |
deleteLinkWrap.wrap = |
newLinkWrap.wrap = |
yesLinkWrap.wrap = |
noLinkWrap.wrap = |
sysMessageWrap.wrap = <div style="color:green">|</div>
# general options for display
hideEmptyFields = 0
emptyFieldSign = -
# form description
formFields {
name.mandatory = 1
// optional, special class name for an field
name.class = classname
surname.mandatory = 1
company.mandatory = 0
address.mandatory = 1
zip.mandatory = 1
city.mandatory = 1
country {
type = static_info_tables
field = COUNTRIES
select = 1
default = DEU
mandatory = 1
readonly = 0
}
email {
mandatory = 1
eval = email
}
}
mandatorySign = *
}
More information about the TYPO3-project-commerce
mailing list