Vire Posted May 6, 2014 Share Posted May 6, 2014 Hello there, i want to disable the view lager button in ps 1.6. I found something in the product.tpl but im unsure so i want to ask you guys what exactly i have to delete to just delete the text, icon and box of the view lager button. The click to view it lager function should still be enabled. https://gamelivery.com/en/uplay/2-watchdogs.html#/edition-deluxe_edition/dispatch-serialkey/country-world_wide/platform-pc here is the code i found in product.tpl {if $have_image} <span id="view_full_size"> {if $jqZoomEnabled && $have_image && !$content_only} <a class="jqzoom" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" rel="gal1" href="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')|escape:'html':'UTF-8'}" itemprop="url"> <img itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}"/> </a> {else} <img id="bigpic" itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" width="{$largeSize.width}" height="{$largeSize.height}"/> {if !$content_only} <span class="span_link no-print">{l s='View larger'}</span> {/if} {/if} </span> {else} <span id="view_full_size"> <img itemprop="image" src="{$img_prod_dir}{$lang_iso}-default-large_default.jpg" id="bigpic" alt="" title="{$product->name|escape:'html':'UTF-8'}" width="{$largeSize.width}" height="{$largeSize.height}"/> {if !$content_only} <span class="span_link"> {l s='View larger'} </span> {/if} </span> {/if} </div> <!-- end image-block --> Link to comment Share on other sites More sharing options...
NemoPS Posted May 7, 2014 Share Posted May 7, 2014 You can simply get rid of <span class="span_link no-print">{l s='View larger'}</span> 3 Link to comment Share on other sites More sharing options...
Vire Posted May 7, 2014 Author Share Posted May 7, 2014 Perfect now everything is like i want it! Link to comment Share on other sites More sharing options...
ELI5Prestashop Posted May 17, 2014 Share Posted May 17, 2014 Hi there, This does indeed remove the view larger button, however you can still click the image to get the larger image. Is there a way to get rid of this? Link to comment Share on other sites More sharing options...
NemoPS Posted May 17, 2014 Share Posted May 17, 2014 Remove this from product.js (themes/themename/js folder) //add a link on the span 'view full size' and on the big image $('#view_full_size, #image-block img').click(function(){ $('#views_block .shown').click(); }); 2 Link to comment Share on other sites More sharing options...
Guid Posted July 2, 2014 Share Posted July 2, 2014 Thanks a lot Nemo1! You SOLVED it! Link to comment Share on other sites More sharing options...
jjryeste Posted November 11, 2014 Share Posted November 11, 2014 Helllo is posible disable or remove button in product-list.tpl Link to comment Share on other sites More sharing options...
NemoPS Posted November 12, 2014 Share Posted November 12, 2014 which button, exactly? view? add to cart? Link to comment Share on other sites More sharing options...
jjryeste Posted November 12, 2014 Share Posted November 12, 2014 in product-list.tpl remove view, an add quantity ( + and - not important ) although it has to enter the amount on hand thank you Link to comment Share on other sites More sharing options...
NemoPS Posted November 12, 2014 Share Posted November 12, 2014 You can simply remove <a itemprop="url" class="button lnk_view btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}"> <span>{if (isset($product.customization_required) && $product.customization_required)}{l s='Customize'}{else}{l s='More'}{/if}</span> </a> As for quantity, it's a bit more complicated. You can add a simply input, but then you need to reference quantity in ajax-cart.tpl. Have a look at my tut here for some info about it: http://blog.arvixe.com/adding-multiple-products-and-quantities-to-prestashops-cart/ Link to comment Share on other sites More sharing options...
jjryeste Posted November 12, 2014 Share Posted November 12, 2014 Hello i have disable button View and replace for <label>Cantidad:</label> <input size="1" type="text" class="multi_product_quantity" value="1" /> this is me result but although I put seven buy only adds 1 item i no have touch ajax-cart.js ajax-cart.js#sthash.sfGtjxmf.dpuf ajax-cart.js#sthash.sfGtjxmf.dpuf ajax-cart.js#sthash.sfGtjxmf.dpuf Link to comment Share on other sites More sharing options...
jjryeste Posted November 12, 2014 Share Posted November 12, 2014 please this file is error ajax-cart.js#sthash.sfGtjxmf.dpuf ajax-cart.js#sthash.sfGtjxmf.dpuf ajax-cart.js#sthash.sfGtjxmf.dpuf Link to comment Share on other sites More sharing options...
NemoPS Posted November 13, 2014 Share Posted November 13, 2014 You need to modify ajax-cart.js as per instructions on the tut Set it to grab input quantities when triggering the add to cart Link to comment Share on other sites More sharing options...
jjryeste Posted November 13, 2014 Share Posted November 13, 2014 Ok , and is posible , change button views or more for , quick view Link to comment Share on other sites More sharing options...
NemoPS Posted November 14, 2014 Share Posted November 14, 2014 Yeah, change the one I mentioned above to <a class="quick-view" href="{$product.link|escape:'html':'UTF-8'}" rel="{$product.link|escape:'html':'UTF-8'}"> <span>{l s='Quick view'}</span> </a> It should work Link to comment Share on other sites More sharing options...
jjryeste Posted November 14, 2014 Share Posted November 14, 2014 OK Solved Link to comment Share on other sites More sharing options...
jjryeste Posted November 18, 2014 Share Posted November 18, 2014 one problem, in quick view , add to cart , add one product ramdom view image Link to comment Share on other sites More sharing options...
NemoPS Posted November 19, 2014 Share Posted November 19, 2014 It keeps spinning?Check the browser's console, might be a javascript issue. Post a printscreen of the console here, if you can, or copy the eventual error Link to comment Share on other sites More sharing options...
kandelina Posted March 9, 2016 Share Posted March 9, 2016 hello not worked for me! 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