Jump to content

jamesford

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by jamesford

  1. Donc voila, la réctification de code que tu propose n'est pas envisageable sur la version 1.4.6voici donc les morceaux de code attribute et color picker si quelqu'un peut nous aider sur ce probleme on galere depuis quelques jours meme en essayant de toucher au codes!=====> Page "product.tpl"=> code couleur ligne 208 {if isset($colors) && $colors} {l s='Pick a color:' js=1}[list] {foreach from=$colors key='id_attribute' item='color'}[*][url=""]{if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}[img={$img_col_dir}{$id_attribute}.jpg]{/if}[/url] {/foreach} [/list]{/if} [/code]=> code attribute ligne 267 {if isset($groups)} {foreach from=$groups key=id_attribute_group item=group}{if $group.attributes|@count} {$group.name|escape:'htmlall':'UTF-8'} :{assign var="groupName" value="group_$id_attribute_group"}{foreach from=$group.attributes key=id_attribute item=group_attribute}{$group_attribute|escape:'htmlall':'UTF-8'}{/foreach}{/if}{/foreach}{/if} =====> Page "product.php"c'est une fonction qui appelle la database! public function getAttributesGroups($id_lang){return Db::getInstance()->ExecuteS('SELECT ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, agl.`public_name` AS public_group_name, a.`id_attribute`, al.`name` AS attribute_name,a.`color` AS attribute_color, pa.*FROM `'._DB_PREFIX_.'product_attribute` paLEFT JOIN `'._DB_PREFIX_.'product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`LEFT JOIN `'._DB_PREFIX_.'attribute` a ON a.`id_attribute` = pac.`id_attribute`LEFT JOIN `'._DB_PREFIX_.'attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`LEFT JOIN `'._DB_PREFIX_.'attribute_lang` al ON a.`id_attribute` = al.`id_attribute`LEFT JOIN `'._DB_PREFIX_.'attribute_group_lang` agl ON ag.`id_attribute_group` = agl.`id_attribute_group`WHERE pa.`id_product` = '.(int)($this->id).'AND al.`id_lang` = '.(int)($id_lang).'AND agl.`id_lang` = '.(int)($id_lang).'ORDER BY agl.`public_name`, al.`name`');} Bon voila j'envoie ce post comme un coup d'épée dans l'eau peut etre mais je crois que je vais acheter ce f****** module a 100€ lol
  2. yes c'est un vieux topic! mais domage que prestashop ne propose q'une seule palette couleur! Okey je vais revoir le code, et l'envoyer ici des ce soir (avec les balises...je savais pas comment faire ) Je ne sais pas sur quelle version tu etais pour avoir ce code, moi je suis sur la 1.4.6 et c'est pas les meme codes...! je veux proposer a mes utilisateur de personnaliser des stickers, donc je recherche a ajouter une autre palette textures, une autre palette style graphique.... J'ai reussi a dupliquer le color picker en touchant a ce code, mais c'est pas le but...
  3. Super ta solution mais c'est sur quelle version? sur la version 1.4.6.2 c'est pas les memes codes voici le code que j'ai pour le color picker sur product.tpl {if isset($colors) && $colors} <!-- colors --> <div id="color_picker"> <p>{l s='Pick a color:' js=1}</p> <div class="clear"></div> <ul id="color_to_pick_list"> {foreach from=$colors key='id_attribute' item='color'} <li><a id="color_{$id_attribute|intval}" class="color_pick" style="background: {$color.value};" onclick="updateColorSelect({$id_attribute|intval});$('#wrapResetImages').show('slow');" title="{$color.name}">{if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}<img src="{$img_col_dir}{$id_attribute}.jpg" alt="{$color.name}" width="20" height="20" />{/if}</a></li> {/foreach} </ul> <div class="clear"></div> </div> {/if} le code attributes toujours sur product.tpl {if isset($groups)} <!-- attributes --> <div id="attributes"> {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count} <p> <label for="group_{$id_attribute_group|intval}">{$group.name|escape:'htmlall':'UTF-8'} :</label> {assign var="groupName" value="group_$id_attribute_group"} <select name="{$groupName}" id="group_{$id_attribute_group|intval}" onchange="javascript:findCombination();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> </p> {/if} {/foreach} </div>
  4. I totaly agree with you, prestashop doenst helps you when you post add I had the same problem and I've post a question no one answered to me ! http://www.prestashop.com/forums/topic/182023-bouton-telechargement-download-button-prestashop/
  5. Bonjour, Sur mon site je vais proposer de télécharger des contenus payant en psd et j'aimerais savoir comment faire pour ajouter un bouton "téléchargement" sur mon site internet. Un peu comme ce site internet: http://prestaplayers.com/fr/themes-gratuits-prestashop/8-blackwhite-theme-prestashop-gratuit.html Si quelqu'un connait le module ou la technique, merci pour votre aide! ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Hi everyone, I'm currently creating a new website on which I will provide very cheap "psd contents" to download by users. I wanted to know how can I add a "dowload buton" on it, Like this website: http://prestaplayers.com/fr/themes-gratuits-prestashop/8-blackwhite-theme-prestashop-gratuit.html If anyone knows the addon or the way they've done , thank you for your help!
×
×
  • Create New...