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

shop by price mod?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-26-2009, 12:28 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default shop by price mod?

is there a shop by price mod? left hand menu like this?

Shop by Price:
$0-$50
$51-$150
$151-$500
$500 - Up
__________________
xcart 5.1.2
Reply With Quote
  #2  
Old 10-26-2009, 05:33 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: shop by price mod?

You probably know this but how about hard coded like this

search.php?mode=search&including=all&price_min=50& price_max=100
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 10-27-2009, 04:06 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: shop by price mod?

Steve,

I wasn't sure of the exact syntax. thanks

Ash
__________________
xcart 5.1.2
Reply With Quote
  #4  
Old 11-18-2009, 11:14 PM
  flyclothing's Avatar 
flyclothing flyclothing is offline
 

eXpert
  
Join Date: Aug 2004
Location: Gilbert, AZ
Posts: 357
 

Default Re: shop by price mod?

Ashley,

I just did this one for 4.2.3

{capture name=menu}
<ul>
<li><strong><a href="search.php?mode=search&including=all&price_m in=1& price_max=25&sort=price&sort_direction=0">
$1-$25</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=26& price_max=50&sort=price&sort_direction=0">$26-$50</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=51& price_max=75&sort=price&sort_direction=0">$51-$75</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=76& price_max=100&sort=price&sort_direction=0">$76-100</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=100& price_max=500&sort=price&sort_direction=0">$100+</a></strong></li>
</ul>
{assign var="additional_class" value="menu-categories-list"}
{/capture}
{include file="customer/menu_dialog.tpl" title="Shop By Price" content=$smarty.capture.menu}
__________________
Jonathan
Flyclothing, LLC
PO Box 1490
Gilbert, AZ 85299-1571
P 480.422.7350
F 888.359.2568
www.flysportsgear.com?MMCF_xcartforum (X-Cart 4.5.2) FOR SALE
Reply With Quote

The following user thanks flyclothing for this useful post:
dwpers (12-18-2009)
  #5  
Old 11-19-2009, 01:39 PM
 
Regs Regs is offline
 

Senior Member
  
Join Date: Apr 2003
Location: Vancouver BC
Posts: 134
 

Default Re: shop by price mod?

Quote:
Originally Posted by flyclothing
Ashley,

I just did this one for 4.2.3

{capture name=menu}
<ul>
<li><strong><a href="search.php?mode=search&including=all&price_m in=1& price_max=25&sort=price&sort_direction=0">
$1-$25</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=26& price_max=50&sort=price&sort_direction=0">$26-$50</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=51& price_max=75&sort=price&sort_direction=0">$51-$75</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=76& price_max=100&sort=price&sort_direction=0">$76-100</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=100& price_max=500&sort=price&sort_direction=0">$100+</a></strong></li>
</ul>
{assign var="additional_class" value="menu-categories-list"}
{/capture}
{include file="customer/menu_dialog.tpl" title="Shop By Price" content=$smarty.capture.menu}
Excellent!

Had to modify it to make work for me though. There are a couple of spaces in your various links that need to be removed. Additionally, I found that the "&sort=price&sort_direction=0" made the links only search one category? Weird - removal of that bit of code in the links makes it all well for me (also working with 4.2.3)

Cheers,

Regs.
__________________
x-cart 4.2.3 & 4.6.0
Reply With Quote
  #6  
Old 11-19-2009, 02:57 PM
  flyclothing's Avatar 
flyclothing flyclothing is offline
 

eXpert
  
Join Date: Aug 2004
Location: Gilbert, AZ
Posts: 357
 

Default Re: shop by price mod?

Yeah, I set it up to fit with my store so I figured it might need a bit of modification to fit elsewhere, i.e. bullets and formatting. I added the code at the end because the results didn't seem to show the lowest price item first.
__________________
Jonathan
Flyclothing, LLC
PO Box 1490
Gilbert, AZ 85299-1571
P 480.422.7350
F 888.359.2568
www.flysportsgear.com?MMCF_xcartforum (X-Cart 4.5.2) FOR SALE
Reply With Quote
  #7  
Old 12-08-2009, 01:58 PM
 
GEMaffair.com GEMaffair.com is offline
 

Advanced Member
  
Join Date: May 2009
Posts: 61
 

Default Re: shop by price mod?

Is there anyway to make this work with the existing category? I mean if you are in a category 3 levels down on a site with 2000 products, you don't want it to show you shop by price for any product on the site, but only the cat they are in, right?

Michael
__________________
Mike
4.2 Gold
Feed Manager Pro
Marketing Manger Pro
eBay Auction Manager
Order History for Admin
Xcart Sitemap (customer map)
Customer Review Bundle
Product Meta Tags Plus
Phone Ordering/POS Module
MAP Pricing Module
Quote Request Module
Back in Stock Module
EZ upsell
Remember Anonymous Carts
One Page Checkout
Altered Cart Smart Search
Social Bookmarking
Tabbed Product Menu
Many custom mods from Qualiteam
Reply With Quote
  #8  
Old 12-18-2009, 06:50 AM
 
dwpers dwpers is offline
 

Senior Member
  
Join Date: Aug 2009
Location: Washington D.C.
Posts: 136
 

Default Re: shop by price mod?

Where exactly would this go in the skin files?

Quote:
{capture name=menu}
<ul>
<li><strong><a href="search.php?mode=search&including=all&price_m in=1& price_max=25&sort=price&sort_direction=0">
$1-$25</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=26& price_max=50&sort=price&sort_direction=0">$26-$50</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=51& price_max=75&sort=price&sort_direction=0">$51-$75</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=76& price_max=100&sort=price&sort_direction=0">$76-100</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=100& price_max=500&sort=price&sort_direction=0">$100+</a></strong></li>
</ul>
{assign var="additional_class" value="menu-categories-list"}
{/capture}
{include file="customer/menu_dialog.tpl" title="Shop By Price" content=$smarty.capture.menu}
__________________
X-Cart Pro 4.2.2
Reply With Quote
  #9  
Old 12-18-2009, 06:52 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: shop by price mod?

skin1/customer/home.tpl in left or right column
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
dwpers (12-18-2009)
  #10  
Old 12-18-2009, 07:31 AM
 
dwpers dwpers is offline
 

Senior Member
  
Join Date: Aug 2009
Location: Washington D.C.
Posts: 136
 

Default Re: shop by price mod?

Thanks again
__________________
X-Cart Pro 4.2.2
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 02:43 AM.

   

 
X-Cart forums © 2001-2020