cadourip Posted April 30, 2018 Share Posted April 30, 2018 Hello Can anyone help me with a problem. I am usig prestashop 1.6, and in my product page I need to change the order of a menu. I was trying to change the position from modules or liveedit, but doesen't work. Whit this menu you can customyze the product (you can upload picture) eg. personalized mug Maybe this is not a module. You can find a screenshot below. Thanks! Untitled.bmp Link to comment Share on other sites More sharing options...
prestamonste Posted April 30, 2018 Share Posted April 30, 2018 Hi there, There are 2 cases. 1. If this block is a html code. You can open the file product.tpl (your_site/themes/theme_name/product.tpl) via cpanel or ftp, copy this html from block tab content paste to block product right. 2. If this block is the content of a module. 2.1 Please add the function hookDisplayRightColumnProduct, it looks like this. public function hookDisplayRightColumnProduct() { // copy code of the function hookDisplayProductTabContent() in here. } => Save file 2.2 Login to your back office site: Modules and Services >> Positions Unhook displayProductTabContent(), register hook displayRightColumnProduct Thanks, PrestaMonster Link to comment Share on other sites More sharing options...
cadourip Posted May 2, 2018 Author Share Posted May 2, 2018 Thanks for your answer! This is not a module. I have tried to copy that html into block product right, but is not working... Can you please help me to do that right? Thanks! Link to comment Share on other sites More sharing options...
taniacr Posted May 2, 2018 Share Posted May 2, 2018 Hi, It's not a module. Edit product.tpl in your template folder and find: <!-- Customizable products --> {if isset($product) && $product->customizable} <form method="post" action="{$customizationFormTarget}" enctype="multipart/form-data" id="customizationForm" class="clearfix"> {if $product->uploadable_files|intval} <div class="customizableProductsFile"> <h5 class="product-heading-h5">{l s='Pictures'}</h5> <ul id="uploadable_files" class="clearfix"> {counter start=0 assign='customizationField'} {foreach from=$customizationFields item='field' name='customizationFields'} {if $field.type == 0} <li class="customizationUploadLine{if $field.required} required{/if}">{assign var='key' value='pictures_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} {if isset($pictures.$key)} <div class="customizationUploadBrowse"> <img src="{$pic_dir}{$pictures.$key}_small" alt="" /> <a href="{$link->getProductDeletePictureLink($product, $field.id_customization_field)|escape:'html':'UTF-8'}" title="{l s='Delete'}" > <img src="{$img_dir}icon/delete.gif" alt="{l s='Delete'}" class="customization_delete_icon" width="11" height="13" /> </a> </div> {/if} <div class="customizationUploadBrowse form-group"> <label class="customizationUploadBrowseDescription"> {if !empty($field.name)} {$field.name} {else} {l s='Please select an image file from your computer'} {/if} {if $field.required}<sup>*</sup>{/if} </label> <input type="file" name="file{$field.id_customization_field}" id="img{$customizationField}" class="form-control customization_block_input {if isset($pictures.$key)}filled{/if}" /> </div> </li> {counter} {/if} {/foreach} </ul> </div> {/if} {if $product->text_fields|intval} <div class="customizableProductsText"> <ul id="text_fields"> {counter start=0 assign='customizationField'} {foreach from=$customizationFields item='field' name='customizationFields'} {if $field.type == 1} <li class="customizationUploadLine{if $field.required} required{/if}"> <label for ="textField{$customizationField}"> {assign var='key' value='textFields_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} {if !empty($field.name)} {$field.name} {/if} {if $field.required}<sup>*</sup>{/if} </label> <textarea name="textField{$field.id_customization_field}" class="form-control customization_block_input" id="textField{$customizationField}" rows="3" cols="20">{strip} {if isset($textFields.$key)} {$textFields.$key|stripslashes} {/if} {/strip}</textarea> </li> {counter} {/if} {/foreach} </ul> <p class="clear required"><sup>*</sup> {l s='required fields'}</p> </div> {/if} <p id="customizedDatas"> <input type="hidden" name="quantityBackup" id="quantityBackup" value="" /> <input type="hidden" name="submitCustomizedDatas" value="1" /> <button class="button btn btn-default button ajax_add_to_cart_button" name="saveCustomization"> <span>{l s='Save'}</span> </button> <span id="ajax-loader" class="unvisible"> <img src="{$img_ps_dir}loader.gif" alt="loader" /> </span> </p> </form> {/if} <!--end Customization --> Cut the code and paste it where you want it. In your case try after the closing div of <div class="box-info-product"> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now