Jump to content

cerovic

Members
  • Posts

    134
  • Joined

  • Last visited

cerovic's Achievements

Newbie

Newbie (1/14)

4

Reputation

3

Community Answers

  1. yes, you were right. I bought module for Serial Numbers and this module has overide file which cause the problem. I have to write to module developer. Thanks for this point.
  2. Hello. My presta runs ok, but then I delete the cache , I get this error, when I try to access Product list on administration. Can anyone know what could be wrong? class AdminProductsController extends AdminProductsControllerCore { } public function initFormAttributes($product) { $data = $this->createTemplate($this->tpl_form); if (!Combination::isFeatureActive()) { $this->displayWarning($this->l('This feature has been disabled. '). ' '.$this->l('Performances').''); } elseif (Validate::isLoadedObject($product)) { if ($this->product_exists_in_shop) { $attribute_js = array(); $attributes = Attribute::getAttributes($this->context->language->id, true); foreach ($attributes as $k => $attribute) { $attribute_js[$attribute['id_attribute_group']][$attribute['id_attribute']] = $attribute['name']; natsort($attribute_js[$attribute['id_attribute_group']]); } $currency = $this->context->currency; $data->assign('attributeJs', $attribute_js); $data->assign('attributes_groups', AttributeGroup::getAttributesGroups($this->context->language->id)); $data->assign('currency', $currency); $images = Image::getImages($this->context->language->id, $product->id); $data->assign('tax_exclude_option', Tax::excludeTaxeOption()); $data->assign('ps_weight_unit', Configuration::get('PS_WEIGHT_UNIT')); $data->assign('ps_use_ecotax', Configuration::get('PS_USE_ECOTAX')); $data->assign('field_value_unity', $this->getFieldValue($product, 'unity')); $data->assign('reasons', $reasons = StockMvtReason::getStockMvtReasons($this->context->language->id)); $data->assign('ps_stock_mvt_reason_default', $ps_stock_mvt_reason_default = Configuration::get('PS_STOCK_MVT_REASON_DEFAULT')); $data->assign('minimal_quantity', $this->getFieldValue($product, 'minimal_quantity') ? $this->getFieldValue($product, 'minimal_quantity') : 1); $data->assign('available_date', ($this->getFieldValue($product, 'available_date') != 0) ? stripslashes(htmlentities($this->getFieldValue($product, 'available_date'), $this->context->language->id)) : '0000-00-00'); $i = 0; $type = ImageType::getByNameNType('%', 'products', 'height'); if (isset($type['name'])) { $data->assign('imageType', $type['name']); } else { $data->assign('imageType', ImageType::getFormatedName('small')); } $data->assign('imageWidth', (isset($image_type['width']) ? (int)($image_type['width']) : 64) + 25); foreach ($images as $k => $image) { $images[$k]['obj'] = new Image($image['id_image']); ++$i; } $data->assign('images', $images); $data->assign($this->tpl_form_vars); $data->assign(array( 'list' => $this->renderListAttributes($product, $currency), 'product' => $product, 'id_category' => $product->getDefaultCategory(), 'token_generator' => Tools::getAdminTokenLite('AdminAttributeGenerator'), 'combination_exists' => (Shop::isFeatureActive() && (Shop::getContextShopGroup()->share_stock) && count(AttributeGroup::getAttributesGroups($this->context->language->id)) > 0 && $product->hasAttributes()) )); } } else { $this->displayWarning($this->l('You must save the product in this shop before adding combinations.')); } } else { $data->assign('product', $product); $this->displayWarning($this->l('You must save this product before adding combinations.')); } $this->tpl_form_vars['custom_form'] = $data->fetch(); }
  3. Thank you. Sound logical. And also works. perfect. Thank you.
  4. Hello . I need allow customer to download 100-200MB file. But I can not upload file like this by standard prestashop function. Do any one knows a solution? module, codding ... anything. Or the max MB of upload file is just problem of hosting?
  5. it was problem of PHP version 5.2, when we changet it to 5.4 all works
  6. really thanks for you fast replay. You know, I know abut shipping rahges and additional shipping cost for erach product, however I still can not get proper solution. But as you mentioned maybe the onli solution will be to set the system as close as possible. thanks
  7. Hello. I have problem to configure the shipping cost. I have 2 kinds of products. Normal and large one. For normal product no problem, I set shipping cost for delivery - 4 €, so when some on put 1, 2 .. X common product to cart, the delivery will cost 4 € Then, I have large product, which need own price for shipping pre piece 6 €. So when the cart will look like an examples, also shipping cost should be like in examples Common product - glass 1pc, cup 1pc, knife 8pc - shipping cost 4€ Lagre product - tree 2pc - shipping 12 € (2x6€) Common + large product - glass 1pc, cup 1pc, knife 8pc - tree 2pc - shipping 16 € ( 4€ common product 2x6€ large ones) Does anyone have any ide how this can be set in presta with or without any module? Thanks.
  8. Hello. Once, without any touch to eshop, me eshop broke down ant just this error message is appearing: Parse error: syntax error, unexpected '[', expecting ')' in /home/do005700/www_root_wfy/modules/inixframe/InixModule.php on line 1557 the line 1557 is (also attachement) // Check field validator if ((isset($values['is_array']) && $values['is_array'])) { if (isset($values['requried']) and $values['requried'] and ( !Tools::isSubmit($field) or count(Tools::getValue($field)) == 0 or ! Tools::getValue($field))) { $this->errors[] = sprintf(Tools::displayError('fields %s is required!'), $values['title']); } elseif (Tools::getValue($field) && isset($values['validation'])) { foreach (Tools::getValue($field) as $f) { if (!call_user_func(['Validate', $validate_method], $f)) { $this->errors[] = sprintf( Tools::displayError('field %s is invalid.'), $values['title'] ); } } } } } Does enyone have any idea what could be wrong?
  9. good code, work also for 1.6.X just ad just onselectstart="return false" oncontextmenu="return false" ondragstart="return false" onMouseOver="window.status='..message perso .. '; return true;" to body tag. thank for sharing
  10. Thanks for reaction. I also try to search first , just the to write and also did not find any similar problem. Do you think that update can solve the problem?
  11. Hello. Notice: Undefined property: Autoload::$id_order in /home/dilussop/public_html/shop/controllers/front/OrderConfirmationController.php on line 160 Fatal error: Call to a member function getCustomerEmail() on boolean in /home/dilussop/public_html/shop/controllers/front/OrderConfirmationController.php on line 161 This error occurred on my shop. It is shown when you make an order and the order confirmation page should appears. The email order contirmation is received, in back office the order is normally proceeded. just instead of order confirmation this eerror occurred. It is PS 1.5.6.2 Can anyone advice what could it be?
  12. perfektné. dlho som testoval a hľadal nejaký čo funguje pre 1.6.X a tento funguje. dík.
×
×
  • Create New...