X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   need a way to have a catagory available for phone order only (https://forum.x-cart.com/showthread.php?t=44974)

cbostard 01-21-2009 06:23 AM

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.

GreatLakesVacuum 01-21-2009 10:39 AM

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

cbostard 01-21-2009 01:49 PM

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

GreatLakesVacuum 01-21-2009 04:07 PM

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 :)

ARW VISIONS 01-21-2009 04:17 PM

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.

ARW VISIONS 01-21-2009 04:25 PM

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}

cbostard 01-21-2009 06:37 PM

Re: need a way to have a catagory available for phone order only
 
Thanks Ashley, that works great.
i really appriciate it

ARW VISIONS 01-21-2009 07:13 PM

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

philrisk 12-30-2009 04:09 AM

Re: need a way to have a catagory available for phone order only
 
top bananas that little tweak works a treat. cheers :-p

cbostard 01-16-2010 01:35 PM

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

ARW VISIONS 01-17-2010 08:17 AM

Re: need a way to have a catagory available for phone order only
 
{if $cat > 249 && $cat < 275}
Pleae call to order
{else}
{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}
{/if}

might work

cbostard 01-17-2010 11:23 AM

Re: need a way to have a catagory available for phone order only
 
once again Superb, Thanks alot.
Chris

cbostard 01-18-2010 08:35 AM

Re: need a way to have a catagory available for phone order only
 
Ashley, Thanks again for all your help. If I may ask to go one step further.
Now we have the catagories 249 to 276 "Call to order". I do have the Wishlist button activated, cause I would like the customer to be able to create a wishlist of the items in the cat. 249 to 276 then email to me". But when a wishlist is created the Add to Cart is activated. I would like to possibly delete the add to cart button only for the catagories that are "Call to Order". thus doing so it will not affect any other products that are in the wishlist from other catagories.

I was looking in the /modules/wl_buttons.tpl but not sure if that is the correct template and how to rewrite it.

any more help would be great.

Chris

ARW VISIONS 01-18-2010 08:52 AM

Re: need a way to have a catagory available for phone order only
 
What do you mean the button is activeted? it show on the product page? can you post a URL please?


All times are GMT -8. The time now is 09:10 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.