X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Free Shipping Button in Products page (https://forum.x-cart.com/showthread.php?t=46742)

Rajdeep 04-03-2009 12:28 AM

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,

Rajdeep 04-03-2009 01:45 AM

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.

Learner 04-07-2009 09:21 PM

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.

Jerrad 04-07-2009 11:26 PM

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}

Learner 04-08-2009 12:23 AM

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?

Jerrad 04-08-2009 01:40 AM

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! :D

Learner 04-08-2009 02:54 AM

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.

Jerrad 04-08-2009 03:16 AM

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...

Rajdeep 04-08-2009 04:01 AM

Re: Free Shipping Button in Products page
 
Great!

That simplifies my requirement too....

Thanks a ton Jerrad for the inputs...


Best Regards,

Learner 05-13-2009 11:59 PM

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! :D

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.

dwpers 12-08-2009 11:08 AM

Re: Free Shipping Button in Products page
 
I would like to know how to do this as well, 4.2.x does not have a products_t.tpl file, therefore trying my hand at this has been frustrating.

cflsystems 12-08-2009 11:55 AM

Re: Free Shipping Button in Products page
 
4.2.x does have products_t.tpl and products_list.tpl. They are in skin1/customer/main

dwpers 12-08-2009 12:06 PM

Re: Free Shipping Button in Products page
 
Ah, I was looking in skin1/main - thanks a bunch CFL! :)

dwpers 12-08-2009 12:45 PM

Re: Free Shipping Button in Products page
 
After opening it up, there's no {if $product.free_shipping eq "Y"} statement

cflsystems 12-08-2009 03:41 PM

Re: Free Shipping Button in Products page
 
Not by default. This thread is how you can do it youeself so you have to add the code. read post #6


All times are GMT -8. The time now is 08:07 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.