prestashop-1.6

Products default sort not working on search.tpl - Prestashop 1.6.0.6

纵然是瞬间 提交于 2019-12-24 21:08:25
问题 I set up in backoffice the default sort type to : in stock. this works for all pages except SearchController template file : search.tpl. What can be the causes behind such dysfunctionning? I really don't know what part of code to deal with. Thanks everyone who already met such issue for advices. Edit: I discovered that the link in the adress bar after click on search button is: website/index.phpcontroller=search&orderby=position&orderway=desc&search_query=design+40&submit_search=Rechercher

Db::Instance prestashop

二次信任 提交于 2019-12-24 17:32:59
问题 I added config.inc.php inside my php script in order to access to Db class provided. The problem is that when I launch the script from the server, it redicted to the website prestashop and then I can't see what I want to echo in the html page. More, I have made a error in order to see the behaviour: nothing is shown, he redirect to the prestashop website. Please help me. 回答1: SOLVED After lots of tests, the soloution is very easy. In order to use class from Prestashop service in my_own_file

Db::Instance prestashop

允我心安 提交于 2019-12-24 17:32:56
问题 I added config.inc.php inside my php script in order to access to Db class provided. The problem is that when I launch the script from the server, it redicted to the website prestashop and then I can't see what I want to echo in the html page. More, I have made a error in order to see the behaviour: nothing is shown, he redirect to the prestashop website. Please help me. 回答1: SOLVED After lots of tests, the soloution is very easy. In order to use class from Prestashop service in my_own_file

Adding product type in prestashop add product page

你。 提交于 2019-12-24 10:38:57
问题 Iam new to prestashop ,iam trying to add new product type in addition to Standard product,Virtual product ,Pack of existing products Added this in informations.tpl file < div class="radio"> <label for="digital_product"> <input type="radio" name="type_product" id="digital_product" {if $is_in_pack}disabled="disabled"{/if} value="{Product::PTYPE_DIGITAL}" {if $product_type == Product::PTYPE_DIGITAL}checked="checked"{/if} > {l s='Digital product (services, booking, downloadable products, etc.)'}<

Prestashop 1.6 - price saving issue.

六月ゝ 毕业季﹏ 提交于 2019-12-24 06:45:30
问题 In my Ecommerce site made in Prestashop version 1.6, when I update price of an item from administrative panel , it randomly gets affected. Sometimes the price change saved does not get implemented. The site is live and had been working so far but found this issue recently. 回答1: It's a bug of browsers: forge.prestashop.com This the post on the forum: PrestaShop forum This should be fix your problem: GitHub temporary fix The final fix (merged in the main project): GitHub full fix EDIT: A

PrestaShop: allow customers to upload PDF, AI and EPS files as product customization

懵懂的女人 提交于 2019-12-24 01:05:24
问题 I am running Prestashop 1.6.1.7 and I have the following pictureUpload() method that allows users to upload files of their choosing. By default Prestashop allows uploads of GIF, JPG, JPEG or PNG only. I'm trying to allow users the ability to upload a few more types (pdf, ai and eps specifically) Here is the pictureUpload() method in the productController override: protected function pictureUpload() { if (!$field_ids = $this->product->getCustomizationFieldIds()) { return false; } $authorized

specific price access in prestashop 1.6

本小妞迷上赌 提交于 2019-12-23 16:24:35
问题 I'm on prestashop 1.6 When I use this code in my product.tpl file there's no problem, and everything works correctly: {if $product->specificPrice.from_quantity==0} <img src="http://url/finish.png" >{/if} But the same code in the file, homefeatured.tpl gets an answer wrong I even changed the code to the following, but I still did not resolve the problem {if $product.specificPrice.from_quantity==0} <img src="http://url/finish.png" >{/if} or {if $product.specific_price.from_quantity==0} <img src

Check the cause of slow loading time among different server

天涯浪子 提交于 2019-12-23 07:43:52
问题 A e-shop has developed using perstashop and put to the three server: the first 2 is amazon, should be same setting Server 1: http://be-pure.com/en/women/3-slim-y-tank.html Server 2: http://52.77.216.83/en/women/3-slim-y-tank.html the last one is just local hosting Server 3: http://internal001.zizsoft.com/be_pure/en/women/3-slim-y-tank.html The problem is server 1 loading very slow compare to the other two server, but the performance should be the best among 3. It looks as if server 1 hasn't

Layered navigation wrong prices and range

做~自己de王妃 提交于 2019-12-23 05:12:05
问题 I am using Presta 1.6 and the blocklayered module to filter products by price value. However, the filters show wrong prices and range. What do I mean: When the range is between 5,95 and 6,25 I get products that are 5.40, 5,50 and even 4.90. I have tried to set the filtering options with and without tax but nothing changes. The prices that are shown are nowhere close to the "no tax price" of the products. The range of the filter is also wrong the $min-price and $max-price are close but not

Prestashop Handle post data in custom CMS form

坚强是说给别人听的谎言 提交于 2019-12-23 04:21:16
问题 I've developped a prestashop module that display a form, and now I want to use the POST data to store my data in the database. Following some tutorials I'm able to display the form and load some js file, but my question are two: What will be the action parameter of my form? How can i handle the post parameters, and where?? The structure of my module is this - root is /modules/mymodule/ dir: mymodule.php /views/templates/hook/mymodule.tpl /views/js/front.js Have i to insert a controller??