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

how to delete this (with pic)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-12-2007, 09:40 PM
 
aquaimaging aquaimaging is offline
 

Member
  
Join Date: Dec 2007
Posts: 29
 

Default how to delete this (with pic)

http://i91.photobucket.com/albums/k293/pindeho2005/how.gif

pls help how to delete this or how can i make the value 100, 101, 102 into 100, 200, 300, 400 etch... im newbie
__________________
Version 4.1.9
Reply With Quote
  #2  
Old 12-13-2007, 03:46 AM
  DataViking's Avatar 
DataViking DataViking is offline
 

eXpert
  
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 361
 

Default Re: how to delete this (with pic)

you can change the quantity in the admin side, but if you have other products i sugest to add a product option instead
__________________
Web Design Web Design and Custom X-Cart Projects

http://www.dataviking.com

Mention the forums for discounts!
x-cart Version 4.1.8
Reply With Quote
  #3  
Old 12-13-2007, 08:21 AM
 
artuli artuli is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 32
 

Default Re: how to delete this (with pic)

I've been having the same question!

I used to know for 4.0, but it don't work no mo.
Oh, I slipped into verse. Sorry.
__________________
Young Reinette: What do monsters have nightmares about?
The Doctor: Me!

X-Cart Gold 4.1.10
X-Cart Gold 4.2
Mac OS X 10.5.7
Reply With Quote
  #4  
Old 12-13-2007, 08:42 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: how to delete this (with pic)

This is super easy...

in /skin1/customer/main/product.tpl

FIND:

Code:
<select id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && $product_options ne ''} onchange="check_wholesale(this.value);"{/if}> {section name=quantity loop=$mq start=$start_quantity} <option value="{%quantity.index%}"{if $smarty.get.quantity eq %quantity.index%} selected="selected"{/if}>{%quantity.index%}</option> {/section} </select>

BEFORE this codeblock, insert:
Code:
{* BEGIN change qty to 1 for product 29 or 30 *} {if $product.productid eq '29' or $product.productid eq '30'} <input type="hidden" name="amount" value="1"> {else} {* END change qty to 1 for product 29 or 30 *}

AFTER the </select> in the first codeblock, add:

Code:
{/if}{* added for change qty to 1 for product 29 or 30 *}

I used this for two products... product id 29 and 30. You will have to adjust for your own products.

NOW, if you have many products to do this for (i.e. your entire site) then simply replace the code...

The thing I learned is that a value must always be passed -- if it's 1 that's ok, but it must be a positive integer. So, make it hidden and constrain it to value="1".

OK?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 12-14-2007, 12:24 AM
 
aquaimaging aquaimaging is offline
 

Member
  
Join Date: Dec 2007
Posts: 29
 

Default Re: how to delete this (with pic)

i removed the quantity box but when i click the details the quantity box is still there..
__________________
Version 4.1.9
Reply With Quote
  #6  
Old 12-16-2007, 03:10 PM
 
aquaimaging aquaimaging is offline
 

Member
  
Join Date: Dec 2007
Posts: 29
 

Default Re: how to delete this (with pic)

help pls...
__________________
Version 4.1.9
Reply With Quote
  #7  
Old 12-16-2007, 03:12 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: how to delete this (with pic)

I gave it to you in post #4 (for product details)
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #8  
Old 12-16-2007, 04:36 PM
 
aquaimaging aquaimaging is offline
 

Member
  
Join Date: Dec 2007
Posts: 29
 

Default Re: how to delete this (with pic)

i done what you stated above but the quantity box in details are still there.. where can i find the product number? sorry for being noob.. thanks guys
__________________
Version 4.1.9
Reply With Quote
  #9  
Old 12-16-2007, 04:41 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: how to delete this (with pic)

If you are in the modify product page -- the url will look like:

/provider/product_modify.php?productid=34

That's your product id.

OR -- you can HOVER over the link to the product modify in the search results... and in your browser "status bar" it will tell you...

Unless your product id is set correctly, this code will not work.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #10  
Old 12-16-2007, 05:14 PM
 
aquaimaging aquaimaging is offline
 

Member
  
Join Date: Dec 2007
Posts: 29
 

Default Re: how to delete this (with pic)

http://i91.photobucket.com/albums/k293/pindeho2005/howto.gif
this is what im telling.. i hope you could help me.. i know a bit in php and html but i can't figure it out and how im gonna do it.. maybe im just too noob for this..
__________________
Version 4.1.9
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 10:53 AM.

   

 
X-Cart forums © 2001-2020