Zum Inhalt springen

Shop-Modul Staffelung Versand und Bezahlung

Erstellt am 20. Mai 2005 · 19 Antworten · letzte Antwort am 23. Juni 2005

Tags: Frage

Pirat44 ·

Hi zusammen!
Also langsam zweifel ich an meinen Fähigkiten.
Ich versuche seit Stunden dem Warenkorb ein Staffelung der Versandkosten und der Kosten für Nachname in Abhängikeit von der Stückzahl beizubringen.
Hier mein Setup:

plugin.tt_products {
payment >

payment {
radio = 1
10.title = Vorkasse
20.title = PayPal
20.percentOfTotalShipping = 0.04
30.title = Nachnahme
30.prod.1 = 3.00
30.prod.5 = 20.00
}
}

plugin.tt_products.shipping {
shipping >
radio = 1
TAXpercentage = 16
10.title = Deutschland
10.priceTax.1 = 2.5
10.priceTax.6 = 4.8
10.priceTax.50 = 10
10.priceTax.100 = 25
10.priceTax.120 = 30
10.priceTax.300 = 150
10.percentOfGoodstotal = 0

20.title = Europa (nicht Deutschland)
20.priceTax.1 = 8.8
20.priceTax.6 = 11.8
20.priceTax.50 = 11.8
20.priceTax.100 = 25
20.priceTax.120 = 30
20.priceTax.300 = 150
20.percentOfGoodstotal = 0

40.title = Selbstabholung
40.priceTax.1 = 0
40.percentOfGoodstotal = 0
}

Egal was ich anstelle, ich bekomme immer 0 am Ende für diese Bereiche.

Nur wenn ich die Staffelung weglasse (20.priceTax = 8.8-) funktioniert das Ganze.

Für Anregungen und Ideen, den Göttern sei dank (euch natürlich auch)

Günter

Flink ·

Beschreibe mal genauer wie dein Seiten-Aufbau aussieht und wie der Warenkorb aussieht, nachdem z.B. 3 Produkte hineingelegt wurden.

Pirat44 ·

Hallo!
Hier ein Bilschirmfoto des Warenkorbs.

Bild: guenter-schuebert.de/screenshotbasket.gif

http://www.guenter-schuebert.de/screenshotbasket.gif

Weis nicht ob das als Image so funktioniert, aber den Link kannst Du ja anklicken.

Man kann am Menu auch die Seitenfolge erkennen.
Auf den Produktseiten ist jeweils nur 1 Artikel.

Der Punkt ist nach wie vor, das bei den Versand- und Bezahlarten kein Wert herausgegeben wird, sobald ich versuche das von der Bestellmenge abhängig zu machen.

freeman2000 ·

Hi,

ich habe exakt das gleiche Problem wie Pirat44: Shipping nach Stückzahlen wird nicht berechnet und es kommt immer 0,00 raus. Ich arbeite mit tt_products 2.0.2 und Typo3 3.7.

@Pirat44: Hast du dein Problem lösen können?

Viele Grüße,
Olli

Flink ·
Pirat44 schrieb

plugin.tt_products.shipping {
shipping >
...
}

Die 2. Zeile gehört weiter nach vor und entsprechend mit plugin.tt_products erweitert.

mischa ·

Hi Flink,

ich habe das gleiche Problem und finde es super, dass du uns hilfst. Alle Tipps, die du gegeben hast wollen bei meiner Installation (3.8.0 und Shop 2.0.2) irgendwie leider nicht.

Explizit: Die Preisunterscheidungen mit

10.priceTax.1 = 444
10.priceTax.3 = 222

wollen einfach nicht gehen.

Kann es ggf. sein, dass der Shop unter 3.8 nicht geht?

Flink ·
mischa schrieb

wollen einfach nicht gehen.

Kann es ggf. sein, dass der Shop unter 3.8 nicht geht?

Ich habe soeben festgestellt, daß die Preisstaffelung und somit der gesamte Shop nicht funktioniert, wenn Preis2 verwendet wird. :o

In der neuen Wiki-2.0.2.10 sollte dieser Fehler behoben sein.

Pirat44 ·

Tja, leider hat auch das nichts gebracht.
Nach wie vor erhalte ich 0.00 als Wert zurück sobald ich versuche Schipping und Payment von der Bestellmenge stufenweise abhängig zu machen.

Gibt es denn niemnden bei dem das schon mal funktioniert hat und mir eine Beispielconfig liefern könnte?

Dank allen Göttern wenn dem so sei.

Günter

Flink ·
Pirat44 schrieb

