prestashop

Strange Characters in database text: Ã, Ã, ¢, â‚ €,

谁说我不能喝 提交于 2019-11-27 15:38:01
问题 I'm not certain when this first occured. I have a new drop-shipping affiliate website, and receive an exported copy of the product catalog from the wholesaler. I format and import this into Prestashop 1.4.4. The front end of the website contains combinations of strange characters inside product text: Ã, Ã, ¢, â ‚ etc. They appear in place of common characters like , - : etc. These characters are present in about 40% of the database tables, not just product specific tables like ps_product_lang

Prestashop: add customized product to cart

て烟熏妆下的殇ゞ 提交于 2019-11-27 15:24:12
问题 I'm writnig a custom controller for Prestashop. It is suposed to do a simple task: 1. Create a new cart if it wasn't created (working fine) 2. Get attribute ID from database (working fine) 3. Assign customization (one text field) 4. Add this product to cart. My current code: $idProduct = 1; // for me it's always one $qty= 1; // always add one item $text = (string)Tools::getValue('textField9'); // string of text customization $attribute = (int)Tools::getValue('sel_combination'); // atribute

Prestashop cant login in admin

情到浓时终转凉″ 提交于 2019-11-27 15:13:23
问题 Several days ago I couldn't access the admin panel on my site based on prestashop platform. After entering login and password, I was redirected to login page again and everything repeated. The site is hosted on a dedicated server, where some other prestashop sites I am developing are hosted too. After trying to access the admin panel on these sites I get the same "error". What do you think, what is problem? Prestashop ver.: 1.4.7.3 and 1.4.8.2 Server: CentOs, PHP 回答1: Here is some things you

Using PHP code in Smarty tpl FIle

笑着哭i 提交于 2019-11-27 15:04:48
I am new to smarty and I want to use php code in template file i-e tpl file. I have seen the documentation and searched on google but could not find how to use php code they say we need to configure smarty to allow php execution but could not find how to do it. Kindly help me in this regard. Thanks Easy as boiling an egg! {php}echo "hello!"{/php} Second link down , for reference. Edit as of Smarty 3.1: As of Smarty 3.1 the {php} tags are only available from SmartyBC . Source: http://www.smarty.net/docs/en/language.function.php.tpl softnwords Find the file smarty.class.php in your host

Show my module JS at footer in prestashop

我的梦境 提交于 2019-11-26 21:59:25
问题 I am developing a module in prestashop. I have a JS for configuration page for my module. I am using displayBackOfficeHeader hook to add my JS in header. But after installing my module when i configure my module it's give me Jquery issue because my JS in adding at top means before jquery.js Que 1) How to manage that my JS should add in header after Jquery.js ? Que 2) If we can't manage same as que Ist then how to add JS in footer? 回答1: In most cases to add any asset (JavaScript or CSS) to a

How to create a new page in prestashop admin panel?

萝らか妹 提交于 2019-11-26 21:22:21
问题 how to create a new page in prestashop admin panel? I tried using creating a new admin controller file and in that set the template path and i created a menu using admin panel and there i mentioned the controller class name for that menu. when i try to open that menu it always shows that controller not found. can anyone help me, how to create a new page in prestashop admin panel? am using PS 1.5 version. <?php class AdminPageController extends AdminController { public function __construct() {

Add field in product Prestashop 1.7

感情迁移 提交于 2019-11-26 17:11:36
问题 Why is prestashop don't save my modification into database? Using prestashop 1.7 /override/classes/Product.php class Product extends ProductCore { public $por_gan; public function __construct ($idProduct = null, $idLang = null, $idShop = null) { $definition = self::$definition; $definition['fields']['por_gan'] = array('type' => self::TYPE_INT, 'required' => false); parent::__construct($idProduct, $idLang, $idShop); } } In ProductInformation.php ->add('por_gan', 'Symfony\Component\Form