Jump to content

prestashopmediarete

Members
  • Posts

    10
  • Joined

  • Last visited

Profile Information

  • Activity
    Agency

prestashopmediarete's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

0

Reputation

  1. Ciao Al 99% lo sviluppatore del tema ha omesso o commentato nel product.tpl la porzione di codice che attiva gli Accessori.
  2. Buongiorno Diana Siamo specializzati nell'integrazione di arca con prestashop. Come da dettagli http://www.mediarete.it/integrazione-arca-prestashop/ Se desidera può chiamarci direttamente allo 0458890061
  3. Hello, i'm writing a routine to create / update product using Prestashop Object Model. The creation and the update of products works fine (I want to share my code) $product = new Product(); $product->id_manufacturer = 0; $product->id_supplier = 0; $product->id_category_default = $id_category; $product->id_shop_default = 1; $product->name = array((int)Configuration::get('PS_LANG_DEFAULT') => substr($arrPrd[1],0,128)); $product->description = ''; $product->description_short = ''; $product->quantity = 100; $product->minimal_quantity = 1; $product->price = (float)str_replace(',','.',$arrPrd[3]); $product->additional_shipping_cost = 0; $product->wholesale_price = 0; $product->on_sale = false; $product->online_only = false; $product->unity = null; $product->unit_price = 0; $product->unit_price_ratio = 0; $product->ecotax = 0; $product->reference = $arrPrd[0]; $product->supplier_reference = ''; $product->location = ''; $product->width = 0; $product->height = 0; $product->depth = 0; $product->weight = 0; $product->ean13 = 0; $product->upc = ''; $product->link_rewrite = array((int)Configuration::get('PS_LANG_DEFAULT') => Tools::link_rewrite(substr($arrPrd[1],0,128))); $product->meta_description = ''; $product->meta_keywords = ''; $product->meta_title = ''; $product->quantity_discount = 0; $product->customizable = 0; $product->new = 1; $product->uploadable_files = 0; $product->text_fields = 0; $product->active = true; $product->redirect_type = '404'; $product->id_product_redirected = 0; $product->available_for_order = true; $product->available_date = '0000-00-00'; $product->condition = 'new'; $product->show_price = true; $product->indexed = 1; $product->visibility = 'both'; $product->date_add = date('Y/m/d H:i:s', time()); $product->date_upd = date('Y/m/d H:i:s', time());; $product->tags = array(); $product->id_tax_rules_group = 1; $product->add(); $product->addToCategories(array($id_category)); StockAvailable::setQuantity($product->id, 0, (int) $product->quantity); Now I have to create a specific price rule. How can I proceed? There is a SpecificPrice.php class with an add function but I don't know hot to use it. If someone can help me with this code would be appreciated Thank you
  4. The problem was in the "feature condition" in fact Prestashop tryied to allocate about 900.000~ record (yes I have many features) and it die in fatal error. I commented the feature condition in the AdminSpecificPriceRuleController.php and now it works perfectly. Problem solved
  5. Hello, I have a big problem creating a new catalog price rule. When i click in "Add new catalog price rule" Prestashop crasches returning a blank page. In the Apache error-log i found this error: [Mon Jun 08 16:40:03 2015] [error] [client 95.253.205.120] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 71 bytes) in /home/www/xyz.net/htdocs/classes/db/Db.php on line 516, referer: http://www.xyz.net/admin_xyz/index.php?controller=AdminSpecificPriceRule&token=fa952ee58e5b75e9767750973ef334ff Look that the memory limit is 512MB, i try to set memory limit up to 640MB but I got the same error [Tue Jun 09 09:59:01 2015] [error] [client 95.241.133.33] PHP Fatal error: Allowed memory size of 671088640 bytes exhausted (tried to allocate 262144 bytes) in /home/www/xyz.net/htdocs/classes/db/Db.php on line 516, referer: http://www.xyz.net/admin_xyz/index.php?controller=AdminSpecificPriceRule&token=3a457b92b2a76b9143f7004001f7476c I can not further increase memory limit. This is a default Prestashop feature, anyone knows if there is a bug fix? Prestashop version 1.6.0.9 Number of products: 8400~
  6. Hello vlester, I tried your solution but i thins there are some problems. In this script where did you set variables $attachements or $tab_attachment? Maybe there should be a for each.. // Attachment files import if (isset($product->delete_existing_attachments)) if ((bool)$product->delete_existing_attachments) if (isset($attachments['attachment']) && !empty($attachments['attachment'])) $attachment_filename = isset($tab_attachment[0]) ? $tab_attachment[0] : ''; $attachment_name = isset($tab_attachment[1]) ? trim($tab_attachment[1]) : $attachment_filename ; $attachment_description = isset($tab_attachment[2]) ? trim($tab_attachment[2]) : ''; if(!empty($attachment_filename)) { $id_attachment = (int)Attachment::addAttachmentImport($attachment_filename, $attachment_name, $attachment_description); Attachment::addAttchmentProductImport($product->id, $id_attachment); } } Could you help me? Thankyou
  7. Hello everybody, Since we have a lot of options in page product, when a customer places an order in prestashop we receive the email with truncation of product's full description. You can view the example in the attached picture: below the second columns ("Prodotto") the text is truncate ("....sinistra e a"). Why it's truncated? We are not able to find where the variable {products} is enhanced in the modulte order_conf.html. I ask for help! Thanks in advance. Marco, Mediarete Group.
×
×
  • Create New...