- Posts: 2696
- Thank you received: 74
recuperer prix dans le checkout
14 years 4 months ago #49394
by erickb
recuperer prix dans le checkout was created by erickb
il faut que dans le cart.php du checkout je contrôle dans la boucle des articles du caddy le prix final unitaire de chacun et si un des prix est inférieur a x euros je veux afficher un message que ces articles sont sans retour, a quel endroit c'est le mieux pour faire ca (recuperer le prix et mettre une valeur a true par exemple) ?
merci
merci
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49432
by nicolas
Replied by nicolas on topic Re: recuperer prix dans le checkout
Après cette ligne:
foreach($this->rows as $i => $row){
foreach($this->rows as $i => $row){
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49435
by erickb
Replied by erickb on topic Re: recuperer prix dans le checkout
merci
Please Log in or Create an account to join the conversation.
14 years 4 months ago - 14 years 4 months ago #49522
by erickb
Replied by erickb on topic Re: recuperer prix dans le checkout
avec
je ne recupere pas le prix unitaire, si j'ai 2 fois le meme article a petit prix ca me recupere le total est le prix n'est pas affiché
bien sur je peux faire :
if ($row->prices[0]->price_value_with_tax/ $row->cart_product_quantity < $firstprice
mais comment recuperer le prix unitaire ?
merci
Code:
if ($row->prices[0]->price_value_with_tax < $firstprice ){
$isfirstprice = 1;
echo '<span class="hk_fp_warn" title="'.JText::_('HK_FIRST_PRICE_TITLE').'">*</span>';
}
je ne recupere pas le prix unitaire, si j'ai 2 fois le meme article a petit prix ca me recupere le total est le prix n'est pas affiché
bien sur je peux faire :
if ($row->prices[0]->price_value_with_tax/ $row->cart_product_quantity < $firstprice
mais comment recuperer le prix unitaire ?
merci
Last edit: 14 years 4 months ago by erickb.
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49602
by nicolas
Replied by nicolas on topic Re: recuperer prix dans le checkout
Faites un var_dump de $row et vous aurez la réponse...
C'est $row->prices[0]->unit_price->price_value_with_tax qu'il faut utiliser
C'est $row->prices[0]->unit_price->price_value_with_tax qu'il faut utiliser
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49626
by erickb
Replied by erickb on topic Re: recuperer prix dans le checkout
merci
Please Log in or Create an account to join the conversation.
14 years 4 months ago - 14 years 4 months ago #49893
by erickb
Replied by erickb on topic Re: recuperer prix dans le checkout
dans l'email de notification ./media/com_hikashop/mail/order_creation_notification.html.modified.php
$item->unit_price->price_value_with_tax ne me donne aucune valeur comment je peux avoir le prix unitaire TTC dans l'email ?
je le recupere comme ca @$item->order_product_total_price / @$item->order_product_quantity ....
merci
$item->unit_price->price_value_with_tax ne me donne aucune valeur comment je peux avoir le prix unitaire TTC dans l'email ?
je le recupere comme ca @$item->order_product_total_price / @$item->order_product_quantity ....
merci
Last edit: 14 years 4 months ago by erickb.
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49995
by nicolas
Replied by nicolas on topic Re: recuperer prix dans le checkout
comme cela: $item->order_product_price
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49996
by nicolas
Replied by nicolas on topic Re: recuperer prix dans le checkout
Il suffisait de faire un var_dump de $item pour avoir la réponse...
Please Log in or Create an account to join the conversation.
Time to create page: 0.166 seconds