Gibt es denn niemnden bei dem das schon mal funktioniert hat und mir eine Beispielconfig liefern könnte?

Das Beispiel aus der tt_products Doku sollte genügen.

In der neuen Wiki-2.0.2.11 ist ein weiterer Fehler dazu behoben worden.

Pirat44 ·

Hi Mischa!
Ich habe diese Version bereits installiert.
Bekomme aber in beiden Fällen noch 0.00 als Ergebniss.

Könntest Du mir eventuell den entsprechenden Auszug von Dir aus dem Setupbereich zur Verfügung stellen?

Muss ich denn in den Produkten selbst bestimmte Angaben machen oder beachten damit das funktioniert?

Ich weiß da echt nicht mehr weiter.

Danke Günter

mischa ·

Hi,

ich bin einfach stur der Anleitung gefolgt:

http://typo3.org/documentation/document-library/tt_products/

Die alte tt_products (1.2.7) habe ich deaktiv in typo3/ext gelassen, die neue in typo3conf/ext installiert.

Hernach das Update 2.0.2.11 komplett über die 2.0.2 im typo3conf/ext gebügelt und voilá...

Den genauen Code kann ich dir erst morgen geben. Der ist nämlich auf unserem Intranet.

HINT: verwendet habe ich typo3.8.0

mischa ·

Jetzt wird's lang!!!

So sieht mein Code im Setup des Templates aus:

#####################
# SHOP
####################
## Includes the productsLib:
includeLibs.ts_products = EXT:tt_products/pi/class.tx_ttproducts.php

## This enables the tt_content.list item to display the guestbook:
plugin.tt_products >
plugin.tt_products = USER
plugin.tt_products {
  userFunc = tx_ttproducts->main_products

  templateFile = {$plugin.tt_products.file.templateFile}
  pid_list.field = pages
  recursive.field = recursive
  code.field = select_key
  
  limit = {$plugin.tt_products.limit}
  image {
    file.maxW = {$plugin.tt_products.maxW_single}
    imageLinkWrap = {$plugin.tt_products.clickEnlarge}
    imageLinkWrap {
      enable = 1
      bodyTag = <body bgcolor="black">
      wrap = <a href="javascript:close();"> | </a>
      width = 400
      height = 400

      JSwindow = 1
      JSwindow.newWindow = 1
      JSwindow.expand = 17,20
    }
  }
  listImage < .image
  listImage.file.maxW = {$plugin.tt_products.maxW_list}
  listImage.file.maxH = {$plugin.tt_products.maxH_list}
  listImage.imageLinkWrap >
  
  basketImage < .image
  basketImage.file.maxW = {$plugin.tt_products.maxW_basket}
  basketImage.imageLinkWrap = {$plugin.tt_products.clickEnlarge_basket}

  image.wrap = | <br />

  noImageAvailable = {$plugin.tt_products.file.noImageAvailable}

  wrap1.wrap = {$plugin.tt_products.wrap1}
  wrap2.wrap = {$plugin.tt_products.wrap2}
  color1.wrap = {$plugin.tt_products.color1}
  color2.wrap = {$plugin.tt_products.color2}
  color3.wrap = {$plugin.tt_products.color3}

  displayListCatHeader = {$plugin.tt_products.displayListCatHeader}
  displayBasketCatHeader = {$plugin.tt_products.displayBasketCatHeader}

  PIDitemDisplay = {$plugin.tt_products.PIDitemDisplay}
  PIDsearch = {$plugin.tt_products.PIDsearch}
  PIDbasket = {$plugin.tt_products.PIDbasket}
  PIDstoreRoot = {$plugin.tt_products.PIDstoreRoot}
  PIDmemo = {$plugin.tt_products.PIDmemo}
  PID_sys_products_orders = 0
#  PIDinfo = 209
#  PIDfinalize = 210
#  PIDthanks = 211

  parseFunc < styles.content.parseFunc
  categoryHeader = TEXT
  categoryHeader.current = 1

  priceDec = {$plugin.tt_products.priceDec}
  priceDecPoint = {$plugin.tt_products.priceDecPoint}
  priceThousandPoint = {$plugin.tt_products.priceThousandPoint}
  currencySymbol = EUR

  TAXpercentage = {$plugin.tt_products.TAXpercentage}
  TAXincluded = {$plugin.tt_products.TAXincluded}

  lockLoginUserInfo = 0
  requiredInfoFields = name, address, telephone, email
  orderNumberPrefix = order_
  orderEmail_from = shop@myTypo3Shop.com
  orderEmail_fromName = My Typo3 Shop
  orderEmail_to = shop@myTypo3Shop.com
  orderEmail_htmlmail = 0
  email_notify_default = 1
  statusCodes {
# 1: Incoming orders    
    1 = Order submitted by user
# 2-49: Useable by the shop admin
    2 = Order is recieved and accepted by store
    10 = Shop is awaiting goods from third-party
    11 = Shop is awaiting customer payment
    12 = Shop is awaiting material from customer
    20 = Goods shipped to customer
    30 = Other message from store
# 50-99: Useable by the customer
    50 = Customer request for cancelling
    51 = Message from customer to shop
# 100- :
    100 = Order shipped and closed
    101 = Order closed
    200 = Ordre cancelled
  }
  update_code = password
  statusDate_stdWrap.strftime= %e-%m-%y %H:%M
  orderDate_stdWrap.strftime= %e-%m-%y
  
  usePriceTag = {$plugin.tt_products.usePriceTag}

  priceTagObj = IMAGE
  priceTagObj.wrap = |<br />
  priceTagObj.file = GIFBUILDER
  priceTagObj.file {
    backColor = #C4C400
    XY = [10.w]+10,[10.h]+5
    10 = TEXT
    10 {
      text = ###PRICE###
      offset = 0,14
      fontColor = #222222
      fontSize = 16
      align = center
      niceText = 1
    }
  }

  max_note_length = {$plugin.tt_products.max_note_length}

  bulkilyWarning = {$plugin.tt_products.bulkilyWarning}
  bulkilyAddition = {$plugin.tt_products.bulkilyAddition}
  specialPreparation = {$plugin.tt_products.specialPreparation}

  createUsers = {$plugin.tt_products.createUsers}
  PIDuserFolder = {$plugin.tt_products.PIDuserFolder}
  memberOfGroup = {$plugin.tt_products.memberOfGroup}

  stdSearchFieldExt = subtitle
  PIDagb = {$plugin.tt_products.PIDagb}
  agbtarget = {$plugin.tt_products.agbtarget}
  AGBattachment = {$plugin.tt_products.AGBattachment}

  generateCSV = {$plugin.tt_products.generateCSV}
  CSVdestination = {$plugin.tt_products.CSVdestination}
  CSVfields = {$plugin.tt_products.CSVfields}
  CSVinOneLine = {$plugin.tt_products.CSVinOneLine}

  alwaysInStock  = {$plugin.tt_products.alwaysInStock}
  alwaysInStockMessage = {$plugin.tt_products.alwaysInStockMessage}
  inStockPieces = {$plugin.tt_products.inStockPieces}

  newItemDays = {$plugin.tt_products.newItemDays}

  substitutePagetitle = {$plugin.tt_products.substitutePagetitle}  
}

