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

Increase Quantity for specific product

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-15-2009, 01:51 PM
 
Group Imaging Group Imaging is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 38
 

Default Increase Quantity for specific product

I am trying to add a specific product that I would like to increase the available quantity of, but not allow it to effect the rest of my products.

My default store quantity allowed is 50 which is fine for all of my other products. I want to specify this specific product to allow a quantity of up to 20,000 to be selected. (I know I can set the default store quantity to 20000 but it slows down the menu due to the large amount of numbers it populates).

Anyone have a solution for this?
__________________
Brad Thompson
Group Imaging
X-Cart Gold Version 4.1.8
Reply With Quote
  #2  
Old 09-15-2009, 02:13 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Increase Quantity for specific product

Replace the dropdown with text input field. then you don't have to worry about the numbers and it won't slow down the page load
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Ashley (09-17-2009)
  #3  
Old 09-15-2009, 02:16 PM
 
Group Imaging Group Imaging is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 38
 

Default Re: Increase Quantity for specific product

that would work but I would still like to have the quantity drop down on the rest of my products, is there an {if} statement I can use to specify this specific product?
__________________
Brad Thompson
Group Imaging
X-Cart Gold Version 4.1.8
Reply With Quote
  #4  
Old 09-15-2009, 02:22 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Increase Quantity for specific product

{if $product.productid eq "xxx"}
show text field code
{else}
show dropdown code
{/if}

replace xxx with product number (not sku)
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 09-17-2009, 07:43 AM
 
ChristineP ChristineP is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 310
 

Default Re: Increase Quantity for specific product

I need to get this to work for our store as well. All of our customers must login to view pricing and I already have this working with the text field on our store. Now I need to add the drop down for our closeouts category only, as there are several closeout items that will have only 1 available. I can get both the drop down and the text field to show and the drop down does show only the limited number of items for each closeout, but I'm not capturing the right {if} statement to change from text field to drop down.
__________________
______________
version 4.1.9 Gold
Reply With Quote
  #6  
Old 09-17-2009, 08:02 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: Increase Quantity for specific product

{if $cat eq "256"}
drop down
{else}
text field
{/if}

replace the 256 with category number.
__________________
xcart 5.1.2
Reply With Quote

The following user thanks ARW VISIONS for this useful post:
ChristineP (09-18-2009)
  #7  
Old 09-18-2009, 10:42 AM
 
ChristineP ChristineP is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 310
 

Default Re: Increase Quantity for specific product

Thanks Ashley.

I've tried using {if $cat eq "78"} or {if $cat eq 78} for my closeouts category, but this isn't working for me in my product.tpl. I tried this also for showing the discount and crossed out market price with another thread, but no cigar. What has worked is using an extra field that I have set up for condition rating for my closeouts, and for this thread for either the text or drop down quantity to show, I am able to get this to work with {if $product.avail eq 1} and it shows the drop down selection for my closeouts with only 1 available.

{if $product.avail eq 1}
drop down
{else}
text field
{/if}

Christine
__________________
______________
version 4.1.9 Gold
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 05:57 AM.

   

 
X-Cart forums © 2001-2020