Jump to content

5haun

Members
  • Posts

    185
  • Joined

  • Last visited

Profile Information

  • Location
    South Africa
  • Activity
    Developer

Recent Profile Visitors

9,009,984 profile views

5haun's Achievements

  1. I don't really have answers for your questions however, this module seems to have more options and a working demo: https://addons.prestashop.com/en/shipping-costs/29332-advanced-shipping-cost-plus.html You can also check out this addons category: https://addons.prestashop.com/en/523-shipping-costs
  2. This module will probably do what you want: https://addons.prestashop.com/en/shipping-costs/20858-table-rate-shipping-shipping-by-zip-code-kahanit.html Here's the price formulas: https://www.kahanit.com/documentation/table-rate-shipping-prestashop/price-formula Email the module dev directly and ask him what which formulas to use for your circumstance
  3. If I upload say 2000 images to 1 specific product, will it crash?
  4. I would like to add a 'supplier name' column the stock movement page. How do I achieve this? I actually managed to successfully do something similar on the product page by creating an override. Here's the code for that if it helps at all: class AdminProductsController extends AdminProductsControllerCore { public function __construct() { parent::__construct(); $this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'manufacturer` m ON (m.`id_manufacturer` = a.`id_manufacturer`) LEFT JOIN `'._DB_PREFIX_.'supplier` AS supp ON (supp.id_supplier = a.`id_supplier`) LEFT JOIN `'._DB_PREFIX_.'product_supplier` ps ON ( a.id_product = ps.id_product AND ps.id_product_attribute = 0 )'; $this->fields_list['manufacturer_name'] = array( 'title' => $this->l('Manufacturer'), 'filter_key' => 'm!name', 'orderby' => true, ); $this->fields_list['supp'] = array( 'title' => $this->l('Supplier'), 'filter_key' => 'supp!name' ); $this->fields_list['product_supplier_reference'] = array( 'title' => $this->l('Supplier Reference'), 'align' => 'left', 'filter_key' => 'ps!product_supplier_reference' ); } }
  5. Create AdminProductsController.php in /override/controllers/admin/ Copy and paste this code in the file: <?php /* Override AdminProductsController.php to show Manufacturer, Supplier and Supplier Reference column filters on the product list controller */ class AdminProductsController extends AdminProductsControllerCore { public function __construct() { parent::__construct(); $this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'manufacturer` m ON (m.`id_manufacturer` = a.`id_manufacturer`) LEFT JOIN `'._DB_PREFIX_.'supplier` AS supp ON (supp.id_supplier = a.`id_supplier`) LEFT JOIN `'._DB_PREFIX_.'product_supplier` ps ON ( a.id_product = ps.id_product AND ps.id_product_attribute = 0 )'; $this->fields_list['manufacturer_name'] = array( 'title' => $this->l('Manufacturer'), 'filter_key' => 'm!name', 'orderby' => true, ); $this->fields_list['supp'] = array( 'title' => $this->l('Supplier'), 'filter_key' => 'supp!name' ); $this->fields_list['product_supplier_reference'] = array( 'title' => $this->l('Supplier Reference'), 'align' => 'left', 'filter_key' => 'ps!product_supplier_reference' ); } } 3. Clear cache in Advanced Parameters > Performance Only tested in 1.6.1.x
  6. Hi All How do I change the Mail Alerts module to send and email to a specific email address when a product comes back in stock? I basically want to the alert to go to me rather than the customer who subscribed. I am going to buy another module that lists all the customers who subscribed and then manually email them myself.
  7. I have some products that are disabled and when I add stock to the product and the a customer has already subscribed to stock notifications, they still get an email. The problem with that is that when they go and look for the product it's not there. How can I stop the Mail Alerts module from sending out mail to customer when stock is available IF the product is disabled? What should I change the code to in the mailalerts.php? Thanks.
  8. Go to config/defines.inc.php and turn on error reporting define('_PS_MODE_DEV_', true);
  9. Did you change the URL under Preferences > SEO & URLs ?
  10. If you are using advanced stock management check which carriers are selected for each warehouse under Stock > Warehouses. Also check which warehouse is selected for each product. That's all I can think of
  11. Ok I fixed it Changed lines 318 - 320 in /classes/stock/StockManager.php to 'id_employee' => (int)$context->employee->id ? (int)$context->employee->id : (int)$id_employee, 'employee_firstname' => $context->employee->firstname, 'employee_lastname' => $context->employee->lastname, And line 240 in /classes/order/OrderHistory.php to (int)$this->id_employee
  12. Hi All I hope someone can help me here. I am using a payment module called Payfast and when I create an order and select it as the payment method, the order is created with two hyphens "--" as the payment status instead of the "Payment Accepted". No email is sent to the customer either. Here is the error_log inside the Payfast module folder: PHP Notice: Trying to get property of non-object in /classes/stock/StockManager.php on line 318 PHP Notice: Trying to get property of non-object in /classes/stock/StockManager.php on line 318 PHP Notice: Trying to get property of non-object in /classes/stock/StockManager.php on line 319 PHP Notice: Trying to get property of non-object in /classes/stock/StockManager.php on line 319 PHP Notice: Trying to get property of non-object in /classes/stock/StockManager.php on line 320 PHP Notice: Trying to get property of non-object in /classes/stock/StockManager.php on line 320 PHP Fatal error: Uncaught exception 'PrestaShopException' with message 'Property StockMvt->id_employee is empty' in /classes/ObjectModel.php:909 Stack trace: #0 /classes/ObjectModel.php(246): ObjectModelCore->validateFields() #1 /classes/ObjectModel.php(487): ObjectModelCore->getFields() #2 /classes/ObjectModel.php(445): ObjectModelCore->add(true, false) #3 /classes/stock/StockManager.php(335): ObjectModelCore->save() #4 /classes/order/OrderHistory.php(241): StockManagerCore->removeProduct('782', '0', Object(Warehouse), 1, '3', true, 15419, 0, NULL) #5 /classes/PaymentModule.php(682): OrderHistoryCore->changeIdOrderState(2, Object(Order), true) #6 /modules/payfast/validati in /classes/ObjectModel.php on line 909 If I use the bank wire module I do not get any errors I am using PS v1.6.1.6
  13. I tried that and it threw this error: Fatal error: Cannot use object of type Product as array in /home/xxxxx/public_html/xxxxx/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 61 I actually wanted it in my mega menu module and when I put it in there I get: Notice: Undefined index: product in /home/xxxxx/public_html/xxxx/cache/smarty/compile/1b/97/2b/1b972be53e916c5c7decc7d16256cdba7f3e2a08.file.iqitmegamenu.tpl.php on line 61 Anything else?
×
×
  • Create New...