prestashop

How to set ownership for apache under linux (centOS)?

耗尽温柔 提交于 2019-12-11 18:05:19
问题 I want to install and use prestashop but now it only works correctly when I set permissions to 777 (I can login to the server via shell with root privileges). While installing I get this error "recursive write permissions for apache user on..." and only works for permissions set to 777. I don't like this idea because after installation I can't even change back to 755 or 775. I also get problem partly solved when I change the user ownership to apache but then I can't do anything with my ftp

Prestashop add product error : Property Product->link_rewrite is empty

ⅰ亾dé卋堺 提交于 2019-12-11 16:41:52
问题 hello i'm tring to add new product to my prestashop store using REST api , but when i send my xml request i have this response: Validation error: "Property Product->link_rewrite is empty" !!! this is my xml request : xml=<?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <product> <id/> <id_manufacturer/> <id_supplier/> <id_category_default/> <new/> <cache_default_attribute/> <id_default_image/> <id_default_combination/> <id_tax_rules_group/> <type/

Replace menu item with icon (Prestashop theme)

…衆ロ難τιáo~ 提交于 2019-12-11 15:05:55
问题 I'd like to ask you about the way to replace the text with icon (home icon as the first menu child). My css is similar to this one: http://livedemo00.template-help.com/prestashop_53577/ I've added this code at the end of the global.css: .sf-menu li:first-child a:before{ content: "\f015"; font-family: "FontAwesome"; display: inline-block; font-size: 33px; line-height: 70px; color: black; } .sf-menu li ul li a:before{ content:none!important; } which gives: What's the best way to hide the text

Prestashop 1.6 - free shipping based on final total price

人盡茶涼 提交于 2019-12-11 12:01:55
问题 I am using prestashop 1.6. My site is offering "free shipping" for purchases over 80 bucks . My site is also having a promotion of "Buy 1 get 1 free". Now, one item can cost about 60 bucks and I insisted the customer to buy 2 products from the same category in order to be entitled for buy 1 get 1. If a customer buys one product, it should cost 60 bucks (no free shipping because final price < 80) If a customer buys 2 = 120 bucks but after the "buy 1 get 1 free" promotion, the final total price

How to send this PUT-request to prestashop?

喜欢而已 提交于 2019-12-11 11:45:01
问题 I am working with Prestashop web service. I am trying to send a PUT (update) request to the API but with no luck. My request seems to be set up in the 'wrong' way (i.e. not in the way the server expects) Since Prestashop is open-source I took a look at the source code, specifically when it recieves a PUT request it does the following (I don't write php-code): $input_xml = null; // if a XML is in PUT or in POST if (($_SERVER['REQUEST_METHOD'] == 'PUT') || ($_SERVER['REQUEST_METHOD'] == 'POST')

Prestashop product update hook is not updating product attributes in the hook function

别等时光非礼了梦想. 提交于 2019-12-11 10:14:23
问题 I am using hookActionProductUpdate . I am getting all data updated but not attributes. This is the code inside hook function: public function hookActionProductUpdate($params) { $prestaObject = new ProductCore($params['id_product'], false, Context::getContext()->language->id); $arrrs = $prestaObject->getFrontFeatures(1); } Everything else is updated but the front features I am getting are the older one. Any IDEA? EDIT : I tried this too, here is my new function: public function

Prestashop on delivery select hide/show payment method

☆樱花仙子☆ 提交于 2019-12-11 09:26:17
问题 I'm trying to figure out how to show/hide payment method on delivery method select. I tryed couple solutions but it didn't worked for me. One of them is this one: <script> $(document).ready(function(){ toggleFields(); $('.delivery_option_radio').on('change', function() { toggleFields(); }); }); function toggleFields() { if ($('#delivery_option_3_0').is(':checked')) { alert("Selected") } else { alert("Not Selected"); } } </script> Problem is that it works just 2 times. Example: Page loads,

unknown tag “l” in smarty prestashop

五迷三道 提交于 2019-12-11 09:15:34
问题 We are developing a module in prestashop. At a place, we need to define new smarty object to create and fetch new template. This is working fine but when we using language variable in that custom smarty template then its giving us error for unknown tag "l" in tpl file. Below are code in which we are getting error: In module controller: class MymoduleTestModuleFrontController extends ModuleFrontController { function initContent(){ $this->context->smarty->assign('temp', $this->test()); $this-

RedirectMatch old product urls (without ID) to new url with basic (using ID) structure

独自空忆成欢 提交于 2019-12-11 08:07:27
问题 I'am facing a problem with our PrestaShop 1.7.5 installation. About 2 weeks ago, I tried to upgrade our PrestaShop version (from 1.7.4 to 1.7.5). Unfortunately 1 important module is not working any longer (override of the dispatcher is outdated), this module generates SEO-friendly URLs, without ID's in the URL, like this: domain/{category}/{rewrite} We prefer to do no roll-back and are considering two options. Option 1: Redirect all old product URLs to the new URLs Old url format: domain/

Prestashop Product customizer

风流意气都作罢 提交于 2019-12-11 07:53:52
问题 I have an application which is a T-Shirt customizer which works very good on it's own. But I need to integrate it into prestashop. So after a user uses the application to customize a t-shirt he has to click Add to cart and the product will be added to cart with a custom price and description. What I need is for this output to be injected into the PrestaShop cart as a custom product with all the custom information and also the generated custom product image to display next to the details in