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

Qty Removal in product.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-30-2010, 07:22 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Qty Removal in product.tpl

Are you talking about 4.2.1 or 4.4.1?
4.2.1 has only one in skin1/customer/main
4.4.1 has many but you need the one in the skin you are using
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #12  
Old 01-11-2011, 01:53 PM
 
artistwantab artistwantab is offline
 

eXpert
  
Join Date: Jul 2009
Posts: 320
 

Default Re: Qty Removal in product.tpl

4.4.1...

It took me this long to get the upgrade working properly...hehe.
__________________
X-Cart version 4.7.2
x-special Offers
Reply With Quote
  #13  
Old 02-25-2011, 08:00 AM
  HAS's Avatar 
HAS HAS is offline
 

Member
  
Join Date: Apr 2010
Location: The Netherlands
Posts: 20
 

Default Re: Qty Removal in product.tpl

Quote:
Originally Posted by cflsystems
It will be in buy_now.tpl and is siimilar

Hello,

I am trying to hide the quantity-dropdown box in productslist.tpl, so I put in next code (removed the original part):

Code:
<script type="text/javascript"> <!-- var min_avail = 1; var avail = 1; var product_avail = 1; --> </script> <input type="hidden" name="amount" value="1" />

This works fine exept when a product has a minimum order quantity for example lets say 10pcs then an error shows up, and the product will not be added to the cart.
When I change the value="1" into value="10" the cart wil be updated with 10pcs as long as the MOQ is set less than 10pcs in the productdetails.
But then all the products with MOQ <10pcs will be added to the cart with 10x
Is there a way to fix this problem? What exactly does :
Code:
<input type="hidden" name="amount" value="1" />
__________________
http://www.batterijservice.nl
v.4.3.1

Xbanner | CDSEO | Marketing manager pro | Hidden Cat. | Glossary Tiptool | MM OPC | Social bookmarks | Advanced filter | Mega menu | Store Manager | Custom datafeed | MSP payment
Reply With Quote
  #14  
Old 06-27-2011, 11:31 AM
 
upupcreative upupcreative is offline
 

Advanced Member
  
Join Date: Aug 2010
Posts: 66
 

Default Re: Qty Removal in product.tpl

So, I'd like to remove the quantity selector ONLY for one category in my shop. So basically I'm going to modify product_details.tpl to achieve the following logic:

if category == wedding then:
quantity = 1
and hide the quantity input box

So here's what I think I need to add:

{if $product.categoryid == 4}
<script type="text/javascript">
<!--
var min_avail = 1;
var avail = 1;
var product_avail = 1;
-->
</script>
<input type="hidden" name="amount" value="1" />

{/if}

HOWEVER: I'm not sure where to add it and what to do with what's already there.

I appreciate any guidance - I considered just playing around to figure it out but I really don't want to spend the afternoon undoing things if I don't need to.

Thanks,
Julie
__________________
Version 4.4.2
Reply With Quote
  #15  
Old 10-02-2011, 08:01 PM
 
makenoiz makenoiz is offline
 

Advanced Member
  
Join Date: Jun 2011
Posts: 35
 

Default Re: Qty Removal in product.tpl

I just hid mine with css!
__________________
X-Cart version 4.4.3
Reply With Quote
  #16  
Old 10-27-2011, 03:11 AM
 
info@ausnetit.com.au info@ausnetit.com.au is offline
 

Advanced Member
  
Join Date: Aug 2010
Posts: 35
 

Default Re: Qty Removal in product.tpl

Hi,

How you do that?

Thanks,
__________________
Chamath De Costa
Version X-Cart Gold.


Melbourne website design
SEO in melbourne
Reply With Quote
  #17  
Old 10-27-2011, 03:22 AM
 
info@ausnetit.com.au info@ausnetit.com.au is offline
 

Advanced Member
  
Join Date: Aug 2010
Posts: 35
 

Default Re: Qty Removal in product.tpl

HI,

How do we remove

Our price:

Options
Quantity (100 available)
  • Add to cart button or link to Contact us page?
from V 4.4.3?
__________________
Chamath De Costa
Version X-Cart Gold.


Melbourne website design
SEO in melbourne
Reply With Quote
  #18  
Old 10-27-2011, 01:57 PM
 
makenoiz makenoiz is offline
 

Advanced Member
  
Join Date: Jun 2011
Posts: 35
 

Default Re: Qty Removal in product.tpl

I removed my quantity input box row by adding the following in my skins css file:
Code:
.product-details tr.quantity-row{display:none;}

I tested to make sure it would still default to quantity 1 if the customer clicked buy button.
__________________
X-Cart version 4.4.3
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 12:34 PM.

   

 
X-Cart forums © 2001-2020