Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Special offer mod

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-24-2009, 10:20 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Special offer mod

I have the special offer mod from x-cart which puts a small img (special offer tag) on each product image, if the customer places their cursor on the special offer img and clicks they are taking to a special offer page, this is confusing some customers so i need to disable this link function.
Does anybody know where this link code is?
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #2  
Old 10-27-2009, 02:24 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default Re: Special offer mod

Quote:
Originally Posted by swifty1
I have the special offer mod from x-cart which puts a small img (special offer tag) on each product image, if the customer places their cursor on the special offer img and clicks they are taking to a special offer page, this is confusing some customers so i need to disable this link function.
Does anybody know where this link code is?

In skin1/modules/Special_Offers/customer/product_offer_thumb.tpl - find:
Code:
<div class="SpecialOffersThumb"> <a href="offers.php?mode=product&amp;productid={$product.productid}"><img src="{$ImagesDir}/offer_thumb.gif" alt="" /></a> </div>

replace with:
Code:
<div class="SpecialOffersThumb"> <img src="{$ImagesDir}/offer_thumb.gif" alt="" /> </div>
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
  #3  
Old 06-25-2014, 06:35 PM
 
Ben G Ben G is offline
 

Advanced Member
  
Join Date: Nov 2006
Posts: 100
 

Default Re: Special offer mod

Quote:
Originally Posted by donavichi
In skin1/modules/Special_Offers/customer/product_offer_thumb.tpl - find:
Code:
<div class="SpecialOffersThumb"> <a href="offers.php?mode=product&amp;productid={$product.productid}"><img src="{$ImagesDir}/offer_thumb.gif" alt="" /></a> </div>

replace with:
Code:
<div class="SpecialOffersThumb"> <img src="{$ImagesDir}/offer_thumb.gif" alt="" /> </div>

In X-Cart 4.6.3 the replacement is code in /common_files/modules/Special_Offers/customer/product_offer_thumb.tpl is (original code is preserved and quoted out)

Quote:
{if $product.have_offers and $config.Special_Offers.offers_show_thumb_on_lists eq "Y"}
{* <a href="offers.php?mode=product&amp;productid={$prod uct.productid}" class="offers-thumbnail"><img src="{$ImagesDir}/spacer.gif" alt="" /></a> *}
{* Start Added *}

<a href="{$url}" class="offers-thumbnail"><img src="{$ImagesDir}/spacer.gif" alt="" /></a>

{* End Added *}
{/if}
__________________
Ben
X-Cart 4.6.6 Gold Plus - lots of modules
X-Cart 4.7.9 Gold Plus - lots of modules
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:42 PM.

   

 
X-Cart forums © 2001-2020