-
Posts
13 -
Joined
-
Last visited
Profile Information
-
Location
Finland
-
Activity
Developer
JTDVNT's Achievements
-
How do I reinstall the PayPal module in PrestaShop v1.6.1.x?
-
How to change email adress account ?
JTDVNT replied to Baba deCode's question in IP. Board Forum Questions and Issues
This is ridiculous that you can't change your email address... -
Any help out there?
-
Hello, Some of customers have received "Out of Stock" email after placing an order, although all of the ordered products has stock. Why is this and how this could be fixed? I appreciate any help. Thanks in advance! PrestaShop version: 1.6.1.3
-
I have same kind of problem. Using Web Service to create an order and when I have set define('_PS_MODE_DEV_', false); in defines.inc.php, I get 500 error. When development mode is on, it's working fine. How this is possible? I am using v1.6.0.14.
-
The answer The answer lies in here.
-
Yes... I like to know this as well. Is it in OrderHistory class? Please, help, someone.
-
Hello there, I am trying to create a custom page to front office. PrestaShop's version is 1.6. My custom controller looks like this: <?php class MyModuleAllProductsModuleFrontController extends ModuleFrontController { public function __construct() { parent::__construct(); $this->context = Context::getContext(); } public function init() { $this->page_name = 'all-products'; parent::init(); } public function initContent() { parent::initContent(); $this->setTemplate(_PS_THEME_DIR_ . 'all-products.tpl'); } } But when I try to access to the page I get the following exception: The template file exists for sure. Why I am getting this error and how I can solve this problem? Thank you to anyone who can help.
-
WebService | New Order XML Error (Response is not parsable)
JTDVNT replied to JTDVNT's topic in Core developers
Bumper.- 4 replies
-
- webservice
- xml
-
(and 4 more)
Tagged with:
-
WebService | New Order XML Error (Response is not parsable)
JTDVNT posted a topic in Core developers
Hello there, I am trying to dynamically create an order through PrestaShop's webservice. First I create a customer, then address, then cart and finally an order. However, an error that I get when trying to create a new order, looks like this: HTTP XML response is not parsable: array ( 0 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 65, 'message' => 'Input is not proper UTF-8, indicate encoding ! Bytes: 0x98 0x1F 0x55 0x11', 'file' => '', 'line' => 779, )), 1 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 66, 'message' => 'PCDATA invalid Char value 31', 'file' => '', 'line' => 779, )), 2 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 68, 'message' => 'PCDATA invalid Char value 17', 'file' => '', 'line' => 779, )), 3 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 71, 'message' => 'PCDATA invalid Char value 29', 'file' => '', 'line' => 779, )), 4 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 76, 'message' => 'PCDATA invalid Char value 11', 'file' => '', 'line' => 779, )), 5 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 51, 'message' => 'XML declaration allowed only at the start of the document', 'file' => '', 'line' => 13997, )), 6 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 51, 'message' => 'XML declaration allowed only at the start of the document', 'file' => '', 'line' => 16440, )), 7 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 51, 'message' => 'XML declaration allowed only at the start of the document', 'file' => '', 'line' => 18882, )), 8 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 33, 'message' => 'XML declaration allowed only at the start of the document', 'file' => '', 'line' => 19494, )), ) Here's the code I am using: $xml_order = $webService->get(array('url' => $basepath . '/api/orders?schema=blank')); $xml_order->children()->children()->conversion_rate = 1; $xml_order->children()->children()->date_add = date('Y-m-d H:i:s'); $xml_order->children()->children()->id_address_delivery = (int) $delivery_address_id; $xml_order->children()->children()->id_address_invoice = (!is_null($billing_address_id)) ? (int) $billing_address_id : (int) $delivery_address_id; $xml_order->children()->children()->id_carrier = 0; $xml_order->children()->children()->id_cart = (int) $cart_id; $xml_order->children()->children()->id_currency = (int) $this->context->currency->id; $xml_order->children()->children()->id_customer = (int) $customer_id; $xml_order->children()->children()->id_lang = (int) $this->context->language->id; $xml_order->children()->children()->id_shop = (int) $this->context->shop->id; $xml_order->children()->children()->module = 'bankwire'; $xml_order->children()->children()->payment = 'Bank wire'; $xml_order->children()->children()->total_paid = Tools::getValue('total_products'); $xml_order->children()->children()->total_paid_real = Tools::getValue('total_products'); $xml_order->children()->children()->total_paid_tax_excl = Tools::getValue('total_products'); $xml_order->children()->children()->total_paid_tax_incl = Tools::getValue('total_products_wt'); $xml_order->children()->children()->total_products = Tools::getValue('total_products'); $xml_order->children()->children()->total_products_wt = Tools::getValue('total_products_wt'); $xml_order->children()->children()->valid = 1; $xml = $webService->add(array( 'resource' => 'orders', 'postXml' => $xml_order->asXML() )); $resources = $xml->children()->children(); $order_id = $resources->id; At the moment I have no idea what's causing this error to occur.. Could someone help me with this?- 4 replies
-
- webservice
- xml
-
(and 4 more)
Tagged with:
-
Undefined variable: count_categories_without_parent
JTDVNT replied to JTDVNT's topic in OUT - 1.6.0.11 [7 Jan 2015]
1.6.0.9 EDIT: Oh, and I am using OrganicShop theme (if that makes sense).- 3 replies
-
- product
- categories
- (and 6 more)
-
Hello, I removed all sample products and categories and decided to add my own. On the product categories page, I am getting an error like this: Notice on line 223 in file ../../public_html/controllers/admin/AdminCategoriesController.php [8] Undefined variable: count_categories_without_parent What is causing this error and how can I get rid of it?
- 3 replies
-
- product
- categories
- (and 6 more)