Search the Community
Showing results for tags 'Default'.
-
Tutorial: product tabs in 1.6 As you probably noticed - in prestashop 1.6 tabs on product page are displayed as a wide horizontal bars. These sections don't look like real tabs (like it was in prestashop 1.5 and in other old releases of prestashop). In this guide i want to show you how to change the way of how these tabs are displayed. full step by step guide you can find here: product tabs in 1.6
- 88 replies
-
- 11
-
I updated my product comments rating stars default from 3 to 5 using this advice here and this file. /your site/themes/your theme/modules/productcomments/views/templates/hook/post-comment-modal.tpl I followed these instructions and i too have the issue when you click a second time to open the review window it defaults back to 3. Any solutions?
-
Hi there! First of all: I'm using version 1.7.4.4. Situation: I create a combination product with 6 combinations and - for example - 4 images: the cover image to illustrate all possibilities, the image of combination 1+4, the image of combination 2+5 and the image of combination 3+6. However, the cover image to illustrate all possibilities is never shown... All combinations are only linked to the correct image of that combination to improve the interpretation. As one of the combinations is (always?) set as the default combination (for example combination 6), the image of combination 6 is always shown in the product list at the front end. How can I force the cover image of the main information to be shown instead of the default combination image in the product list as a useful trigger to understand all possible combinations? Thanks is advance!
- 15 replies
-
- combinations
- 1.7.4.4
-
(and 5 more)
Tagged with:
-
I'm trying to migrate from prestashop 1.6 to 1.7 One of the differences is that the product condition is not displayed on the product page by default to customers. For some reason the tick box on the options tab for the display of the product condition in the back office is not ticked by default. How do I change the default to display the product condition? I know I could make mass changes to products in the database, but that's not a sensible or sustainable approach in the long term. Am I missing something in the configuration of prestashop 1.7?
-
Hi, I'd like to change the display of my backoffice. Indeed, when I log in it's the button "All Shops" which is selected at the top right. But I'd like to come to a specific shop and not to "All shops". For information, I have already selected my shop as a default shop in Advanced Parameters > Multishop Thanks for help. Have a good day, Axel
-
- backoffice
- admin
-
(and 5 more)
Tagged with:
-
Hello, I have Prestashop 1.7.3.2 version installed but I have an issue regarding product combination images. Basically, let's say I have a product with two combinations. The default combination is loaded, each combination has an image assigned, but when I change the combination, it changes the combination, price and the rest of details excepting the image. The only way it works is when I click on the non-default combination image and then click on the default combination. In this situation, the image changes to the default one. What can be the issue? It is a bug from Prestashop? I created new products, new attributes, enabled/disabled friendly URL, changed the format of the "Route to products" field, having no errors in the console.
- 1 reply
-
- prestashop
- 1.7.3.2
-
(and 4 more)
Tagged with:
-
Recently I discovered a problem with combinations in multishop context. First of all, the error : Duplicate entry '339-1' for key 'product_default' UPDATE ps_product_attribute a INNER JOIN ps_product_attribute_shop product_attribute_shop ON (product_attribute_shop.id_product_attribute = a.id_product_attribute AND product_attribute_shop.id_shop = 2) SET a.default_on = '1', product_attribute_shop.default_on = '1' WHERE a.id_product_attribute = 932 Now, I will explain how I did it : Prerequisites : Multishop option activated At least 2 shops Combinations enabled Steps to producing error again : Context : All shops Create a product Context : a specific shop Associate the product to a shop's category Add a combination for this product This combination is now the default one Context : another specific shop Associate the product to a shop's category Add another combination Doh! ERROR! Indeed, the product already has a default attribute but it does not exist in the actual context. Code side now : In ProductCose class (Product.php), the error is raised when «checkDefaultAttributes» is called. Searching default attribute in associated shop table. If it exists it's ok, the method return TRUE. If product does not have attributes, ok, it's returning FALSE. «ObjectModel::updateMultishopTable» is called but there is an index «product_default» in the DB table «product_attribute». It's impossible to have two different default attribute for a product attribute. It sounds like we cannot have different combinations for the same product in different shops. If it is the wanted purpose, I am wondering why the «product_attribute» table has an associated shop table… If it is not, the index «product default» may be on the «product_attribute_shop» table. Oh! wait, there is an index called «id_product» ( cols: id_product, id_shop, default_on).
- 3 replies
-
- combination
- product
-
(and 3 more)
Tagged with:
-
Salve, sto realizzando un e-commerce con prestashop 1.7.7.4 Ho editato il tema classic per adattarlo alle mie esigenze. Fin qui nessun problema. Nel momento in cui vado ad aprire la versione mobile del sito web, il menù "hamburger" è presente, ma non cliccabile. Inoltre, è sparita tutta l'area dell'header con login etc... Qualcuno ha una soluzione? PS: Il sito in questione è d-dominio.com
-
Salve, avrei necessità di nascondere la sezione dedicata alla lista dei prodotti di una specifica categoria, al momento mi interessa soltanto quella di default (id = 2). Provando a modificare la pagina \themes\child\templates\catalog\listing\product-list.tpl in questo modo non ottengo nulla: <div> {block name='product_list'} {if $id_category == 2} <div id="" class="hidden"> {else} {include file='catalog/_partials/products.tpl' listing=$listing} {/if} {/block} </div> avete qualche suggerimento? La versione PrestaShop e 1.7.6.1 Grazie
-
Hello community, Few days ago I was struggling how to change on product page default combination if it is not availalable (it has date available set). After few hours of coding I menaged to do this. I didn't want to make it on PHP because I want my default combination to be unchanged on database. I just want to automatically set to different one if the default is not available. I think that there will be person who wants to change it when default combination has stock <= 0 but it is not my concern. If You want it then You can adjust my code to your needs. Probably solution is posted below but I didn't test it. 1) We need to define in JavaScript variable with default product attribute id. To do so go to product.tpl of your theme and on the bottom add this code. You can add it between {strip}...{/strip} tags between other addJsDef definitions. We will use this value in our js scripts. {if isset($product->cache_default_attribute) && $product->cache_default_attribute} {addJsDef cache_default_attribute=$product->cache_default_attribute|intval} {/if} 2) Next in product.js we need to create 2 functions. You can add them basically anywhere You want between other functions. The safest place is just the end of the file. function selectAttributeByCombinationId(combination_id) { if (typeof combinationsFromController[combination_id] == 'undefined') return false; var c = combinationsFromController[combination_id]; var i = 0; c.attribute_select = []; $.each(c.attributes_values, function(k){ c.attribute_select[k] = c.attributes[i]; i++; }); $('.color_pick').removeClass('selected').parent().removeClass('selected'); $.each(c.attribute_select, function(k,v){ $('#color_' + v).addClass('selected').parent().addClass('selected'); $('input:radio[value=' + v + ']').prop('checked', true); $('input[type=hidden][name=group_' + k + ']').val(v); $('select[name=group_' + k + ']').val(v); }); findCombination(); refreshProductImages(0); } function changeDefaultCombinationIfNotAvailable() { if (typeof combinationsFromController == 'undefined' || window.location.href.indexOf("#/") > -1) return false; if (combinationsFromController[cache_default_attribute].available_date !== '' && combinationsFromController[cache_default_attribute].quantity <= 0) { // determine the combinations with highest stock var comb_with_highest_qnt = temp_qnt = 0; $.each(combinationsFromController, function(k,v){ if (v.quantity >= temp_qnt){ temp_qnt = v.quantity; comb_with_highest_qnt = k; } }); if (comb_with_highest_qnt){ selectAttributeByCombinationId(comb_with_highest_qnt); } else { // set first available combination $.each(combinationsFromController, function(k,v){ if(v.quantity > 0 || v.available_date == ''){ selectAttributeByCombinationId(k); return true; } }) } } } $(document).ready(function() { changeDefaultCombinationIfNotAvailable(); }); Save it, upload files to server, remove cache and feel free to be happy. Few things about this code: • It works with multiple attributes groups • it checks which combinations has highest stock quantity on warehouse and it will set this combination as default after page load • it won't change combination if url contains "#/" in it just to prevent changes when someones want's to go to specific combination • I didn't test it quite well so if You will find some bugs or you will find easier method to do this just let me know. ------------------------------------------------------- If You want to change default combination when only stock quantity > 0 (without date_available) then in changeDefaultCombinationIfNotAvailable() just change "if (combinationsFromController[cache_default_attribute].available_date !== '' && combinationsFromController[cache_default_attribute].quantity <= 0) {" to if (combinationsFromController[cache_default_attribute].quantity < 0) { ------------------------------------------------------- If I helped You then feel free to press this "Thanks button!"
-
- js
- javascript
-
(and 5 more)
Tagged with:
-
I am using a default v1.7 install with default theme, how do I get ric o the 20% banner at the bottom. I don't have any discounts configured or any item with discounts turned on
-
Hi The Zip code is not relevant in my country and it is better that I disable it as an address field. However, some banks require a zip code in order for credit card payments to work. When the zip code is disabled the default value is set to "0" and is therefore rejected by the bank. I wish to change this default value. Whenever a guest or customer makes a payment, the zip code should be automatically assigned a valid zip code. Any ideas?
-
My default currency for backend is euro . But in front end all prices should be shown in INR first as default . I give all my prices in euro in the back end but when the customer views my webiste the currency shown should be INR WHICH MEANS - Customer should not have to have to change currency by clicking on 'change currency' at the top right hand side. Basically I do not want a customer to view the prices in EURO but all my prices in back end are in euro and I want to continue giving my prices in euro. Current status New customer arrives all prices in euro customer can change currency to INR backend all prices in euro Expected change new customer arrives all prices in INR customer can change currency if he wants back end all prices in euro The first currency for all my products seen should be INR and not EURO BUT back end will have all products in euro
- 2 replies
-
- change currency
- default
-
(and 2 more)
Tagged with:
-
Hello, What is the correct URL for default category pictures in Prestashop 1.7 ? Can't figure it out I tried "{$img_cat_dir}{$lang_iso}-default-category_default.jpg" but it's not working... Regards, David.
-
Buonasera a tutti da T21Calzature.com Per trovare una soluzione ai nostri quesiti (riportati in fondo) specifichiamo quanto segue: Abbiamo acquistato Eveprest da prestashop addons. Per testarlo, l’abbiamo installato su un sito di prova (gogofashion.it) hostato sui nostri server. Ci teniamo a specificare che il sito in questione non é online e mai lo sarà. Sia T21calzature.com (sito sul quale verrà pubblicato il template) e il sito di prova gogofashion,ti montano prestashop 1.6.1.6 Abbiamo utilizzato il modulo CLEANER per pulire il database del sito abbiamo rimosso tutti gli articoli e le foto ec... adesso vorremmo installare il template nella versione di defaul in tutte le sue forme, per essere più specifici: -trattenendo l’aspetto grafico della versione demo - trattenendo gli articoli forfettari - trattenendo i testi presenti versione demo e tutto ciò che concerne la versione di prova in formato default. Abbiamo provato a seguire la guida fornitaci da ZEMEZ e da PRESTASHOP e cercato su internet una serie di guide alternative ma non riusciamo a installare questa versione “demo” del tema. Nello specifico abbiamo riscontrato l’assenza della cartella “sources/sample_data” che ci dava la possibilità di caricare attraverso il modulo “sample data installer” la versione di default del tema Eveprest Fashion. ad ogni modo siamo disposti ad effettuare ogni tipo di reset possibile per raggiungere il fine specificato. Alleghiamo i file che mostrano le ultime operazioni che abbiamo effettuato sul sito (abbondantemente spiegate in questo topic)
-
Hello all, I have 2 urgent issues / topics in PS 1.7.4.0 - and I did read thru all available posts regarding the same or similar topics but could not find any solution for PS version 1.7.4. All these other posts seem to apply to PS 1.5 or 1.6 only. I am still preparing my shop before go live and the issues are: 1) on the product page, how can the "add to cart" action be replaced with "select options" so the customer is forced to select product options before being able to add to cart ?? In case of products with attribs a prior selection is mandatory I think. PS does not seem to offer such a thing. I know there is an option to hide the cart for products with attribs, but this does not work in PS 174 unless catalog mode is on. which in turn hides the prices again ... so not really useful / wanted. There must be other people out there having the same issue with PS 174 ? Hopefully ! Anyone knows if there is a module which can do that ? Since I am no developer... 2) How can it be prevented that PS 174 default adds shipping costs to a product added to cart ir NO destination was chosen ? Guest order without login for example. Totally does not make sense such thing is happening. PS applies the highest shipping costs (checkbox in prefs) without knowing the destination. In fact it should be like this. Products can be added to cart and the shipping part goes on top / is calculated once the customer entered the destination, not before. Maybe also a module available doing the trick ? Thanx for reading this and hopefully getting some replies. Best Regards B
-
Hi there, Just wanted to see if anyone knows of a way to make prestashop 1.6 discount codes uncombinable by default? I'm aware that I can manually make each code uncombinable in the compatibility conditions section or do a mass change on the database but I was hoping there would be a way to make it so it is uncombinable by default as this is the preferred state for 99% of my discount codes. That way if I wish to allow combinations I can and there is a much reduced risk of discounts being combinable when they shouldn't be. Feel free to ask any questions you might have regarding this and I appreciate any input you can give on the matter.
- 5 replies
-
- default
- prestashop 1.6.1
-
(and 4 more)
Tagged with:
-
Prestashop : 1.7.3.2 Tema : Classic Cache : Disattivata Problema : Non viasualizzo in front-end l'immagine non disponibile di default dei prodotti Azioni effettuate : Ho pulito la cache dal pannello ed anche manualmente in FTP ma nulla è cambiato Come risolvo?
-
Hi mate How to set default short description to all products? Don't know if anyone can help me? The brief description of all my products is the same, so I want to set it as default Thanks
-
Hola, Por más que intento que las imágenes se vean en una ventana grande al clicar, no funciona con ninguna imagen. Está activado thickbox_ default, pero la única opción de ver las imágenes más grandes es activando la lupa con JqZoom. Dejó de funcionar de repente, sólo desactivé el formulario de preguntas porque entraba mucho spam e instalé un módulo diferente para formulario de contacto. Por favor necesito ayuda.
-
Olá a todos, Eu sou o Rui de Lisboa (portugal) e sou frontend... Estou a desenvolver uma loja (prestashop) e instalei o módulo produtos favoritos e a minha questão é esta: O módulo funciona ok, mas pretendo alterar para que na listagem de produtos apareça também um botão para adicionar aos favoritos sem entrar na página do produto. Eu criei o botão (visualmente) mas não consigo fazer com que ele tenha o mesmo comportamento que na página do produto. O que me lembrei foi: quando a pessoa clicar no botão ele escreva os dados desse produto na tabela dos produtos favoritos (só isto) e depois quando eu fosse ver a listagem eles estariam lá. Alguém dá uma ajuda?
-
- produtos favoritos
- prestashop 1.6
-
(and 1 more)
Tagged with:
-
Hi all! My website uses two curenncies. How can I force not default currecy for my visitors? I have USD (default) and UAH. I want to use only UAH for frontend. Thanks in advance!
- 3 replies
-
- force currency
- currency
-
(and 4 more)
Tagged with:
-
No me aparece el modulo homeslider que trae por default la aplicación de prestashop y no puedo modificar las imagenes de mi tienda, no quisiera comprar ese modulo ya que se supone viene por default, no se si le movi a alguna configuración y por eso no me sale en las opciones. Me podrían apoyar!!