Jump to content

JTDVNT

Members
  • Posts

    13
  • Joined

  • Last visited

Profile Information

  • Location
    Finland
  • Activity
    Developer

JTDVNT's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. How do I reinstall the PayPal module in PrestaShop v1.6.1.x?
  2. This is ridiculous that you can't change your email address...
  3. 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
  4. I have same kind of a problem. Using Web Service to create an order and when I have define('_PS_MODE_DEV_', false); in defines.inc.php, I get 500 error. When it's true, no problems. How this is possible? I am using v1.6.0.14.
  5. 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.
  6. Yes... I like to know this as well. Is it in OrderHistory class? Please, help, someone.
  7. 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.
  8. 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?
  9. 1.6.0.9 EDIT: Oh, and I am using OrganicShop theme (if that makes sense).
  10. 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?
×
×
  • Create New...