Re: [oxid-dev-general] Modulehandling with Version 4.6

2012-06-19 Thread Alfonsas Cirtautas
Hi,

debuginfo module you found on github is truly not the right module, it is just 
a try to display nice debug information in footer.

Alf

From: dev-general-boun...@lists.oxidforge.org 
[dev-general-boun...@lists.oxidforge.org] on behalf of Lang, Raimund 
[r.l...@haller-stahlwaren.de]
Sent: Tuesday, June 19, 2012 8:42 AM
To: dev-general@lists.oxidforge.org
Subject: Re: [oxid-dev-general] Modulehandling with Version 4.6

Dear diary

Today I have found the new debuginfo-module on github. Please say „thank you“ 
to Marco and the core developers of OXID!

Yours

Ray


Haller Stahlwaren GmbH
Am Gartennest 1
74544 Michelbach/Bilz
---
Tel.: 0791/47003
Fax : 0791/47005
www.haller-stahlwaren.de
---
Sitz: Schwäbisch Hall
Registergericht: Stuttgart HRB 570131
Geschäftsführer: Hermann Hebsacker, Karin Hebsacker

Von: dev-general-boun...@lists.oxidforge.org 
[mailto:dev-general-boun...@lists.oxidforge.org] Im Auftrag von Marco 
Steinhaeuser
Gesendet: Montag, 18. Juni 2012 18:23
An: dev-general@lists.oxidforge.org
Betreff: Re: [oxid-dev-general] Modulehandling with Version 4.6

Hi list (for some reason sounds like dear diary :D)

I am not absolutely sure but this is most likely what you are looking for:
https://github.com/OXIDprojects/debuginfo

Cheers
Marco


From: 
dev-general-boun...@lists.oxidforge.orgmailto:dev-general-boun...@lists.oxidforge.org
 [dev-general-boun...@lists.oxidforge.org] on behalf of Joscha Krug | 
marmalade.de [k...@marmalade.de]
Sent: Monday, June 18, 2012 4:57 PM
To: dev-general@lists.oxidforge.orgmailto:dev-general@lists.oxidforge.org
Subject: Re: [oxid-dev-general] Modulehandling with Version 4.6
Hi,

thanks for your hint.


I think the new Module handler doesnt like when you portable modules from an 
older Version to 4.6 and then make an new meta.php file for this without 
deleten the old one befor.
Just my idea...
Happens also on fresh installations with version 4.6.x

Seems like there are some checks, that break the re-activating.

Best Joscha

//-

marmalade.de
Joscha Krug

www.marmalade.dehttp://www.marmalade.de/
k...@marmalade.demailto:k...@marmalade.de

Leibnizstr.25
39104 Magdeburg
GERMANY

phone: +49 (0) 391 / 559 22 104
fax:  +49 (0) 391 / 559 22 106
Am 18.06.2012 16:49, schrieb Bernd Hasis:

___
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general

Re: [oxid-dev-general] Modulehandling with Version 4.6

2012-06-19 Thread Marco Steinhaeuser
Hi,

my fault, sorry.

The link I posted has nothing to do with the debug module for extensions 
introduced on the unconference. The right one is about to be checked and most 
likely will published this week.

Sorry for this obfuscation ;)
Marco



From: dev-general-boun...@lists.oxidforge.org 
[dev-general-boun...@lists.oxidforge.org] on behalf of Alfonsas Cirtautas 
[alfonsas.cirtau...@oxid-esales.com]
Sent: Tuesday, June 19, 2012 8:17 AM
To: dev-general@lists.oxidforge.org
Subject: Re: [oxid-dev-general] Modulehandling with Version 4.6

Hi,

debuginfo module you found on github is truly not the right module, it is just 
a try to display nice debug information in footer.

Alf

