Jump to content

Barama

Members
  • Posts

    54
  • Joined

  • Last visited

Profile Information

  • Location
    Hamburg, Germany
  • Interests
    Chess, Programming, Technology, Business
  • Activity
    User/Merchant

Recent Profile Visitors

5,611,298 profile views

Barama's Achievements

Newbie

Newbie (1/14)

1

Reputation

3

Community Answers

  1. I also posted this on stackoverflow (https://stackoverflow.com/questions/49085954/prestashop-1-7-3-webservice-creating-a-new-order-500-error) Clients, Adresses and Carts imports works fine but when trying to insert new Order, it returns this error: This call to PrestaShop Web Services failed and returned an HTTP status of 500. That means: Internal Server Error. I am using PSWebServiceLibrary.php and I have debug modus turned on. But the error message is way too generic for me. I have searched stackoverflow and the prestashop forums. Others have the same problem (for example: Prestashop 1.6 Webservice Order). But it seems nobody knows what's wrong. public function add_order(array $order, array $products) { $xml = $this->webService->get(array('url' => $this->shop_path . '/api/orders?schema=blank')); $xml->order->id_customer = 198; $xml->order->id_address_delivery = 493; $xml->order->id_address_invoice = 492; $xml->order->id_cart = 220; $xml->order->id_currency = 1; $xml->order->id_lang = 1; $xml->order->id_carrier = 1; $xml->order->current_state = 14; $xml->order->valid = 0; $xml->order->payment = 'Bankwire'; $xml->order->module = 'bankwire'; $xml->order->total_paid = 33.850000; $xml->order->total_paid_tax_incl = 33.850000; $xml->order->total_paid_tax_excl = 28.445390; $xml->order->total_paid_real = 33.850000; $xml->order->total_products = 25.126060; $xml->order->total_products_wt = 29.900000; $xml->order->total_shipping = 3.950000; $xml->order->total_shipping_tax_incl = 3.950000; $xml->order->total_shipping_tax_excl = 3.319330; $xml->order->carrier_tax_rate = 19.000; $xml->order->round_mode = 2; $xml->order->reference = "ASKLDFJALSKD"; $xml->order->conversion_rate = 1.000000; $xml->order->associations->order_rows->order_row->product_id = 0; $xml->order->associations->order_rows->order_row->product_attribute_id = 0; $xml->order->associations->order_rows->order_row->product_quantity = 2; $xml->order->associations->order_rows->order_row->product_name = "10x Collieretui"; $xml->order->associations->order_rows->order_row->product_reference = "702360"; $xml->order->associations->order_rows->order_row->product_price = 12.563030; $xml->order->associations->order_rows->order_row->product_price_tax_incl = 14.950000; $xml->order->associations->order_rows->order_row->product_price_tax_excl = 12.563030; $opt = array('resource' => 'orders'); $opt['postXml'] = $xml->asXML(); $xml = $this->webService->add($opt); }
  2. Von gestern auf heute funktioniert das Theme nicht mehr richtig. Es wurden keine Änderungen vorgenommen. Der Shop (www.moritzen-grosshandel.de) sieht "schräg" aus. Ich benutze pagecache und als Theme sportfitness. Ich hatte zuerst den cache deaktiviert und auch pagecache deaktiviert. Ausserdem wird die Kompilierung erzwungen. Das hat nichts gebracht. Dann habe ich den cache komplett gelöscht. Hat auch nichts gebracht. Der Debug-Modus ist aktiviert. Wie kann ich das Problem beheben? Was kann die Ursache sein? Prestashop-Version 1.6.10
  3. The code below is my current used one. In the attached file you can see how the permanent links look. What could be the problem? How can I fix it? The url to the website is: www.moritzen-grosshandel.de blockpermanentlinks.tpl <!-- MODULE Block permanent links --> {nocache} <div id="permanent_links"> <div class="permanent_link_home"> <a href="{$base_dir_ssl}" title="{l s='Home' mod='blockpermanentlinks'}" {if $page_name == 'index'}class="selected"{/if}>{l s='Home' mod='blockpermanentlinks'}</a> </div> <div class="permanent_link_contact"> <a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact' mod='blockpermanentlinks'}">{l s='Contact' mod='blockpermanentlinks'}</a> </div> <div class="permanent_link_sitemap"> <a href="{$link->getPageLink('sitemap.php', true)}" title="{l s='Sitemap' mod='blockpermanentlinks'}">{l s='Sitemap' mod='blockpermanentlinks'}</a> </div> </div> {/nocache} <!-- /MODULE Block permanent links --> blockpermanentlinks-header.tpl <!-- MODULE Block permanent links HEADER --> {nocache} <ul id="header_links"> <li class="header_link_home"> <a href="{$base_dir_ssl}" title="{l s='Home' mod='blockpermanentlinks'}" {if $page_name == 'index'}class="selected"{/if}><i class="icon-house"></i><span>{l s='Home' mod='blockpermanentlinks'}</span></a> </li> <li class="header_link_account"> <a href="{$link->getPageLink('my-account.php', true)}" title="{l s='Customer account' mod='blockpermanentlinks'}" {if $page_name == 'my-account' OR $page_name == 'authentication'}class="selected"{/if}>{l s='Mein Kundenkonto' mod='blockpermanentlinks'}</a> </li> <li class="header_link_contact"> <a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='contact' mod='blockpermanentlinks'}" {if $page_name == 'contact-form' OR $page_name == 'contact'}class="selected"{/if}><i class="icon-envelope"></i><span>{l s='Kontakt' mod='blockpermanentlinks'}</span></a> </li> <li class="header_link_sitemap"> <a href="{$link->getPageLink('sitemap.php', true)}" title="{l s='Sitemap' mod='blockpermanentlinks'}" {if $page_name == 'sitemap'}class="selected"{/if}><i class="icon-sitemap"></i><span>{l s='Sitemap' mod='blockpermanentlinks'}</span></a> </li> <li class="header_link_sitemap"> <a href="http://www.moritzen-grosshandel.de/restposten-ankauf" title="{l s='Restposten Ankauf' mod='blockpermanentlinks'}" style="padding:4px; border: 3px dotted red;"><i class="icon-sitemap"></i><span>Restposten Ankauf</span></a> </li> </ul> {/nocache} <!-- /MODULE Block permanent links HEADER -->
  4. I am using version 1.6.0.5 and I wanted to upgrade to the latest version(1.6.0.14). I tried to use the automatic upgrader(1-Click Upgrade). But I always get the error: "Javascript error (parseJSON) detected for action "upgradeNow". Starting restoration...". For hours I am trying to find a solution. I tried many suggestions. - I read the documentation: http://doc.prestashop.com/display/PS16/Automatic+update - I uninstalled and reintalled 1-Click Upgrade ( I am using version 1.4.9) - I tried to upgrade through local folder - Set the modules directory and all subdirectories permissions to 777 But all to no avail. The error gets explicitly mentioned in the documentation. But the mentioned code is already commented out in my code base. Mysql, Mysqli, Pdo, Sqlite are all enabled. I do not know what to do anymore. I want to avoid a manual upgrade if possible. I hope that somebody has a solution or an idea.
  5. I tried regenerating them but it still does not work. The images do show up on the frontend. It is just that I have to always upload another image in order for it to show up.
  6. I am using Prestashop 1.6.0.5. I am not using the default template. When I upload a second image it does not show up on the product detail page. When I then upload a third image, the product detail page shows image 1 and image 2 but not image 3. Image 3 only shows up when uploading a fourth image. What can I do to correct this?
  7. I forgot to mention how I solved it. You have to open /YourPrestashopRoot/classes/Search.php Go to the find() function. There change the first foreach() loop to this: foreach ($words as $key => $word) if (!empty($word) && strlen($word) >= (int)Configuration::get('PS_SEARCH_MINWORDLEN')) { $word = str_replace('%', '\\%', $word); $word = str_replace('_', '\\_', $word); $intersect_array[] = 'SELECT si.id_product FROM '._DB_PREFIX_.'search_word sw LEFT JOIN '._DB_PREFIX_.'search_index si ON sw.id_word = si.id_word WHERE sw.id_lang = '.(int)$id_lang.' AND sw.id_shop = '.$context->shop->id.' AND sw.word LIKE '.($word[0] == '-' ? ' \'%'.pSQL(Tools::substr($word, 1, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' : '\'%'.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' ); if ($word[0] != '-') $score_array[] = 'sw.word LIKE \'%'.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\''; } There is not much change except that I added 2 or 3 %-characters. This fixes the problem. I use Prestashop 1.6.
  8. Ich habe ein Lastschrift-Modul für Prestashop geschrieben. Es funktioniert auch alles. Aber das Modul wird unter "Module" gelistet. Ich möchte, dass es unter "Module->Zahlung" gelistet wird, damit ich die Länderbeschränkung nutzen kann. Weiß jemand wie das geht? Meine Konstrukturmethode sieht so aus: function __construct() { $this->name = 'Lastschrift'; $this->tab = 'Payment'; $this->version = 1; parent::__construct(); $this->page = basename(__FILE__, '.php'); $this->displayName = $this->l('Lastschrift'); $this->description = $this->l('Ermöglicht die Zahlart Lastschrift'); } Ich benutze Prestashop 1.6.0.5. Ich dachte, dass durch die Angabe von $this->tab = 'Payment', das Modul unter "Modul->Zahlung" gelistet würde.
  9. Im Shop sind die Preise alle Netto. Der Kunde kauft z.B Produkt A 1x für 0,99 Euro. Dann steht im Warenkorb folgendes: Gesamtsumme(ohne MwSt.) 0,99 Versandkosten(ohne Mwst.) 6,95 Gesamt Steuern 1,51 Gesamtsumme 9,45 Das ist auch alles richtig. In der Bestellbestätigung steht aber: Produkte 1,18 Rabatte 0,00 Geschenkverpackung 0,00 Versand 8,27 Steuern 1,51 Gesamt 9,45 Prestashop hat also die Bruttopreise in der Bestellbestätigung angezeigt. Der Gesamtbetrag ist zwar richtig, dennoch ist das aber ein bisschen verwirrend. Ich dache man könnte das irgendwo im Backend einstellen.
  10. Unter "Lokalisierung->Länder->Deutschland->MwSt. anzeigen" steht bei mir als aktiv(Ja). Ich weiß nicht mehr wo man das einstellen kann, dass nur die Nettopreise angezeigt werden. Im Moment werden bei uns im Shop aber nur Nettopreise angezeigt, was ja auch gewünscht ist. Nur die Bestellbestätigung zeigt Bruttopreise an. Der Gesamtbetrag der Bestellbestätigung ist richtig. 2. Ja, genau. Es handelt sich um einen Großhandelsshop. Ich benutze Prestashop 1.6.0.5 und kein EU-Legal.
  11. Ja, im restlichen Shop sind Nettopreise. Man erhält eine Auflistung der Nettopreise und eine Zwischensumme. Auf diese Zwischensumme wird dann am Ende die MwSt. addiert. So soll das in der Bestellbestätigung sein.
  12. Wenn der Kunde eine Bestellbestätigung per Email erhält, werden die Bruttopreise angezeigt. Ich möchte aber, dass die Nettopreise angezeigt werden. Kann man das im Backend irgendwo einstellen? Ich könnte das auch im Quelltext ändern, bevorzuge aber eine Lösung im Backend.
  13. Hi, I had the same issue. It has to do with the wishlist module. So I just disabled it because I didn't need it. If you do not need it either just deactivate it. This would be a quick solution. Although it does not really solve the error.
×
×
  • Create New...