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

Free Shipping Button in Products page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-03-2009, 12:28 AM
  Rajdeep's Avatar 
Rajdeep Rajdeep is offline
 

Senior Member
  
Join Date: May 2007
Posts: 115
 

Post Free Shipping Button in Products page

Hi,
Can someone assist me figuring out how to do this bit which seems quite interesting.

Am planning to club the "Save X%" label & "Special Offer" label concept to create a new label called "Free Shipping".
For any product(s) that has free shipping, this label would be displayed on top left corner of thumbnail (in addition to Special Offer" if applicable which is displayed on bottom right corner of thumbnail).

In the Product page this label will also be displayed below the "Save X% if applicable else just the "Free shipping label.

Await to hear from someone to help me get this working..

Thanks in advance.

Best Regards,
__________________
X-Cart Pro 4.1.9
[Migrated from Gold 4.1.8 to Pro 4.1.9 - Feb 2008]
Add Ons: X-FancyCategories, X-Magnifier, X-FeatureComparison, X-SpecialOffers
Reply With Quote
  #2  
Old 04-03-2009, 01:45 AM
  Rajdeep's Avatar 
Rajdeep Rajdeep is offline
 

Senior Member
  
Join Date: May 2007
Posts: 115
 

Default Re: Free Shipping Button in Products page

Simplified option what I feel would be to add a "Free Shipping" flag on thumbnail (products page & product page as well) on product(s) that have free shipping enabled..

Any help on this ?

Regards.
__________________
X-Cart Pro 4.1.9
[Migrated from Gold 4.1.8 to Pro 4.1.9 - Feb 2008]
Add Ons: X-FancyCategories, X-Magnifier, X-FeatureComparison, X-SpecialOffers
Reply With Quote
  #3  
Old 04-07-2009, 09:21 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Free Shipping Button in Products page

Hi,
Yes is it possible to create a small image in the product/products page on each product which have free shipping enabled on item card?

Thanks to all.
__________________
4.6.1 Platinum


Reply With Quote
  #4  
Old 04-07-2009, 11:26 PM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: Free Shipping Button in Products page

Quote:
Originally Posted by Rajdeep
Simplified option what I feel would be to add a "Free Shipping" flag on thumbnail (products page & product page as well) on product(s) that have free shipping enabled..

Any help on this ?

Regards.


Below code works for me, but unfortunately I got no idea how to place a image on the thumbnail(s):

{if $product.free_shipping eq "Y"} <img src="{$ImagesDir}/your_free_shipping_image.gif">{/if}
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #5  
Old 04-08-2009, 12:23 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Free Shipping Button in Products page

Quote:
Originally Posted by Jerrad
Below code works for me, but unfortunately I got no idea how to place a image on the thumbnail(s):

{if $product.free_shipping eq "Y"} <img src="{$ImagesDir}/your_free_shipping_image.gif">{/if}

Thanks Jerrad for your response.Where we call this code in product page?
__________________
4.6.1 Platinum


Reply With Quote
  #6  
Old 04-08-2009, 01:40 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: Free Shipping Button in Products page

Rename the 'your_free_shipping_image.gif' to your freeshipping image.

{if $product.free_shipping eq "Y"} <img src="{$ImagesDir}/your_free_shipping_image.gif" border="0">{/if}


Upload your freeshipping image to your images folder and in product.tpl put the code where you want the freeshipping image to appear.

Use below code if you want to display the freeshipping image on the products page (products_t.tpl):

{if $products[product].free_shipping eq "Y"} <img src="{$ImagesDir}/your_free_shipping_image.gif border="0">{/if}


Good luck!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #7  
Old 04-08-2009, 02:54 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Free Shipping Button in Products page

Thanks Jerrad for your response. But if I want to display it on top left/top right corner on the thumbnail image.Is it possible?

The code here product_thumbnail.tpl

{* $Id: product_thumbnail.tpl,v 1.19.2.4 2008/07/15 12:07:39 ferz Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y" or ($type ne "T" and $type ne "")}<img{if $id ne ''} id="{$id}"{/if} src="{if $tmbn_url}{$tmbn_url|amp}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?type={$type|default:"T"}&id={$productid} {/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" />{/if}
Please guide me to do this.
__________________
4.6.1 Platinum


Reply With Quote
  #8  
Old 04-08-2009, 03:16 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: Free Shipping Button in Products page

I'm sure it's possible, but I wouldn't know how to accomplish such a (layer) effect.

Maybe somebody else can help you with this...
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote

The following user thanks Jerrad for this useful post:
Learner (04-08-2009)
  #9  
Old 04-08-2009, 04:01 AM
  Rajdeep's Avatar 
Rajdeep Rajdeep is offline
 

Senior Member
  
Join Date: May 2007
Posts: 115
 

Default Re: Free Shipping Button in Products page

Great!

That simplifies my requirement too....

Thanks a ton Jerrad for the inputs...


Best Regards,
__________________
X-Cart Pro 4.1.9
[Migrated from Gold 4.1.8 to Pro 4.1.9 - Feb 2008]
Add Ons: X-FancyCategories, X-Magnifier, X-FeatureComparison, X-SpecialOffers
Reply With Quote
  #10  
Old 05-13-2009, 11:59 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Free Shipping Button in Products page

Quote:
Originally Posted by Jerrad
Rename the 'your_free_shipping_image.gif' to your freeshipping image.

{if $product.free_shipping eq "Y"} <img src="{$ImagesDir}/your_free_shipping_image.gif" border="0">{/if}


Upload your freeshipping image to your images folder and in product.tpl put the code where you want the freeshipping image to appear.

Use below code if you want to display the freeshipping image on the products page (products_t.tpl):

{if $products[product].free_shipping eq "Y"} <img src="{$ImagesDir}/your_free_shipping_image.gif border="0">{/if}


Good luck!
Thanks Jerrad for your codes.Now If I want to display only free shipping products just clicking on free Shipping product button on home page(works same as search), is it possible?
If possible how?
Can anyone help me?

Thanks to all.
__________________
4.6.1 Platinum


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 06:04 AM.

   

 
X-Cart forums © 2001-2020