[TYPO3-commerce] Update commerce_coupons
Franz Steinmetz
franzlst at yahoo.de
Sun Oct 10 15:28:53 CEST 2010
Hi,
ok I've done a lot of experimenting and debugging now, partly with results:
As I said, the newest version of commerce_coupon produced an empty page when
trying to add or edit a coupon. This is due a change in the tca.php file:
When replacing
'related_categories' => Array (
'exclude' => 1,
'label' =>
'LLL:EXT:commerce_coupons/locallang_db.php:tx_commercecoupons_coupons.related_categories',
'config' => Array (
'type' => 'passthrough',
'form_type' => 'user',
'userFunc' =>
'EXT:commerce/treelib/class.tx_commerce_tcefunc.php:&tx_commerce_tceFunc->getSingleField_selectCategories',
'allowProducts' => false,
'treeViewBrowseable' => true,
'size' => 10,
'substituteRealValues' => false,
'autoSizeMax' => 30,
'minitems' => 0,
'maxitems' => 50,
#'eval' => 'required',
),
),
(from the newest version of tca.php) with
'related_categories' => Array (
'exclude' => 1,
'label' =>
'LLL:EXT:commerce_coupons/locallang_db.php:tx_commercecoupons_coupons.related_categories',
'config' => Array (
"type" => "group",
'internal_type' => 'db',
'allowed' => 'tx_commerce_categories',
'form_type' => 'user',
'userFunc' => 'tx_graytree_tceFunc->getSingleField_selectTree',
'treeView' => 1,
'treeClass' => 'tx_commerce_tceFunc_categoryTree',
'leafInfoArray' => Array (
),
'size' => 15,
'autoSizeMax' => 10,
'minitems' => 0,
'maxitems' => 100
),
),
from an older version of tca.php, the add/edit coupon menu works. Is this a bug
or because I use commerce 0.9.8 and Typo3 4.2.12?
I can add coupons to the basket and they are shown in the basket. But when
adding a valid coupon, the page is blank (no source code at all; though the
coupon is added to the basket). When using an invalid coupon code, the correct
error message is shown. The coupon (with the valid code) in the basket has the
correct negative price, but the code of the coupon isn't shown, though the
marker ###COUPON_CODES### is in the template.
Another error that once occurred after having edited a coupon: commerce_coupon
produced a SQL query with the column "coupon_id", though this column isn't
existing. I searched the source code and found this column at least in
class.tx_commercecoupons_fields.php line 44 and
class.tx_commercecoupons_dmhooks.php line 77. This seems to be a bug or
something?
It would be great if someone could give me feedback to those bugs I've found.
Does someone has another idea what to do with the blank page after adding a
coupon to the basket?
Thanks in advance
Franz Steinmetz
franzlst at yahoo.de
http://www.roboshow.de
http://www.jsg-abi2008.de
http://www.kalender.jsg-abi2008.de
----- Ursprüngliche Mail ----
> Von: Franz Steinmetz <franzlst at yahoo.de>
> An: I.Sprock | Idar Creative <mail at idar.nl>; TYPO3 commerce extension project
><typo3-project-commerce at lists.typo3.org>
> Gesendet: Freitag, den 1. Oktober 2010, 14:43:03 Uhr
> Betreff: Re: [TYPO3-commerce] Update commerce_coupons
>
> Oh sorry, for sure, where was my mind :)
>
> At the moment, I'm trying to install commerce_coupon in my shop (commerce
>0.9.8,
>
> Typo3 4.2.12). The newest version in the repository is 0.2.0, but in trunk you
>
> can find 0.2.6.
>
> I imported and installed v0.2.0 from the repository. With this version I was
> able to create coupons.
>
> Then I updated the files with the newest ones out of trunk (via FTP) and did
>the
>
> offered database update. A click on the create coupon link then lead to an
>empty
>
> right frame, thus I couldn't create coupons manually. Uploading a *.csv file
> workes, but editing the uploaded coupons failed with the same emty frame.
>
> Now my questions:
> What do I have to do to after updating the files from trunk to get the new
> version working?
> Alternatively: Is there a posibility to get v0.2.6 directly as *.t3x file?
> Additionately: Which ID shell be stored in useCouponPid? The id of the folder
> "Coupons", which includes the folders "Disabled", "Enabled", etc?Is it
>correct,
>
> that this folder contains an unnamed foled "[no title]"?
>
>
> I'm looking forward to using this extension!
>
> Franz Steinmetz
>
>
> franzlst at yahoo.de
> http://www.roboshow.de
> http://www.jsg-abi2008.de
> http://www.kalender.jsg-abi2008.de
>
>
>
> ----- Ursprüngliche Mail ----
> > Von: I.Sprock | Idar Creative <mail at idar.nl>
> > An: typo3-project-commerce at lists.typo3.org
> > Gesendet: Freitag, den 1. Oktober 2010, 14:11:03 Uhr
> > Betreff: Re: [TYPO3-commerce] Update commerce_coupons
> >
> >
> > Hi Franz,
> >
> > Dont't understand a word you're saying!
> > So I can't help you with your problem.
> >
> > Since this is an english list, would you be so kind to provide us with the
> > proper language.
> >
> > Thank you.
> >
> > Idar
> >
> >
> >
> > "Franz Steinmetz" <franzlst at yahoo.de> schreef in bericht
> > news:mailman.1072.1285881085.629.typo3-project-commerce at lists.typo3.org...
> > ; Hi,
> >
> > ich h bin gerade dabei, in meinem Shop (commerce 0.9.8, Typo3 4.2.12) die
> > Erweiterung commerce_coupons zu installieren. Die neueste Version im
> > Repository
> > ist die 0.2.0, allerdings gibt es eine trunk die Version 0.2.6.
> >
> > Aus dem Repository habe ich die 0.2.0 Version importiert und installiert,
> > mit
> > dieser klappt das Anlegen von Gutscheinen.
> >
> > Wenn ich jedoch nach der Installation die Dateien mit den neuesten in
>trunk
>
> > (via
> > FTP) überschreibe (danach auch das angebotene Datenbank-Update in den
> > Erweiterungsoptionen durchführe), dann erscheint im rechten Frame nach
>Klick
>
> > auf
> > "Neuer Gutschein anlegen" eine leere Seite. Der Import über *.csv Dateien
> > funktioniert, wenn ich danach die Gutscheine aber bearbeiten will,
>erscheint
> > wieder die blanke Seite.
> >
> > Nun die Fragen:
> > Muss ich noch etwas machen, nachdem ich die Dateien mit denen aus dem
>trunk
> > update?
> > Gibt es Alternativ eine Möglichkeit, an die 0.2.6 Version als *.t3x
> > heranzukommen?
> > Zusätzlich: Die Konstante useCouponPid, soll diese den Wert des "Coupons"
> > Ordner
> > bekommen, der die Ordner "Disabled", "Enabled" etc enthält? Ist es gewollt
> > das
> > hier auch ein Ordner [Kein Titel] existiert?
> >
> > Danke, freue mich schon auf die Erweiterung im Einsatz!
> >
> > Franz Steinmetz
> >
> >
> > franzlst at yahoo.de
> > http://www.roboshow.de
> > http://www.jsg-abi2008.de
> > http://www.kalender.jsg-abi2008.de
> >
> >
> >
> >
> >
> >
>
>
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce
>
More information about the TYPO3-project-commerce
mailing list