Get User ID Prestashop


function get_user_id()
{
global $cookie;

$userid = NULL;
if (isset($cookie->id_customer))

{
$userid = $cookie->id_customer;
}

return $userid;
}

Why the user ID keep
return null even with login?

i have prestashop 1.5 installed on server A, on server B there is
prestashop 1.4 installed with thousands of products and database size
is about 500mb. I want to import all those products, categories,
customers and their addresses from 1.4 installation to 1.5
installation. I have access to both servers. CSV export for products
is taking like forever what should i do to import this all to 1.5.

Programming Languages

with prestashop 1.4.8, PHP 5.3 I want to do this in a
module.


$myVar = 'Vincent';
echo
$this->l($myVar);

I don't know why it doesn't
work, and what the 'real' difference with


echo
$this->l('Vincent')

I need to do this becose
labels comes from XML files from my own modules configuration
system.


any idea ?


Thanks you all.

Programming Languages
function get_user_id()
{
global $cookie;

$userid = NULL;
if (isset($cookie->id_customer))

{
$userid = $cookie->id_customer;
}

return $userid;
}

Why the user ID keep
return null even with login?

Programming Languages

I'm trying to display an error when the user submits data from a
form, but no error.


try putting in the driver (forcing you
to show me an error)
as follows


public function
postProcess()
{
$ this-> errors [] = Tools ::
DisplayError ('Invalid e-mail address');
}
/>

and in the template


{include file = "$ tpl_dir. /
errors.tpl"}
<form method="post"
action="{$request_uri|escape:'htmlall':'UTF-8'}" class="std"
id="form_confirmPassword">
<fieldset>
<p
class="text">
<label for="email"> {l s = 'E-mail'} </
l
Programming Languages
Prestashop + ResellerZoom ?
 
Does anybody
tries this bound? Have problems with emails sending. Hosting support
tells that is software problem, software support say that is something
with hosting :eek:
I try the same install on my other hosting -
everything is ok.
Development Tools & Services
Prestashop 1.3
 
Does anyone know where i can
find a Prestashop 1.3 theme for free been looking on google for them
but the few out there that i can find i dont like or the ones i do
like dont work with 1.3
Web Design

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow