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

free <PREV | NEXT> mod help

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #61  
Old 09-12-2009, 08:16 PM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: free <PREV | NEXT> mod help

I have only one product in my category, but the next and prev still displays how can we fix this?
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
Reply With Quote
  #62  
Old 09-12-2009, 10:15 PM
 
mydls mydls is offline
 

Member
  
Join Date: Mar 2007
Posts: 25
 

Default Re: free <PREV | NEXT> mod help

I've just got it installed, it works well.
__________________
xCart Pro Version 4.4.2
Download Expander
Buy Together
Reply With Quote
  #63  
Old 09-12-2009, 10:40 PM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: free <PREV | NEXT> mod help

Some advice to make links show or hide depending on if there is actually a next product or previous product.

Change:
--------------
$prev = end($list);

To:
--------------
$prev = "";

AND CHANGE:
--------------
$next = $list[0];

TO:
--------------
$next = "";
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
Reply With Quote

The following user thanks mrerotic for this useful post:
Warwick (09-22-2009)
  #64  
Old 06-21-2011, 09:07 AM
  flyclothing's Avatar 
flyclothing flyclothing is offline
 

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

Default Re: free <PREV | NEXT> mod help

I know this thread is old but wanted to see if anyone knows how to integrate this so it would only show available products. It currently shows products which are disabled.
__________________
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
  #65  
Old 06-22-2011, 04:44 PM
 
upupcreative upupcreative is offline
 

Advanced Member
  
Join Date: Aug 2010
Posts: 66
 

Default Re: free <PREV | NEXT> mod help

whee! i followed along with all of the stuff in this forum post and i, like tammy, couldn't get it to show up. until i moved the include line in product.tpl to RIGHT BEFORE the image. so instead of it being after

<script type="text/javascript">

i put it right before

{capture name=dialog}

and now it works! HOORAY!

julie
__________________
Version 4.4.2
Reply With Quote
  #66  
Old 04-19-2012, 08:54 AM
  SamsonWebDesign's Avatar 
SamsonWebDesign SamsonWebDesign is offline
 

Senior Member
  
Join Date: Oct 2008
Location: East Sussex, UK
Posts: 101
 

Default Re: free <PREV | NEXT> mod help

I've got an issue with this mod. I have it working almost perfectly and sorting the set by the category order. As I have products that appear in multiple categories it goes wrong when it gets to a product in multiple categories. It sometimes switches category.

i.e. I'm looking through category a and as I get to a product whose main category is category b it seems to switch and start going through a new category.

Code is
PHP Code:
$mem_list func_query("SELECT pr.productid, pr.product FROM $sql_tbl[products] AS pr LEFT JOIN $sql_tbl[products_categories] AS cat ON cat.productid = pr.productid WHERE cat.categoryid = '$product_info[categoryid]' AND pr.productid = cat.productid AND pr.forsale='Y' ORDER BY cat.orderby, pr.product"); 

Any ideas how I force it to stay in the category it go to the product from rather than using the main category the product is in?
__________________
Versions 4.1.11 to 4.6.4 ... when will the new versions end!

Custom X-Cart driven e-commerce sites, skins and installations at www.samsonwebdesign.co.uk
Reply With Quote
  #67  
Old 04-19-2012, 01:55 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: free <PREV | NEXT> mod help

Have you tried replacing $product_info[categoryid] with the current category ($cat or $current_category[categoryid])?
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #68  
Old 04-19-2012, 11:30 PM
  SamsonWebDesign's Avatar 
SamsonWebDesign SamsonWebDesign is offline
 

Senior Member
  
Join Date: Oct 2008
Location: East Sussex, UK
Posts: 101
 

Default Re: free <PREV | NEXT> mod help

Quote:
Originally Posted by cherie
Have you tried replacing $product_info[categoryid] with the current category ($cat or $current_category[categoryid])?

Yes tried that and no joy.
Just need to figure out how to make it stay in the category that you accessed the product from so can't really use the current cat as it seems to take the main category the product is in as current cat.

Tricky one!
__________________
Versions 4.1.11 to 4.6.4 ... when will the new versions end!

Custom X-Cart driven e-commerce sites, skins and installations at www.samsonwebdesign.co.uk
Reply With Quote
  #69  
Old 04-20-2012, 05:44 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: free <PREV | NEXT> mod help

It sounds like the current category is getting changed along the way either by this customization or another. Maybe the next/prev links themselves are not maintaining the category.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #70  
Old 04-20-2012, 05:45 AM
  SamsonWebDesign's Avatar 
SamsonWebDesign SamsonWebDesign is offline
 

Senior Member
  
Join Date: Oct 2008
Location: East Sussex, UK
Posts: 101
 

Default Re: free <PREV | NEXT> mod help

Yes. Going to give up on this and buy the mod from Website CM that does the job perfectly for $19.99!
__________________
Versions 4.1.11 to 4.6.4 ... when will the new versions end!

Custom X-Cart driven e-commerce sites, skins and installations at www.samsonwebdesign.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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 09:38 AM.

   

 
X-Cart forums © 2001-2020