Jump to content

iroberto83

Members
  • Posts

    12
  • Joined

  • Last visited

Profile Information

  • First Name
    Roberto
  • Last Name
    Marghelli

iroberto83's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi! I'm trying to fix a module; in a part of code I get carts, and for each one I've to calculate the total: $cart = new Cart($id_cart); ... $total = $cart->getOrderTotal(); When the code arrives at the total calculation, the "getOrderTotal()" trown to an exception in Product class: public static function getPriceStatic(... ... // If there is cart in context or if the specified id_cart is different from the context cart id if (!is_object($cur_cart) || (Validate::isUnsignedInt($id_cart) && $id_cart && $cur_cart->id != $id_cart)) { /* * When a user (e.g., guest, customer, Google...) is on PrestaShop, he has already its cart as the global (see /init.php) * When a non-user calls directly this method (e.g., payment module...) is on PrestaShop, he does not have already it BUT knows the cart ID * When called from the back office, cart ID can be inexistant */ if (!$id_cart && !isset($context->employee)) { die(Tools::displayError()); } ... What I need It's to obtain the total cart from a given id cart, please can you help me?
  2. Thank you for answers, but they didn't fit my need, I'm looking for a think like that https://woocommerce.com/products/facebook/ It would be really useful, instead I've to publish manually my products on shop tab page ­čś░
  3. Hi, on woocommerce FB released a plugin to post automatically product on shop section of a page. There's a similar module for prestashop?
  4. Found something here: https://www.prestashop.com/forums/topic/624443-bo-bug-create-order-from-backend-with-language-italian/
  5. In adding manual Order I can't find customer on digits
  6. Hi, I'm going crazy 'cause I've to add a manual order but I can't! I've tried also in local clean installation without success. I've added the new customer, but when I go to manually add a new order and I digit the first letter of the name to look for the customer, I got nothing. This is the log: Navigated to https://.../.../index.php?controller=AdminOrders&addorder&token=650e53ee8a4a4134f79762b4a5c22a70 index.php?controller=AdminOrders&addorder&token=650e53ee8a4a4134f79762b4a5c22a70:1488 Uncaught SyntaxError: Unexpected identifier index.php?controller=AdminOrders&addorder&token=650e53ee8a4a4134f79762b4a5c22a70:2198 Uncaught ReferenceError: currencies is not defined at index.php?controller=AdminOrders&addorder&token=650e53ee8a4a4134f79762b4a5c22a70:2198
  7. HI! I've the same issue! When I digit chars on customer search, PS doesn't show any customer... On console I've this two errors: #1 Uncaught SyntaxError: Unexpected identifier /index.php?controller=AdminOrders&addorder&token=650e53ee8a4a4134f79762b4a5c22a70 #1469: html_orders += '<a href="https://.../index.php?controller=AdminOrders&token=650e53ee8a4a4134f79762b4a5c22a70&id_order='+this.id_order+'&vieworder&liteDisplaying=1#" title="Vedi quest'ordine" class="fancybox btn btn-default"><i class="icon-search"></i>&nbsp;Dettagli</a>'; #2 Uncaught ReferenceError: currencies is not defined at index.php?controller=AdminOrders&addorder&token=650e53ee8a4a4134f79762b4a5c22a70:2179 #2179: currencies['2'] = 'ÔéČ';
  8. Hi, there's a way to show applied filters on title's pages?
  9. Hi, I've customized the classic theme: I've duplicated the classic theme folder; I've renamed it, also in config file; I've added customization using webpack; but I've a translation issue: -on dev (my macbook with mamp) all translations are ok If I check the theme translation It counts 1045 voices I see in translation's sections both Shop and Modules I find correctly the voices to edit, for example the copyright footer I see the main language regularly applied and working both in theme and modules -but on production server (siteground) I've several issues: If I check the theme translation It counts only 307 voices I see in translations only the Shop section I can't find voices to edit, for example the copyright footer I see the main language in theme (Italian) but english in modules and other area I've tried importing via zip the theme, uploading via ftp, removed and reinstalled the Italian language, but nope works... I've already tried switching off the cache, cleaning, ecc...
  10. Hi, I'm looking for a module that automatically assign a customer using a voucher code to a specific group. Does it exists?
  11. In frontend funziona, ma al singolo caricamento di un prodotto ho 6 notice da log error: [17-Aug-2016 18:32:43 Europe/Rome] PHP Notice: Undefined variable: cookie in/prestashop/modules/artproduttori/artproduttori.php on line 57 [17-Aug-2016 18:32:43 Europe/Rome] PHP Notice: Trying to get property of non-object in /prestashop/modules/artproduttori/artproduttori.php on line 57 [17-Aug-2016 18:32:43 Europe/Rome] PHP Notice: Undefined variable: cookie in /prestashop/modules/artproduttori/artproduttori.php on line 89 [17-Aug-2016 18:32:43 Europe/Rome] PHP Notice: Trying to get property of non-object in /prestashop/modules/artproduttori/artproduttori.php on line 89 [17-Aug-2016 18:32:43 Europe/Rome] PHP Notice: Undefined variable: cookie in /prestashop/modules/artproduttori/artproduttori.php on line 123 [17-Aug-2016 18:32:43 Europe/Rome] PHP Notice: Trying to get property of non-object in /prestashop/modules/artproduttori/artproduttori.php on line 123 E' possibile fixare? Vers. PS 1.6.1.6
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More