From: dev-general-boun...@lists.oxidforge.org 
[dev-general-boun...@lists.oxidforge.org] on behalf of Lang, Raimund 
[r.l...@haller-stahlwaren.de]
Sent: Tuesday, June 19, 2012 8:42 AM
To: dev-general@lists.oxidforge.org
Subject: Re: [oxid-dev-general] Modulehandling with Version 4.6

Dear diary

Today I have found the new debuginfo-module on github. Please say „thank you“ 
to Marco and the core developers of OXID!

Yours

Ray


Haller Stahlwaren GmbH
Am Gartennest 1
74544 Michelbach/Bilz
---
Tel.: 0791/47003
Fax : 0791/47005
www.haller-stahlwaren.de
---
Sitz: Schwäbisch Hall
Registergericht: Stuttgart HRB 570131
Geschäftsführer: Hermann Hebsacker, Karin Hebsacker

Von: dev-general-boun...@lists.oxidforge.org 
[mailto:dev-general-boun...@lists.oxidforge.org] Im Auftrag von Marco 
Steinhaeuser
Gesendet: Montag, 18. Juni 2012 18:23
An: dev-general@lists.oxidforge.org
Betreff: Re: [oxid-dev-general] Modulehandling with Version 4.6

Hi list (for some reason sounds like dear diary :D)

I am not absolutely sure but this is most likely what you are looking for:
https://github.com/OXIDprojects/debuginfo

Cheers
Marco


From: 
dev-general-boun...@lists.oxidforge.orgmailto:dev-general-boun...@lists.oxidforge.org
 [dev-general-boun...@lists.oxidforge.org] on behalf of Joscha Krug | 
marmalade.de [k...@marmalade.de]
Sent: Monday, June 18, 2012 4:57 PM
To: dev-general@lists.oxidforge.orgmailto:dev-general@lists.oxidforge.org
Subject: Re: [oxid-dev-general] Modulehandling with Version 4.6
Hi,

thanks for your hint.


I think the new Module handler doesnt like when you portable modules from an 
older Version to 4.6 and then make an new meta.php file for this without 
deleten the old one befor.
Just my idea...
Happens also on fresh installations with version 4.6.x

Seems like there are some checks, that break the re-activating.

Best Joscha

//-

marmalade.de
Joscha Krug

www.marmalade.dehttp://www.marmalade.de/
k...@marmalade.demailto:k...@marmalade.de

Leibnizstr.25
39104 Magdeburg
GERMANY

phone: +49 (0) 391 / 559 22 104
fax:  +49 (0) 391 / 559 22 106
Am 18.06.2012 16:49, schrieb Bernd Hasis:

___
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general

Re: [oxid-dev-general] ignore stock and stockstatus

2012-06-19 Thread Vilma Liorensaityte
Hi,

I did not check, but you can try to use this method:
oxBasket::setStockCheckMode()
and set the stock mode to false, e.g.:
$oBasket-setStockCheckMode(false);

Regards,
Vilma

From: dev-general-boun...@lists.oxidforge.org 
[mailto:dev-general-boun...@lists.oxidforge.org] On Behalf Of Ralf Kronen
Sent: Monday, June 18, 2012 5:07 PM
To: dev-general@lists.oxidforge.org
Subject: [oxid-dev-general] ignore stock and stockstatus

Hi,

in the shop exists orders with the db flag oxorder__offer = 1. This flag cause 
that a order can be placed back into the basket and edit.

The function in a oxcmp_basket modul.

public function loadBasketFromOffer()
{
$offerId = oxConfig::getParameter('offerid');
$oUser = $this-getUser();
$oBasket = $this-getSession()-getBasket();


$oBasket-deleteBasket();
$oBasket-setOrderId($offerId);
$oBasket-setBasketUser($oUser);


$oOrder = oxNew('oxorder');
$oOrder-load($offerId);
$oOrderArticles = $oOrder-getOrderArticles();


$this-getSession()-setBasket($oBasket);


foreach($oOrderArticles as $oOrderArticle)
{

$this-tobasket($oOrderArticle-oxorderarticles__oxartid-value, 
$oOrderArticle-oxorderarticles__oxamount-value, null, 
$oOrderArticle-getPersParams());
} //foreach
}

