Jump to content

jesper03

Members
  • Posts

    18
  • Joined

  • Last visited

Profile Information

  • First Name
    Enzo
  • Last Name
    Lupia

Recent Profile Visitors

244 profile views

jesper03's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi everyone, I need to add a checkbox to the product page so when the customer check it the price is increased by a certaing amount. I now that this can be accomplished using combinations but I can't use them because of other requirements. Example: Say that a certaing product costs 80€. If the customer check the "famous" checkbox the price should be increased to 85€. If a combination is selected and its cost is 100€, when the customer check the checkbox the price should be increased to 105€. Hope that everything is clear. Have a good work.
  2. Ciao a tutti, vorrei sapere se è possibile generare "al volo" delle combinazioni di prodotti in base alle scelte di personalizzazione del cliente. Mi spiego meglio, ho aggiunto due campi per alcuni tipi di prodotto con i quali il cliente può specificare la larghezza e la lunghezza della stampa, da qui vado a calcolarmi i metri quadrati risultanti.Ho dovuto creare manualmente le combinazioni per i metri quadrati (es. 1, 1.5, 2, 2.5 mq,ecc...) e quindi una volta calcolati i mq inseriti dal cliente vado a selezionare dinamicamente la combinazione tra quelle create da me. Ovviamente la scelta sarà vincolata dai valori inseriti e dover creare tutti i possibili valori di mq mi sembra alquanto complesso. Vorrei sapere quindi se è possibile creare dinamicamente una nuova combinazione per il prodotto, ad esempio se il cliente inserisce 2x2 e supponendo che la combinazione 4mq non esista, dovrei crearla e aggiungere come prezzo 4xprezzo unitario. So che la spiegazione è un po' complicata, ma spero sia chiaro il più possibile. Grazie
  3. Hi everyone, I need to add a new checkbox right under the price box that allows me to increase the product's price by a certaing amount (i.e 5$). The only constraint (unfortunately) is that I cannot do this using combination since I changed the way my shop shows the combinations and adding new ones can cause me problems. Hope that someone of you can give some hints. Thanks in advance and have a good day.
  4. Buongiorno, vorrei aggiungere una checkbox da collocare sotto il prezzo del prodotto. Attivando la checkbox il prezzo del prodotto deve aumentare di una certa quantità (es. 5€). La cosa importante è che il tutto non deve essere gestito tramite combinazioni, perchè avendo modificato la visualizzazione delle combinazioni all'interno della pagina, questo mi creerebbe un po' di problemi. Se necessario posso anche intervenire direttamente sul codice. Spero possiate indicarmi un modo per farlo, grazie e buona giornata
  5. Ho risolto in questo modo: Nel file CategoryController.php ho aggiunto nella funzione initContent() 'parent_category_chain' => $this->category->getParentsCategories() E poi nel file product-list.tpl(o in qualsiasi altro file tpl)con questo loop è possibile controllare tutta la sequenza di categorie a cui appartiene la categoria corrente {foreach $parent_category_chain as $parent_category_node} ... {/foreach}
  6. Buongiorno a tutti, avrei bisogno di un aiuto riguardo agli id delle categorie. In sostanza dato un prodotto che supponiamo appartenere alla seguente sequenza di categorie: Cat1 -> Sub1 -> Sub2 -> Prodotto Io avrei bisogno di verificare se "Prodotto" appartiene a "Cat1". Sono riuscito ad arrivare al massimo fino a "Sub2" tramite $product->id_category_default. Esiste un modo per farlo. Grazie.
  7. Ho risolto riattivando la cache che avevo disabilitato per motivi di debugging. Spero possa essere utile a chi ha problemi simili. Buona giornata
  8. Bungiorno, da ieri sera ho riscontrato un grosso problema con il mio backoffice, infatti è improvvisamente iventato tremendamente lento. Impiega più di 5 minuti per navigare da una pagina all'altra, altre volte addirittura si arriva a superare il tempo limite di risposta e mi viene fuori il 504 Gateway Timeout. Il front office sembra invece funzionare tranquillamente come sempre. Spero possiate aiutarmi.
  9. Salve a tutti, ho un problema con la gestione delle combinazioni dei prodotti. Ho creato 2 attributi, "quantità" e "grafica" da aggiungere ad alcuni specifici prodotti. Ho modificato il file product.tpl in modo da visualizzare l'attributo "quantità" sotto forma di tabella invece di select o radio button. Nelle varie righe della tabella vorrei visualizzare il prezzo associato alle singole quantità al di là dell'eventuale aumento del prezzo dovuto alla selezione dell'attributo grafica (5€). Riuscirei a risolvere aggiungendo ai prodotti i singoli attributi (quindi specificando i prezzi specifici per il singolo attributo piuttosto che alla combinazione) senza creare alcuna combinazione tra quantità e grafica ma in quel caso il prezzo del prodotto non verrebbe incrementato dopo aver selezionato l'attributo grafica. Spero di essere stato chiaro e che qualcuno di voi possa darmi qualche consiglio. Grazie e buon lavoro.
  10. Hi everyone, I implemented a simple function in my shop in order to show a table under the product's description to show only some kind of combinations. More precisely, for some product I added the attribute "Quantity" and "Graphic" so what I have is for example: QUANTITY 100 200 500 1000 GRAPHIC YES NO Choosing "Graphic YES" the price is improved by 5€. In my table I want to show only price related to the combinations of "Quantity" and "Graphic NO". I putted this in my ProductController.php $groups[$row['id_attribute_group']]['name_price'][$row['id_attribute']] = array('name' => $row['attribute_name'],'price' => number_format($row['price'],2), 'attribute_id' => $row['id_attribute']); and this in my product.tpl {if $product->id_category_default == 17} <div id="avviso_upload" style="font-weight:bold;">I seguenti prezzi si intendono con realizzazione grafica a carico del cliente.</div> <div id="attributes"> <div class="clearfix"></div> {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count} <fieldset class="attribute_fieldset"> {assign var="groupName" value="group_$id_attribute_group"} <div class="attribute_list"> {if ($group.group_type == 'radio')} <table id="table_quantita"> <tr class="table_head"> <th class="th_quantita">Quantità</th> <th class="th_quantita">IVA esclusa</th> <th class="th_quantita">IVA inclusa</th> <th class="th_quantita"><i class="icon-shopping-cart th_icon"></i></th> </tr> {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count} {foreach from=$group.name_price key=id_attribute item=group_attribute} {if $group.name|strstr:"Quantità"} <tr class="tr_quantita"> <td class="td_quantita">{$group_attribute.name}</td> <td class="td_quantita">{$currencySign|html_entity_decode:2:"UTF-8"} {$group_attribute.price}</td> <td class="td_quantita">{convertPrice price=({$group_attribute.price}*1.22)}</td> <td class="td_quantita"> <input type="radio" class="attribute_radio" name="{$groupName|escape:'html':'UTF-8'}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked"{/if} /> </td> </tr> {/if} {/foreach} {/if} {/foreach} </table> {/if} </div> </fieldset> {/if} {/foreach} </div> <div id="avviso_upload" style="font-weight:bold; font-size: 16px;">*La grafica fornita dal cliente può essere inviata tramite l'apposito modulo sottostante prima di procedere con l'ordine o in alternativa può essere inviata in seguito con la funzione <a href="http://www.tipografiagrillo.com/index.php?controller=contact3" target="blank"><span style="color: #b22222;">Invia File</span></a> specificando il codice dell'ordine ed eventuali dettagli aggiungitivi.<br> </div> <a href="http://www.tipografiagrillo.com/index.php?controller=contact2" target="blank"><div class="text_preventivo_prodotti"><h2 class="text_preventivo_h2"> Per quantità e formati personalizzati richiedi un preventivo</h2></div></a> {/if} I created all the combination using the Combination Generator. The problem is that for some rows of the table I have the price related to "Graphic YES" that is not what I want. In the attached file you can see my table, the 5° row is wrong, because the price 130€ is related to the combination of Quantity 2500 and graphic Yes while all the other prices are related to the combination of Quantity and Graphic No. I hope that the problem is clear and that someone can help me. Thanks in advance.
  11. Buonasera, avrei bisogno di un modulo da integrare su un sito Prestashop per l'invio di denaro. L'utente deve avere la possibilità di specificare l'importo di denaro da inviare ed una eventuale causale. Grazie in anticipo. Buon lavoro
  12. Buongiorno, sto avendo un problema con la modifica del file ajax-cart. Dovrei aggiungere un controllo sulla combinazione selezionata da fare non appena l'utente seleziona il bottone di aggiunta al carrello e come suggerito su diversi post ho provato a modificare il file ajax-cart in mytheme/js/modules/blockcart cosi come quello in modules/blockcart Apparentemente nessuna modifica fatta ai due file sembra avere effetto. Ho già disabilitato la cache e non mi pare ci siano altri moduli che possano sovrascrivere il comportamento del bottone per l'aggiunta al carrello. Spero possiate aiutarmi a capire quale file devo effettivamente modificare. Grazie in anticipo e buon lavoro.
  13. Hi everyone, I edited the product.tpl file in order to list Quantity attribute (combination) in a table. I get something like this Quantity PriceWithTax PriceWithoutTax Add 100 10€ 5€ button 250 20€ 10€ button 500 40€ 30€ button 1000 60€ 50€ button Now i added the new attribute "Graphics" (yes/no) and I need to add 5€ if the attribute is Yes. I created the combinations between quantity and graphics so the prices are correctly updated according to the attributes that are selected. The problem is that now the table is not showing anymore the price associated only with quantity, but according to the combination with graphics. I want to show only quantity related price and if I select the graphics attribute the price have to change only in the top price resume. An alternative way to accomplish this task should be to use some different option selection that can modify the price and that is not a combination. Any ideas? This is the code I added to ProductController.php to get price values. $groups[$row['id_attribute_group']]['name_price'][$row['id_attribute']] = array('name' => $row['attribute_name'],'price' => number_format($row['price'],2), 'attribute_id' => $row['id_attribute']); Thanks in advance.
×
×
  • Create New...