cockpitinferno Posted January 20, 2012 Share Posted January 20, 2012 j'ai trouvé comment arranger à ma saus l'excellent module cash on delivery pour proposer un acompte.petit pb, le statut de la commande une fois validée est directement "préparation en cours" j'ai fouiller pour savoir comment modifier ca et en fait il faudrait modifier config.inc.php et ajouter un champ comme j'ai fait dans ce code /* Define order state */ // DEPRECATED : these defines are going to be deleted on 1.6 version of Prestashop // USE : Configuration::get() method in order to getting the id of order state define('_PS_OS_CHEQUE_', Configuration::get('PS_OS_CHEQUE')); define('_PS_OS_PAYMENT_', Configuration::get('PS_OS_PAYMENT')); define('_PS_OS_PREPARATION_', Configuration::get('PS_OS_PREPARATION')); define('_PS_OS_SHIPPING_', Configuration::get('PS_OS_SHIPPING')); define('_PS_OS_DELIVERED_', Configuration::get('PS_OS_DELIVERED')); define('_PS_OS_CANCELED_', Configuration::get('PS_OS_CANCELED')); define('_PS_OS_REFUND_', Configuration::get('PS_OS_REFUND')); define('_PS_OS_ERROR_', Configuration::get('PS_OS_ERROR')); define('_PS_OS_OUTOFSTOCK_', Configuration::get('PS_OS_OUTOFSTOCK')); define('_PS_OS_BANKWIRE_', Configuration::get('PS_OS_BANKWIRE')); define('_PS_OS_PAYPAL_', Configuration::get('PS_OS_PAYPAL')); define('_PS_OS_WS_PAYMENT_', Configuration::get('PS_OS_WS_PAYMENT')); define('_PS_OS_DEPOSIT_', Configuration::get('PS_OS_DEPOSIT')); j'ai ajouté un champ déposit mais maintenant je ne sais pas comment lui faire correspondre l'ID 12 qui correspond au statut que j'ai créé. j'ai cherché du coté de php my admin mais il faut une ID configuration et je ne sais pas quoi mettre. dans les anciennes versions c'était plus simple car on associait directement l'id du statut dans le fichier config, mais la je ne comprend pas ce que veut dire "utiliser la methode get pour obtenir l'id" c'est ce qui est indiqué dans le code juste au dessus de la liste. est ce que qqun peut m'aider svp. merci Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now