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

Add new page for "free shipping" products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-27-2011, 09:56 AM
 
skylark skylark is offline
 

Newbie
  
Join Date: Jul 2011
Location: Edmonton, Alberta, Canada
Posts: 7
 

Default Add new page for "free shipping" products

This is my first site using x-cart and I am not a developer.

I need some help to create a new listing like "Featured Products" that displays only products with "Free Shipping" set to yes in the product setup. I have an image in the welcome content (welcome.tpl) that I would like to use to link to this new listing of products.

Here is what I have done so far...
1) In welcome.tpl - added the image and linked it to help.php for now:
<a href="help.php"><img src="{$AltImagesDir}/2column/free_ship.jpg" alt="" /></a>

2) I have copied featured.tpl to a new file called free_shipping.tpl. I changed lbl_featured_products to lbl_free_shipping_products and added the label in the admin page.

Here I am stuck...
1) Where and what do I need to change to use the same layout as featured products but only when "Free Shipping" is "yes" - whether the product is featured or not?
2) How do I link the product listing to the image?

Any help would be much appreciated!
__________________
X Cart PRO 4.4.2 (unix)
Reply With Quote
  #2  
Old 07-27-2011, 11:30 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Add new page for "free shipping" products

You can create new contents pages in admin/static pages but they are just that - static pages. You can put any contents you want in them.
To have something that will dynamically list specific products based on some criteria you will need this custom coded. Your specific request doesn;t exist as standard in XC. You can contact me or any other XC developer for professional help
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 07-28-2011, 09:04 AM
 
skylark skylark is offline
 

Newbie
  
Join Date: Jul 2011
Location: Edmonton, Alberta, Canada
Posts: 7
 

Default Re: Add new page for "free shipping" products

I was able to figure this out on my own - just wanted some direction.

It may be a bit of a hack job since this is not my area of expertise, but it does what I need it to.
__________________
X Cart PRO 4.4.2 (unix)
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 03:37 PM.

   

 
X-Cart forums © 2001-2020