Now, i have the problem, when the article is not in stock, the 
tobasket-function doesn't work. it should behave in this case as 
oxarticles__oxstockflag = 0 (standard). Is it possible to realize that, and how?

cheers
ralf

___
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general

Re: [oxid-dev-general] ignore stock and stockstatus

2012-06-19 Thread Ralf Kronen
Hi,

the problem is oxarticles__oxstockflag = 2, so this doesn't work.

cheers
ralf


Am 19.06.2012 um 10:18 schrieb Vilma Liorensaityte:

 Hi,
  
 I did not check, but you can try to use this method:
 oxBasket::setStockCheckMode()
 and set the stock mode to false, e.g.:
 $oBasket-setStockCheckMode(false);
  
 Regards,
 Vilma
  
 From: dev-general-boun...@lists.oxidforge.org 
 [mailto:dev-general-boun...@lists.oxidforge.org] On Behalf Of Ralf Kronen
 Sent: Monday, June 18, 2012 5:07 PM
 To: dev-general@lists.oxidforge.org
 Subject: [oxid-dev-general] ignore stock and stockstatus
  
 Hi,
  
 in the shop exists orders with the db flag oxorder__offer = 1. This flag 
 cause that a order can be placed back into the basket and edit.
  
 The function in a oxcmp_basket modul.
  
 public function loadBasketFromOffer()
 {
 $offerId = oxConfig::getParameter('offerid');
 $oUser = $this-getUser();
 $oBasket = $this-getSession()-getBasket();
 
 $oBasket-deleteBasket();
 $oBasket-setOrderId($offerId);
 $oBasket-setBasketUser($oUser);
 
 $oOrder = oxNew('oxorder');
 $oOrder-load($offerId);
 $oOrderArticles = $oOrder-getOrderArticles();
   
 $this-getSession()-setBasket($oBasket);
 
 foreach($oOrderArticles as $oOrderArticle)
 {
 $this-tobasket($oOrderArticle-oxorderarticles__oxartid-value, 
 $oOrderArticle-oxorderarticles__oxamount-value, null, 
 $oOrderArticle-getPersParams());
 } //foreach
 }
  
 Now, i have the problem, when the article is not in stock, the 
 tobasket-function doesn't work. it should behave in this case as 
 oxarticles__oxstockflag = 0 (standard). Is it possible to realize that, and 
 how?
  
 cheers
 ralf
  
 ___
 dev-general mailing list
 dev-general@lists.oxidforge.org
 http://dir.gmane.org/gmane.comp.php.oxid.general

___
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general

[oxid-dev-general] Recent Viewed Products

2012-06-19 Thread Sai Chandra Sekhar Madala
Dear All,

I have a requirement where I have to show the recent viewed products.I have
tried to implement this through a module.

First I have stored the ox-id's of the viewed products inside a session
variable and retrieved them and created an object and loaded the product
using load function.

1) This is the code in details.php for storing session variable.


 if(isset($_SESSION['views']))

 $_SESSION['views']=$_SESSION['views'].,.$oProduct-oxarticles__oxid-value;
 else
 $_SESSION['views']=$oProduct-oxarticles__oxid-value;


2) Then I have used the below code in Module

public function getrecentviewproduct(){
 $i=0;
 if($procoxid = oxSession::getVar('views')){
 $sOxid =  explode(, , $procoxid);
 foreach($sOxid as $procid){
 $oArt = oxNew('oxarticle');
 $oArt-load($procid);
 $oArtList[$i] = $oArt;
 $i++;
 }
 return $oArtList;
 }
 return null;
 }


This module when registered with start class works fine in start page,but
our requirement is that it should work through out the shop.

