Jump to content

stimpy

Members
  • Posts

    45
  • Joined

  • Last visited

Posts posted by stimpy

  1. Om tijdens de registratie en het opgeven van het adres het huisnummer verplicht te maken + weergeven in het beheergedeelte:

     

    verander in classes/address.php

     

    'address2' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'size' => 128),

     

    door:

    'address2' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128),

     

     

     

    verander in themes/default/address.tpl

     

    {if $field_name eq 'address2'}

    <p class="required text">

    <label for="address2">{l s='Address (Line 2)'} </label>

    <input type="text" id="address2" name="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{else}{if isset($address->address2)}{$address->address2}{/if}{/if}" />

    </p>

    {/if}

     

    door:

     

    {if $field_name eq 'address2'}

    <p class="required text">

    <label for="address2">{l s='Address (Line 2)'} <sup>*</sup></label>

    <input type="text" id="address2" name="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{else}{if isset($address->address2)}{$address->address2}{/if}{/if}" />

    </p>

    {/if}

     

    verander in themes/default/authentication.tpl

     

     

    {elseif $field_name eq "address1"}

    <p class="required text">

    <label for="address1">{l s='Address'} <sup>*</sup></label>

    <input type="text" class="text" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" />

    <span class="inline-infos">{l s='Street address, P.O. box, company name, c/o'}</span>

    </p>

    {elseif $field_name eq "address2"}

    <p class="text">

    <label for="address2">{l s='Address (Line 2)'}</label>

    <input type="text" class="text" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}" />

    <span class="inline-infos">{l s='Apartment, suite, unit, building, floor, etc.'}</span>

    </p>

     

    door:

    {elseif $field_name eq "address1"}

    <p class="required text">

    <label for="address1">{l s='Address'} <sup>*</sup></label>

    <input type="text" class="text" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" />

    <!-- <span class="inline-infos">{l s='Street address, P.O. box, company name, c/o'}</span> -->

    </p>

    {elseif $field_name eq "address2"}

    <p class="required text">

    <label for="address2">{l s='Address (Line 2)'} <sup>*</sup></label>

    <input type="text" class="text" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}" />

    <!-- <span class="inline-infos">{l s='Apartment, suite, unit, building, floor, etc.'}</span> -->

    </p>

     

     

    verander in controllers/admin/AdminAdressesController.php

     

    $this->fields_list = array(

    'id_address' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),

    'firstname' => array('title' => $this->l('First name'), 'width' => 120, 'filter_key' => 'a!firstname'),

    'lastname' => array('title' => $this->l('Last name'), 'width' => 140, 'filter_key' => 'a!lastname'),

    'address1' => array('title' => $this->l('Address')),

    'postcode' => array('title' => $this->l('Postal Code/Zip Code'), 'align' => 'right', 'width' => 80),

    'city' => array('title' => $this->l('City'), 'width' => 150),

    'country' => array('title' => $this->l('Country'), 'width' => 100, 'type' => 'select', 'list' => $this->countries_array, 'filter_key' => 'cl!id_country'));

     

    door:

    $this->fields_list = array(

    'id_address' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),

    'firstname' => array('title' => $this->l('First name'), 'width' => 120, 'filter_key' => 'a!firstname'),

    'lastname' => array('title' => $this->l('Last name'), 'width' => 140, 'filter_key' => 'a!lastname'),

    'address1' => array('title' => $this->l('Address')),

    'address2' => array('title' => $this->l('Address (Line 2)'), 'width' => 50),

    'postcode' => array('title' => $this->l('Postal Code/Zip Code'), 'align' => 'right', 'width' => 80),

    'city' => array('title' => $this->l('City'), 'width' => 150),

    'country' => array('title' => $this->l('Country'), 'width' => 100, 'type' => 'select', 'list' => $this->countries_array, 'filter_key' => 'cl!id_country'));

     

     

    else if ($addr_field_item == 'address2')

    {

    $temp_fields[] = array(

    'type' => 'text',

    'label' => $this->l('Address').' (2)',

    'name' => 'address2',

    'size' => 33,

    'required' => false,

    );

    }

     

    door:

    else if ($addr_field_item == 'address2')

    {

    $temp_fields[] = array(

    'type' => 'text',

    'label' => $this->l('Address (Line 2)'),

    'name' => 'address2',

    'size' => 33,

    'required' => true,

    );

    }

     

     

     

    in de winkel vertalingen:

    winkel vertalingen -> address en authentication

    adres veranderen in: straat 

    adres (lijn 2) veranderen in: nummer / bus

     

    winkelachterkant vertalingen -> adminaddress

    Address 1 veranderen in: Straat

    Address (Line 2) veranderen in: Nummer / Bus

     

    veldnaam vertalingen -> address

    adres 1 veranderen in: straat 

    adres 2 veranderen in: nummer / bus
    • Like 1
  2. Hey guys,

     

    Mijn leverancier dropt dagelijks een up-to-date productbestand op mijn server. (+/- 8500 producten)

    Nu is het de bedoeling dat dit bestand na de nodige aanpassingen te maken, in PS wordt geïmporteerd.

    Met het importeren zelf heb ik wel enige ervaring. Maar niet met het automatiseren ervan.

     

    Mijn vraag is hoe ga ik hierbij best te werk?

    Het .csv bestand online aanpassen (command-line)

    Het .csv bestand lokaal aanpassen (macro's maken in open office)

     

    Verder zit ik nog met enkele vraagtekens hoe eea technisch op te lossen:

    Stel:ik voeg aan product A nog enkele extra gegevens toe. De volgende dag staat er een nieuw databestand klaar op onze server. Wanneer ik dit bestand importeer in PS, dan ben ik de extra gegevens die ik zelf heb toegevoegd weer kwijt.

    Hoe is dit op te lossen?

     

    Alle info is welkom!

    Bedankt om even mee te denken.

     

  3. 1- Replace the comma with an commonly unused character (don't use slash /). In my case, I used backslash --> \

    There's no need to replace de comma with another character!

    just make sure, you remove the last comma.

     

    ex.:

    feature1:featurevalue1,feature2:featurevalue2,

     

    generates an error

    When removing the last comma it will not.

     

    ex.:

    feature1:featurevalue1,feature2:featurevalue2

    • Like 1
  4. Ik heb in mijn shop 2 landen ingeschakeld (Nederland en België). Bij het registreren van een nieuwe klant staat het standaard land (Belgium) niet geselecteerd, maar staat dit op Netherlands. Wordt dit ergens in de vertalingen hard coded? In de database zie ik dat België standaard is, maar toch wordt Nederland als eerste weergegeven...

  5. Hi,

     

    I only have 2 countries enabled in my shop. Belgium (which is the default country) and the Netherlands.

    The database shows that Belgium in fact is default. (country ID 3 = Belgium) PS_COUNTRY_DEFAULT 3

     

    On a customer registration the pre-selected country is Netherlands.

    Is there any way to change this to Belgium?

    Can't find any reference of Netherlands in the database which I could change to Belgium...

     

    Kind regards

  6. When I enable CCC for CSS it brakes the layout of the standard theme in IE9.

    When disabling CCC for CSS the header looks fine again, only the product listing misses some CSS I guess.

    For speed issues I rather have CCC for CSS enabled.

     

    Earlier I had to remove this line from homefeatured.css also for css problems with the homefeatured module:

    filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476); /* IE6,IE7 */
    

     

    Seems to be a lot of CSS problems with the standard theme in IE9 !

     

    All help appreciated!

  7. This was kinda strange...

    When uploading a native prestashop as you suggested, the installation didn't mention any problems with my configuration. So the installation went smoothly.

    When uploading my local site to my domain, i got the 500 error. The problem seemed to be the rights of certain folders, which I had to chmod to 777.

    I think it's strange that the native prestashop installation didn't mention this?!

     

    I believe the problem was my server configuration. I changed php support (run as apache module) -> php support (run as FastCGI application)

     

    What do you advise on the apache modules and extensions?

     

    thans for helping me out!

  8. Hi,

     

    I recently moved from a shared server to a VPS.

    Everything seemed to work fine on the shared server, but when moving to the VPS I couldn't access my website anymore. (error 500)

     

    Maybe it's due to the server configuration (Debian 6.0.6). As I'm new to this VPS thing.

    So how to best setup a server for use with PrestaShop?

     

    Which apache modules te enable/disable

    Which PHP settings

    Which PHP extentions

     

    All help appreciated!

  9. Thanks Nemo1 for pointing me in the right direction!

     

    The problem seems to be the 45 degree transform function for new products.

    When deleting the line for IE6-7 in homefeatured.css

    filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476); /* IE6,IE7 */
    

    everything is ok in IE9. Not sure how it will look on these older browsers now?!

  10. Hello,

     

    I noticed that the add to cart button is not showing up in the homefeatured block.(PrestaShop 1.5.3.1)

    It seems to only work in IE9. Other browsers don't show the add to cart button.

     

     

    When I delete the lines of code for the button, it will still show the button on IE9.

    Also the title and the short description are running over each other. When truncating one of them, nothing changes...

     

    Force compile is on!

     

    Am I missing something?

     

     

    Kind regards

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More