Jump to content

Disable "VIEW LAGER" button


Recommended Posts

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

  • 2 weeks later...

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();
	});
  • Like 2
Link to comment
Share on other sites

  • 1 month later...
  • 4 months later...

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: 
 
Link to comment
Share on other sites

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   post-158433-0-87011100-1415809807_thumb.jpg

 

 

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

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...