opencart online tahsilat poifba_price_customizer_v1.0.0.ocmod

elektrostart

Member
XNullUser
Joined
Jul 8, 2024
Messages
49
Reaction score
4
Points
8
Location
turkey
NullCash
76
çevrimiçi tahsilat poifba_price_customizer_v1.0.0.ocmod


opencart 3x ve journal tehema ile uyumcu



İndir
 

Attachments

  • online tahsilat poifba_price_customizer_v1.0.0.ocmod.zip
    17.5 KB · Views: 2

skolse88

Active member
XNullUser
Joined
Oct 21, 2023
Messages
135
Reaction score
40
Points
28
Location
turkiye
NullCash
19
çevrimiçi tahsilat poifba_price_customizer_v1.0.0.ocmod


opencart 3x ve journal tehema ile uyumcu



İndir


ŞİFRELİ DOSYA VAR ÇÖZÜLMÜŞ HALİ AŞAĞIDADIR. CATALOG/MODEL İÇİNDE
<?php use PoiFba\PriceCustomizer;require_once(DIR_SYSTEM."library/poifba/price_customizer/price_customizer.php");class ModelExtensionModulePoifbaPriceCustomizer extends Model{private $_poifba;public function __construct($registry){parent::__construct($registry);try{$this->{"_poifba"}=new PriceCustomizer('catalog',$registry);if($this->{"_poifba"}->{"run"}()){unset($this->{"_poifba"});}}catch(Exception $e){}}public function parse($value){if(!$this->{"_poifba"}||!is_numeric($value)){return null;}$prefix="+";$value=str_replace(['+','-'],'',$value);$price=$prefix=='-'?$value*-1:$value;$special=null;return['prefix'=>$prefix,'value'=>$value,'price'=>$price,'special'=>$special];}public function calc($value,$productID){$priceCustomizer=$this->{"parse"}((string)$value);if(!$priceCustomizer){return null;}$this->{"load"}->{"model"}('catalog/product');$product_info=$this->{"model_catalog_product"}->{"getProduct"}((int)$productID);if(!$product_info){return null;}$price=$product_info['price']?:0;$special=$product_info['special']?:0;if($special){if($priceCustomizer['special']){$special+= $priceCustomizer['special'];}else{$special+= $priceCustomizer['price'];}}else{if($priceCustomizer['special']){$special=$price+$priceCustomizer['special'];}}$price+= $priceCustomizer['price'];$output=['price'=>$price,'special'=>$special,'tax'=>0];if($this->{"config"}->{"get"}('config_tax')){$output['tax']=$this->{"tax"}->{"calculate"}($special?:$price,$product_info['tax_class_id']);}foreach($outputas&$item){if(!$item){continue;}$item=$this->{"currency"}->{"format"}($item,$this->{"session"}->{"data"}['currency']);}return $output;}public function noCache(){if(!$this->{"_poifba"}){return null;}return $this->{"_poifba"}->{"noCache"}();}}
Post automatically merged:

tüm dosyaların kırılmış olarak temiz şekilde ektedir. fakat license yazan kısımlar silinmemiştir. kodlar çözülmüştür.
 

Attachments

  • online tahsilat poifba_price_customizer_v1.0.0.ocmod.zip
    14.6 KB · Views: 3
Last edited:

YARAKK

Member
XNullUser
Joined
Mar 22, 2025
Messages
39
Reaction score
0
Points
6
Location
France
NullCash
1
Thanks bro. Best regards. Thanks bro. Best regards.
Post automatically merged:

Thanks bro. Best regards. Thanks bro. Best regards.
Post automatically merged:

Thanks bro. Best regards. Thanks bro. Best regards.
Post automatically merged:

Thanks bro. Best regards. Thanks bro. Best regards.
Post automatically merged:

Thanks bro. Best regards. Thanks bro. Best regards.
Post automatically merged:

Thanks bro. Best regards. Thanks bro. Best regards.
 

kordiak

Member
XNullUser
Joined
Aug 2, 2022
Messages
839
Reaction score
12
Points
18
NullCash
11
Merci beaucoup pour ce joli module, agréable à partager.
 

kalel9320

Member
XNullUser
Joined
Feb 11, 2022
Messages
89
Reaction score
1
Points
8
NullCash
3
Thanks bro. Best regards. Thanks bro. Best regards.
 
Top