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

need a way to have a catagory available for phone order only

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-21-2009, 06:23 AM
 
cbostard cbostard is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: USA/ New Jersey
Posts: 47
 

Default need a way to have a catagory available for phone order only

is there a way to have an entire catagory available for phone ordering only, thus also possibly not showing a buy now or add to cart or create a please call button.
__________________
Version 4.3.1
fancy catagories (enabled)
dynamic image generator 4.1(enabled)
tabbed menu buttons
Cdseo Pro (enabled)
anonymous cart mod (enabled )
skin swap "mod doesnt work well for me"
x-magnafier
xcart Gift registry
Reply With Quote
  #2  
Old 01-21-2009, 10:39 AM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Re: need a way to have a catagory available for phone order only

This thread will show you the kind of statement to get stuff for just one category...
http://forum.x-cart.com/showthread.php?t=44976

I will post you another thread I was just in that showed how to remove those buttons (we did it for items of 0 dollars ... this making them call for price ... so there was no need to do any category stuff, you could just set all items in that category to 0 dollars.

EDIT: here is the other thread with the call for price information: http://forum.x-cart.com/showthread.php?t=18727
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
  #3  
Old 01-21-2009, 01:49 PM
 
cbostard cbostard is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: USA/ New Jersey
Posts: 47
 

Default Re: need a way to have a catagory available for phone order only

that all sounds good but I still want to show price for the products in the catagory
__________________
Version 4.3.1
fancy catagories (enabled)
dynamic image generator 4.1(enabled)
tabbed menu buttons
Cdseo Pro (enabled)
anonymous cart mod (enabled )
skin swap "mod doesnt work well for me"
x-magnafier
xcart Gift registry
Reply With Quote
  #4  
Old 01-21-2009, 04:07 PM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Re: need a way to have a catagory available for phone order only

Well I am sure you could put the "please call text instead of the add now/buy now" buttons.

That way you would have your price and the call info..

I just thought with those 2 threads you could pull something together
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
  #5  
Old 01-21-2009, 04:17 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

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

Default Re: need a way to have a catagory available for phone order only

you can remove the buy now button from a category and replace it with please call.

***back up your product.tpl***



in product.tpl find this code.

<tr>
<td class="ProductPriceConverting" valign="top">{$lng.lbl_price}:</td>
<td valign="top">
{if $product.taxed_price ne 0 || $variant_price_no_empty}
<font><span id="product_price" style="white-space: nowrap;">{include file="currency.tpl" value=$product.taxed_price plain_text_message=true}</span></font><font class="MarketPrice"> <span id="product_alt_price" style="white-space: nowrap;">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price plain_text_message=true}</span></font>
{if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if}
{else}
<input type="text" size="7" name="price" />
{/if}
</td>
</tr>

replace it with this. make sure to change 249 to whatever you category number is.

{if $cat eq 249}
<tr>
<td>
Please call to order
</td>
</tr>
{else}
<tr>
<td class="ProductPriceConverting" valign="top">{$lng.lbl_price}:</td>
<td valign="top">
{if $product.taxed_price ne 0 || $variant_price_no_empty}
<font><span id="product_price" style="white-space: nowrap;">{include file="currency.tpl" value=$product.taxed_price plain_text_message=true}</span></font><font class="MarketPrice"> <span id="product_alt_price" style="white-space: nowrap;">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price plain_text_message=true}</span></font>
{if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if}
{else}
<input type="text" size="7" name="price" />
{/if}
</td>
</tr>
{/if}


are you using the add to cart button on the products page? (the page with multiple products.) because that will need to be changed also.
__________________
xcart 5.1.2
Reply With Quote
  #6  
Old 01-21-2009, 04:25 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

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

Default Re: need a way to have a catagory available for phone order only

I just woke up from a nap excuse me.

Im sorry that is wrong. it removes the price not the buy now.

find this
{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}

and replace with this

{if $cat eq 249}
Pleae call to order
{else}
{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}
{/if}
__________________
xcart 5.1.2
Reply With Quote
  #7  
Old 01-21-2009, 06:37 PM
 
cbostard cbostard is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: USA/ New Jersey
Posts: 47
 

Default Re: need a way to have a catagory available for phone order only

Thanks Ashley, that works great.
i really appriciate it
__________________
Version 4.3.1
fancy catagories (enabled)
dynamic image generator 4.1(enabled)
tabbed menu buttons
Cdseo Pro (enabled)
anonymous cart mod (enabled )
skin swap "mod doesnt work well for me"
x-magnafier
xcart Gift registry
Reply With Quote
  #8  
Old 01-21-2009, 07:13 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

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

Default Re: need a way to have a catagory available for phone order only

de nada
__________________
xcart 5.1.2
Reply With Quote
  #9  
Old 12-30-2009, 04:09 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: need a way to have a catagory available for phone order only

top bananas that little tweak works a treat. cheers :-p
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
  #10  
Old 01-16-2010, 01:35 PM
 
cbostard cbostard is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: USA/ New Jersey
Posts: 47
 

Default Re: need a way to have a catagory available for phone order only

The script works good but can anyone help by telling me how to add the call to order to a group or multiple catagories, I want to put the ( Call To Order ) in the catagory and all sub catagories within it.

lets say a range like
{if $cat eq 250 to 275} just dont know how to right it.

Thanks
Chris
__________________
Version 4.3.1
fancy catagories (enabled)
dynamic image generator 4.1(enabled)
tabbed menu buttons
Cdseo Pro (enabled)
anonymous cart mod (enabled )
skin swap "mod doesnt work well for me"
x-magnafier
xcart Gift registry
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:50 PM.

   

 
X-Cart forums © 2001-2020