prestashop

Prestashop 1.7 Customer Password Encryption?

旧城冷巷雨未停 提交于 2019-12-08 07:56:03
问题 I made some third party system based with php for Prestashop 1.6. It works with connecting directly the Prestashop Database. And know Im upgraded my Presta to 1.7.5.1 and IT WORKS. Only It dont log in customers anymore because as I can see Password encryption is changed. I was using md5(COOKIE_KEY.'password') for 1.6, but I see the passwords on 1.7 nothing like md5. Could you tell me how encryption is. (it become much better if you tell me with php code) Prestashop 1.7.5.1 $2y$10

Prestashop custom page with own template

空扰寡人 提交于 2019-12-08 06:43:21
I am running my own prestashop theme and want to add a new page without the css. Therefore I added the three files php, controller and template. I placed the php in the root directory of my prestashop, added the controller to root/controllers/front and placed the template in root/themes/my-theme. If I call http://localhost/prestashop/?page=custom-page , I see the index start page, If I call localhost/prestashop/custom-page, I get a HTTP 404. Can someone help me to get my page displayed? PHP: <?php include(dirname(__FILE__).'/config/config.inc.php'); Tools::displayFileAsDeprecated(); include

PrestaShop Admin Module Controller Not Found

浪尽此生 提交于 2019-12-08 06:42:58
问题 I am creating a controller into module folder and my module folder name is "productarticle" and my controller file "AdminProductarticleController.php" exist into path: "productarticle/controllers/admin". The code of controller is mentioned below: class AdminProductarticleController extends ModuleAdminController { public function __construct() { echo Tools::getValue('id_product'); } } And I am trying to access this controller by using below URL: http://myshost/admin/index.php?fc=module&module

Adding Javascript code to specific pages using Prestashop Module

若如初见. 提交于 2019-12-08 06:27:49
问题 I'm developing a custom Prestashop Module. The requirement is simple: Add a predefined block of javascript code to specific sections of the shopping process. Those are: Home page Product page Product added to cart Purchase completed The code will be specific to each page. I already read the basics of module development, but I can't find documentation for this specific functionality. I already have a working module that is installable and configurable from the back office admin. I'm assuming I

Cart products dissapear on refresh page Prestashop

好久不见. 提交于 2019-12-08 05:15:46
问题 since some weeks I have a problem with my Prestashop 1.4.0.12 When I add a product to cart, ajax works correctly and add the product very well. But, if I change page, or sometimes adding a product, the cart change deleting all products on refresh a new page. Sometimes I can move within some pages, but dissapears the products of the cart and later if I have a new cart returns to the old cart. Anybody knows about it? I think that the problem is on id_guest but I need to know if anyone have some

Create order with PrestaShop's API

允我心安 提交于 2019-12-08 03:26:25
问题 I have a PrestaShop 1.6.0.9 and I'm trying to create a new order. I'm following the following steps: Create a cart with the security key of the client I have previously created, the id of the product I want to buy and the quantity. Then create a new order (sending a POST to /api/order ), passing the client id, the security key, the product id, the prices (with and without taxes), etc... This is the entire XML that I send: <?xml version="1.0" encoding="UTF-8"?><prestashop><order> <id_address

Prestashop root directory

只谈情不闲聊 提交于 2019-12-08 02:14:56
问题 I am working with prestashop and in the theme I have added my own directory with a stylesheet inside it I have then linked the stylesheet in header.tpl eg <link rel="stylesheet" type="text/css" href="/directory/style.css" /> however If i install prestashop in a subdirectory eg www.website.com/prestashop/ then the style is not showing because it thinks the root of the site is www.website.com. is there a pretsashop string I can use to echo the directory prestashop is installed in? eg something

Updating order status in Prestashop via webservice api

佐手、 提交于 2019-12-07 22:50:14
问题 What am I doing wrong here? First I make a request to get an existing order and I change the value of current_status field in retrieved xml. Then I make a PUT request with modified xml as a parameter but I get something like this in response: <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <errors> <error> <code><![CDATA[127]]></code> <message><![CDATA[XML error : String could not be parsed as XML XML length : 2864 Original XML : xml=%3C%3Fxml

How to add image during programmatic product import in prestashop?

社会主义新天地 提交于 2019-12-07 18:16:36
问题 I can't find a proper documentation on adding images during product inserting. Here is the working code of my xml product import script. I have no idea how to add product images also while adding a product. foreach ($xml->Products as $product_xml) { if ($product_xml->Valid_internet_product == 1) { /* Update an existing product or Create a new one */ $id_product = (int)Db::getInstance()->getValue('SELECT id_product FROM '._DB_PREFIX_.'product WHERE reference = \''.pSQL($product_xml->Reference)

Prestashop Endless Spinning Product Save Button

﹥>﹥吖頭↗ 提交于 2019-12-07 16:12:33
问题 I was running Prestashop 1.6.1.1. The product save buttons would take about 45seconds to load. I upgraded to 1.6.1.3 and they now don't load at all. I tried rolling back and upgraded to 1.6.1.4. I deleted Smarty Cache, Deleted Chrome's history, cookies etc. I tried on multiple computers at work. I replaced admin/theme and controller folders with 1.6.1.4 directly. When I inspect the Network requests I see a handful of the tabs are not loading and get 500 errors and one with 404. The product