Jump to content

rubenvincenten

Members
  • Posts

    21
  • Joined

  • Last visited

Profile Information

  • Location
    Netherlands
  • Activity
    Developer

rubenvincenten's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

2

Reputation

  1. Opgelost, in het geval dat iemand de oplossing nodig heeft: <?php class AdminOrdersController extends AdminOrdersControllerCore { function __construct() { parent::__construct(); /* * Add tax_free to the main query for the list. * Tax_incl / tax_excl are re-added so they don't break. */ $this->_select .= ', a.`total_paid_tax_incl`, a.`total_paid_tax_excl`, a.`total_paid_tax_incl` = a.`total_paid_tax_excl` as `tax_free`'; /* * Define the column for tax free. */ $tax_free = array( 'title' => $this->l('Tax free'), 'width' => 25, 'align' => 'center', 'type' => 'bool', 'tmpTableFilter' => true, 'icon' => array( array( 'src' => 'blank.gif', 'alt' => $this->l('Tax paid'), ), array( 'src' => 'enabled.gif', 'alt' => $this->l('Tax free'), ), ), 'orderby' => false ); /* * Add the column after the "total paid incl. Tax" column. */ $fields_list = array(); $inserted = false; foreach ($this->fields_list as $k => $v) { $fields_list[$k] = $v; if ($k == 'total_paid_tax_incl') { $fields_list['tax_free'] = $tax_free; $inserted = true; } } /* * If no "total paid incl. Tax" column was found, append it instead. */ if (!$inserted) { $fields_list['tax_free'] = $tax_free; } $this->fields_list = $fields_list; } }
  2. Hoi Alex, Daar kan ik een simpel antwoord op geven, namelijk dat de map "modules" niet schrijfbaar is, en dat dat betekent dat prestashop de configuratie van de modules(je ziet overal config.xml staan) die afhankelijk zijn van ideal niet kan bijwerken. Wat je even moet doen is in je FTP programma de eigenschappen van de map "modules" openen en de modus op "777" zetten. Zorg ervoor dat "recursief" aanstaat voor zowel mappen als bestanden.
  3. Nee, om de tekst op de homepage aan te passen moet je de css van de module "Homepage tekst" bewerken. Je moet dan deze handleiding volgen: http://doc.prestashop.com/display/PS15/Overriding+default+behaviors#Overridingdefaultbehaviors-Overridingamodule'sbehavior De mapnaam van de module is "editorial" Je zegt hier dat de achtergrond precies wit moet zijn. Als je achtergrond naar bijvoorbeeld pastelblauw wilt veranderen (#F0F8FF) zet je dit neer: body{ font:normal 11px/14px Arial, Verdana, sans-serif; color:#222; background:#F0F8FF } body.content_only { background: #F0F8FF; }
  4. Dat stuk css code geeft nergens aan dat er een alternatieve lettergrootte moet gebruikt worden, dat betekent dat de regel automatisch de eigenschappen overerft (vandaar de afkorting cascading style sheets). Om een aangepast lettergrootte in te stellen voor alles binnen dat stuk in de HTML zet je dus gewoon neer: #categories_block_left{font-size:16px} Voor de 6 digit kleurcode zou ik exact moeten weten hoe het er staat. Een 3 digit kleurcode zoals #f00 wordt eigenlijk altijd uitgebreid naar #ff0000 door de browser.
  5. Hallo, Op de ene of andere manier kunnen klanten bij ons bestellen zonder BTW te betalen. Ik neem aan dat dit wordt geregeld d.m.v. de module "Europees BTW Nummer". Dit is verder prima, op de factuur staat dan "vrijgesteld van BTW". Mijn vraag hierbij, is hoe ik het voor onze boekhouder makkelijker kan maken om onderscheid te maken tussen facturen met/zonder BTW betaald. Ik heb in het overzicht van orders gekeken, maar ik zie alleen de vermelding staan in de factuur zelf. Ik zat zelf te denken om een kolom in te voegen in het overzicht, maar ik heb geen idee waar de juiste template files staan en/of de vermelding is toegewezen aan smarty (en hoe heet de vermelding in smarty dan ?). Wie zou me kunnen helpen?
  6. Hoi Alex, Zoals je misschien wel of niet weet is de achtergrondkleur van een website meestal ingesteld in de stijlregels van "body". In dit geval ook, kijk maar naar regel 53 van global.css Let wel op dat de gehele standaard layout van prestashop gebaseerd is op een witte achtegrondkleur. Je kan natuurlijk de achtergrondkleur veranderen, maar het zal er (naar mijn mening) niet mooier op worden als je daarna niet controleert welke pagina's en/of elementen bijgewerkt moeten worden.
  7. Hallo Alex, welke kleur bedoel je precies? Achtergrond kleur? Tekst kleur? Kleur van het menu? Iets specifieker omschrijven graag. De letters van block categorie kan je aanpassen door te zoeken naar categories_block_left in global.css. Als je firebug gebruikt kan je zien waar elke stijlregel vandaan komt. Succes!
  8. Yes, paypal is as far as I can see the only module with this issue.
  9. Like title states.. When I select Italian as install language, and I select english as my backend language, I get the paypal backend in italian. We work with an Italian client and I can not speak/read italian myself, so I need the backend to be english... Fresh prestashop version 1.5.4.1, paypal module version is 3.5.1.
  10. So we are going to upgrade to 1.5 soon from 1.3.5. Previously we used an external tool to update the stock for our shop. We did this with a simple query over an ajax request. (Offcourse the code below is stripped of any weird propiarity framework code we internally use) mysql_connect('localhost','****','****'); mysql_select_db('*****'); $q = (int) $_POST['q']; $id = (int) $_POST['id']; if(!$id) die; mysql_query("update product set quantity = $q where id_product = $id"); die(''); Now with the multistore environment, I'm afraid this won't work anymore as I think we need to set the quantity per shop or group. We only have one "warehouse" and we want multiple shops to use the same quantity. We do not use any product attributes and/or combinations. Please enlighten me how I can do this. My boss doesn't want to use the stock manager that is included within prestashop as we have used an external tool since like forever. Can I just do a simple query like this: mysql_connect('localhost','****','****'); mysql_select_db('*****'); $q = (int) $_POST['q']; $id = (int) $_POST['id']; if(!$id) die; mysql_query("update product set quantity = $q where id_product = $id"); mysql_query("update stock_available set quantity = $q where id_product = $id"); die(''); Or do I need to do additional work?
  11. Hallo, Ik kwam er zojuist met grote verbazing achter dat prestashop vanaf 1.5 geen mailtjes in de map /mails heeft staan (map mails/nl/). Weet iemand waar ik dit kan downloaden of moet ik ze zelf vertalen?
  12. Haha, I'm glad this worked. This is a known problem when installing modifications/modules that are compressed, and not just for prestashop
  13. Have you checked if the module directory is correct? Sometimes when you unzip a file it extracts the module in a subdir. You should have at least the file modules/<nameofmodule>/<nameofmodule>.php It might be that you uploaded as modules/<nameofmodule>_v1.0/<nameofmodule>/<nameofmodule>.php or something. In other words, each module has a php file with the same basename as the module folder name..
  14. The module lists itself as compatible with PrestaShop v1.3.0.1 - v1.5.2.0. WHo told you it was compatible with PS 1.2?
×
×
  • Create New...