Please suggest which class has to be extended so that the above will work
through out the shop.


Thanks  Regards,
Sai Chandra Sekhar.M,
Devblaze Inc.
___
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general

Re: [oxid-dev-general] Recent Viewed Products

2012-06-19 Thread Marco Steinhaeuser
Hi Sai Chandra Sekhar.M,

IMO, you made it more complicate as it is: this feature already exists but is 
probably not shown in azure template. Switch over to basic and enjoy ;)

Regards
Marco



From: dev-general-boun...@lists.oxidforge.org 
[dev-general-boun...@lists.oxidforge.org] on behalf of Sai Chandra Sekhar 
Madala [saichandrashek...@devblaze.in]
Sent: Tuesday, June 19, 2012 4:52 PM
To: dev-general@lists.oxidforge.org
Subject: [oxid-dev-general] Recent Viewed Products

Dear All,

I have a requirement where I have to show the recent viewed products.I have 
tried to implement this through a module.

First I have stored the ox-id's of the viewed products inside a session 
variable and retrieved them and created an object and loaded the product using 
load function.

1) This is the code in details.php for storing session variable.

if(isset($_SESSION['views']))
$_SESSION['views']=$_SESSION['views'].,.$oProduct-oxarticles__oxid-value;
else
$_SESSION['views']=$oProduct-oxarticles__oxid-value;

2) Then I have used the below code in Module

public function getrecentviewproduct(){
$i=0;
if($procoxid = oxSession::getVar('views')){
$sOxid =  explode(, , $procoxid);
foreach($sOxid as $procid){
$oArt = oxNew('oxarticle');
$oArt-load($procid);
$oArtList[$i] = $oArt;
$i++;
}
return $oArtList;
}
return null;
}

This module when registered with start class works fine in start page,but our 
requirement is that it should work through out the shop.

Please suggest which class has to be extended so that the above will work 
through out the shop.


Thanks  Regards,
Sai Chandra Sekhar.M,
Devblaze Inc.



___
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general

Re: [oxid-dev-general] Recent Viewed Products

2012-06-19 Thread Frank Zunderer
Hi,

 

Last seen products is already built in, but only for detail view. Here is a
module that activates last seen in azure throughout the shop, just add the
views where you want to show it in metadata.php:

 http://forum.oxid-esales.com/showthread.php?t=708page=5
http://forum.oxid-esales.com/showthread.php?t=708page=5

 

Regards,

Frank

 

 

Von: dev-general-boun...@lists.oxidforge.org
[mailto:dev-general-boun...@lists.oxidforge.org] Im Auftrag von Sai Chandra
Sekhar Madala
Gesendet: Dienstag, 19. Juni 2012 16:52
An: dev-general@lists.oxidforge.org
Betreff: [oxid-dev-general] Recent Viewed Products

 

Dear All,

I have a requirement where I have to show the recent viewed products.I have
tried to implement this through a module.

First I have stored the ox-id's of the viewed products inside a session
variable and retrieved them and created an object and loaded the product
using load function.

1) This is the code in details.php for storing session variable.

 

if(isset($_SESSION['views']))
$_SESSION['views']=$_SESSION['views'].,.$oProduct-oxarticles__oxid-value
;
else
$_SESSION['views']=$oProduct-oxarticles__oxid-value;


2) Then I have used the below code in Module

public function getrecentviewproduct(){
$i=0;
if($procoxid = oxSession::getVar('views')){
$sOxid =  explode(, , $procoxid);
foreach($sOxid as $procid){
$oArt = oxNew('oxarticle');
$oArt-load($procid);
$oArtList[$i] = $oArt;
$i++;
}
return $oArtList;
}
return null;
}


This module when registered with start class works fine in start page,but
our requirement is that it should work through out the shop.

Please suggest which class has to be extended so that the above will work
through out the shop.


Thanks  Regards,
Sai Chandra Sekhar.M,
Devblaze Inc.




___
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general