Jump to content

ctech

Members
  • Posts

    17
  • Joined

  • Last visited

ctech's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. available_later' => 'isGenericName', seems to remove all the html so i just removed that from the array. that was very helpful thank you very much!!!!
  2. sure: "1","http://server17.hosting24.com/~semisane/product_img/TL-WR541G.jpg","TL-WR541G" ,"","TL-WR541G" and a picture of ps_product_lang row one. i think the available_later is the problem (edit) content of the DB before the insert/update
  3. so i manually put this" "Stocked in China into ps_product_lang::available_later field. the cvs import tool does some error checking and does not like html in this field..... what i didnt expect is if only update the fields name,id,img() that it would do error checking on whats already in the db, WOW. anywho i need to disable this error checking where do i start???
  4. ah i see, so the reference is product_id+some_index+size.jpg. so theres some php code that makes all these imgs and dumps in that folder...thanks i go play now
  5. i been looking around for a hour now and just can't find the file file reference for an image. i am setting up a direct connecting with filemaker and the prestashop DB, no more annoying imports or manual editing
  6. ok make a excel file call it something but make sure you name the excel sheet (your table prefix)_accessory in my case ps_accessory. id_product_1 will be you main product, id_product_2 is the related part that will show up in the accessories tab on the product detail page in the front office. two columns, the first row is optional id_product_1 id_product_2 10 9 10 58 10 41 10 38 10 13 10 17 10 14 10 27 9 22 9 58 9 21 9 52 now log into phpmyadmin. if hosting24 is your hosting provider point your browser http://ip:2082/3rdparty/phpMyAdmin/index.php select your database on the left select ps_accessory on the left click on import, pick your file and select skip first line if you used column headers. if everything goes well you now have related products in the accessories tab
  7. in what file is the html for add to card button box on the detail product page? this should be easy if i could just find the html and add link tag to it. a lot of parts we don't stock and they are in a warehouse in the states so i would like to change the text that displayed when an item is out of stock to contain a link to a CMS page explaining that a lot of special parts are none stock items and since there are imported from the stats there will be a two weeks delivery time.
  8. the * means this field is required. you need a name field in your .cvs for each item
  9. Is there a way you can link spare parts for a product, so when you look at the detail page for a product you see a list of all the parts that belong to that product?
  10. Thats pretty cool module. but i can't start spending money on this project until i spend more time with it and see that it can do everything we want.
  11. Hello, i am trying to do a mass attachment upload. looking AdminAttachemnts.php i don't see any database writes? but there is a table with attachement information. so my question is how does the meta data show up in the database? once i got this figured out i can ftp upload a bunch of attachments and then write a script to add the meta data to the database... public function postProcess() { if (Tools::isSubmit('submitAdd'.$this->table)) { if ($id = intval(Tools::getValue('id_attachment')) AND $a = new Attachment($id)) { $_POST['file'] = $a->file; $_POST['mime'] = $a->mime; } if (!sizeof($this->_errors)) if (isset($_FILES['file']) AND is_uploaded_file($_FILES['file']['tmp_name'])) { if ($_FILES['file']['size'] > $this->maxFileSize) $this->_errors[] = $this->l('File too large, maximum size allowed:').' '.($this->maxFileSize/1000).' '.$this->l('kb'); else { $uploadDir = dirname(__FILE__).'/../../download/'; do $uniqid = sha1(microtime()); while (file_exists($uploadDir.$uniqid)); if (!copy($_FILES['file']['tmp_name'], $uploadDir.$uniqid)) $this->_errors[] = $this->l('File copy failed'); @unlink($_FILES['file']['tmp_name']); $_POST['name_2'] .= '.'.pathinfo($_FILES['file']['name'], PATHINFO_EXTENSION); $_POST['file'] = $uniqid; $_POST['mime'] = $_FILES['file']['type']; } } $this->validateRules(); } return parent::postProcess(); }
  12. RTFM, didn't delete the /install folder i don't have the domain name yet for the site and wont have it for some time. error Path is not the same between your browser and you server : - Server: home/semisane/public_html/admin487/login.php - Browser: ~semisane/admin487/login.php is there a way around this?? kind regards ctech
×
×
  • Create New...