how to get all attributes in prestashop



I need to get all attributes that exists in my Prestahop store not matter wich or what product is assigned I just want to generate a array of those attributes and then use them in ProductController.php class. I check the file classes/Product.php and a method called getDefaultAttribute($id_product, $minimumQuantity = 0) is present but I think this only works for attributes assigned to a specific product and not return all as I need. Any help? I'm newbie with Prestashop and need to learn a lot of things


Related to : how to get all attributes in prestashop
how to get all attributes in prestashop
Programming Languages

I need to get all attributes that exists in my Prestahop store not matter wich or what product is assigned I just want to generate a array of those attributes and then use them in ProductController.php class. I check the file classes/Product.php and a method called getDefaultAttribute($id_product, $minimumQuantity = 0) is present but I think this only works for attributes assigned to a specific product and not return all as I need. Any help? I'm newbie with Prestashop and need to learn a lot of things


Prestashop 1.5 - Import huge data(categories, products, customers, addresses) from another prestashop 1.4 installation,
Programming Languages

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.


prestashop $this->l
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.


creating a prestashop module trying to Show error on PrestaShop Module
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
What is the proper way to check for nulls when accessing attributes of attributes of attributes?
Programming Languages

In the common situation where classes are embedded as attributes of other classes, what is the best way to check for nulls?


To illustrate what I'm talking about, say I want to access this.getObject1().getObject2().someMethod() where getObject1() or getObject2() could return null. Right now I am doing the following, and it's ugly, and there has to be a better way:


if (this.getObject1() != null)
if (this.getObject1().getObject2() != null)
if (this.getObject1().getObject2().someMethod())
return whatever;

To avoid

Prestashop 1.3
Programming Languages
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


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .