Hi Michael,

i wrote a similar module. I add a title suffix, change the price and icon.

Examples:
http://www.design-3000.de/Fotoleinwand+mit+Wunschbild.html
http://www.design-3000.de/Geschenkgutschein+25+EUR.html

Show us how do you extend the getArticle() methode.
Maybe you work with $oArticle->oxarticles__oxtitle-> value and the 
oxorderarticles class works with rawValue ?

Try to work with oxField() like:

$oArticle->oxarticles__oxtitle = new oxField($sTitle);

in your getArticle() methode.

Best regards

Waldemar Gerling

IT

Bild: http://www.oxid.design-3000.de/out/d3000/img/design3000_logo.png

design3000 Vertriebsgesellschaft mbH
Robert-Bosch-Str. 14
64711 Erbach

Tel: +49 (0) 60 62 - 9 18 72 11
Fax: +49 (0) 60 62 - 9 18 72 18

Geschäftsführer: Frank Levita, Felix Vay
Amtsgericht Darmstadt // HRB: 71307 // Ust-IdNr.: DE201696664

http://www.design3000.de/ (www.design3000.de) // http://www.koziol-shop.de/ 
(www.koziol-shop.de) // http://www.reisenthel.design-3000.de/ 
(www.reisenthel.design-3000.de)
http://www.adhoc-designshop.de/ (www.adhoc-designshop.de) // 
http://www.sittingbull-shop.de/ (www.sittingbull-shop.de) // 
http://www.menushop.de/ (www.menushop.de)
http://www.scheurich-shop.de/ (www.scheurich-shop.de) // 
http://www.d3-designblog.de/ (www.d3-designblog.de)

-----Ursprüngliche Daten-----
Datum: 09.02.2013 09:32:47
Von: ooxi <[email protected]>
An: <[email protected]>
Betreff: Re: [oxid-dev-general] i need help with a oxbasketitem module
Vorgang: T-6QXJB8GNSU-00

> Hi,
>
> This is a very interesting question, but since nobody could provide an adhoc 
> answer, i doubt it will be answered at all :(
>
> Perhaps you have a Support contract, then Oxid might help you (based on my 
> experiance, they Do)
>
> -- ooxi
>
> Violetland mdash An open source cross-platform game similar to Crimsonland 
> mdash http://violetland.github.com/ (http://violetland.github.com)
>
> Michael Fritsch <[email protected]> schrieb:
>
> > Hello,
> >
> > i have a problem with an article configurator i am developing at the moment.
> >
> > There is one "Dummy" article in the shop, which the user can configure.
> > The user configured values are stored in the PersistentParameters of the 
> > article.
> >
> > One of the PersistentParameters is "nav-nr", which is the real article 
> > number in the
> > erp system.
> >
> > If a configured article is added to basket, i use a module to override the 
> > getArticle()
> > function in oxbasketitem.php to check if the title of the current article 
> > is "Dummy" and
> > if the PersistentParameter "nav-nr" exists.
> >
> > If this is true, the module calculates the price from an additional table 
> > and overrides the
> > values for _oArticle (oxprice, oxtitle, oxartnum).
> >
> > In basket.tpl, order.tpl and the order-emails, everything is correct. My 
> > problem is, that
> > the new values for oxartnum and oxtitle are not stored in the 
> > oxorderarticles table.
> >
> > The price instead, which is also calculated by the module, is stored in 
> > oxorderarticles.
> >
> > A single time this morning, the correct values for oxartnum and oxtitle
> > were stored in the database, but i am not able to reconstitute the changes, 
> > which where
> > responsible for this single "success" ;)
> >
> > All i know is, that i didn`t change any file except the oxbasketitem 
> > module, which
> > contains getArticle() and getTitle() function.
> >
> > Do you have any idea, how to change the title and oxartnum of an article, 
> > so that it is
> > even stored in oxorderarticles?
> >
> > Best regards
> >
> > Michael Fritsch
> >
> > _______________________________________________
> > dev-general mailing list
> > [email protected]
> > http://dir.gmane.org/gmane.comp.php.oxid.general
>
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to