Posts

Showing posts with the label XML

Opencart Checkout Error iso_code_2 Undefined or iso_code_3 Undefined regarding UPS and USPS shipping method

Hi, if you getting any error like  iso_code_2 Undefined or iso_code_3 Undefined in opencart version 2.3.0.2 regarding UPS and USPS shipping method. or like this error Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/usps.php on line 36Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/usps.php on line 286Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/ups.php on line 147Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/ups.php on line 147 ------------------------------------------ Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/usps.php on line 36Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/usps.php on line 286Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model

how to get value from CDATA with simplexmlelement in XML in php

it is a very simple thing. just get cast the value in string that's it see the example below:- <Product_Model> <![CDATA[WH4-P2649]]> </Product_Model> you must have all xml value in given below variale. $productsxml = simplexml_load_string($productsxml); now cast the tag like this . (string) $product->Product_Model; you will surely get your disered result. enjoy 😆😇

How to test Ocmod extension or module xml file code in Opencart without installing?

Image
Answer : We can simply put our ocmod xml file in ROOT- > SYSTEM(folder) it will work. later on developer can install it in admin Extension->Extensioin Installer