## EXAMPLE payment config:
plugin.tt_products.payment {
  radio = 1
  10.title = MasterCard
  10.image.file = media/logos/mastercard.gif
  10.priceTax = 
  10.priceNoTax =  
  10.calculationScript = EXT:tt_products/pi/products_comp_calcScript.inc

  40.title = Money transfer
  40.image.file = media/logos/money.gif
  40.priceTax = 
  40.priceNoTax = 
  40.percentOfGoodstotal = 1.45

  50.title = Credit in-store
  50.image.file = 
  50.priceTax = 
  50.priceNoTax = 
}

## EXAMPLE shipping config:
plugin.tt_products.shipping {
  10.title = Deutschland
  10.image.file =
  10.priceTax.1 = 3.0
  10.priceNoTax.1 = 2.5
  10.priceTax.2 = 6.0
  10.priceNoTax.2 = 5.5
  10.percentOfGoodstotal = 0

  20.title = Europa (nicht Deutschland)
  20.image.file =
  20.priceTax.1 = 11.8
  20.priceNoTax.1 = 8.8
  20.priceTax.2 = 22.8
  20.priceNoTax.2 = 11.8
  20.percentOfGoodstotal = 0

  30.title = Selbstabholung
  30.image.file =
  30.priceTax.1 = 0
  30.percentOfGoodstotal = 0.0
}

## This enables the record item to display product items
tt_products >
tt_products = < plugin.tt_products
tt_products.displayCurrentRecord = 1

Sorry, wenn's so viel ist, aber damit klappt bei mir die Geschichte mit den Unterschiedlichen Versandkosten bei unterschiedlichen Mengen.

grüße,

Mischa

Pirat44 ·

Hallo zusammen.
Wollte nur sagen, dass mit der neuesten Version (tt_products-v2.0.2.14) die Sache bestens funktioniert.

Meinen Dank für die Unterstützung und Hilfe.

Günter