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)
-   -   Want to remove buy button on selected products. (https://forum.x-cart.com/showthread.php?t=72170)

Soft-Reseller.com 05-26-2015 05:15 AM

Want to remove buy button on selected products.
 
Hello

I have a little issue and no big deal for a programmer simple an if statement but unfortunately I am not a programmer.

I have 2 types of products on my website. One those which I am selling as reseller and second those which I am not authorized to sell but as affiliator I get commission on them.

I have membership of some affiliate sites. Take example as X-Cart. Now if I put it on my website and put price zero. in detail description I put details about product and my affiliate link. this misguide visitor and some of them place order and demand for it.

I want to hide buttons when price is zero or product is not for sale from my site.

Hope anyone here will help me.

Best Regards
Kashif Rashid

totaltec 05-26-2015 11:06 AM

Re: Want to remove buy button on selected products.
 
Kashif,
You have posted this in X-Cart 5 customization, but based on your signature I am assuming you want to do this in X-Cart 4. Please corrct me if I am wrong, and update your signature to include your X-Cart 5 version.

This can be accomplished in numerous ways. One way would be to use extra fields, then detect whether or not the field is filled in. Another way would be to add a checkbox on the product page in admin. Checking the box would store a value Y or N, then you could take action on the front side based on the value.

I have a tutorial that walks you through making such a change: https://www.youtube.com/watch?v=-7ESOW0pKU4&feature=youtu.be

Unfortunately for a non-programmer, this will be difficult even with the tutorial. I suggest you hire one of the developers here on this forum to assist with this task.

Also you can check the link in my signature for other helpful tutorials like using webmaster mode.

elmirage001 05-26-2015 11:52 AM

Re: Want to remove buy button on selected products.
 
Hi Mike and Kashif,

Kashif sent me a couple of PMs since I also use reBOOT but Google decided to put the notice emails in my spam folder...

I just responded to Kashif by PM.

Thanks Mike!

Paul

Soft-Reseller.com 05-27-2015 12:54 AM

Re: Want to remove buy button on selected products.
 
Hello

I want to thanks elmirage001 and bullfrog for replying me the PM.

I am very lucky that Phil always helped me and when I asked him the same he gave complete tutorial and also put it on his website.
https://www.xcartmods.co.uk/Adding-X-Cart-Custom-Product-Fields.html

But I was not getting it as needed a spoon in mouth. I wrote here because I know Phil is very busy in next version and I am also waiting for next version coming in July and I dont want to late him due to my issues.

Here totaltec gave me a the video which act like a spoon to me. In morning I saw the video which explains me what Phil tutorial is saying.

I tried and Done all. Not only removed buttons but also did what I usually thinks I should do.

Now in admin product fields are shown as
http://prntscr.com/79wu45

and product page as
http://prntscr.com/79x2m1

I have crossed the elephant from the needle but not getting how to have same size buttons.

Now I have seen PM where elmirage001 gave me another solution.

I am again very thankful to Phil, totaltec and elmirage001 for helpming me.

Best Regards
Kashif Rashid

Soft-Reseller.com 05-27-2015 09:00 PM

Re: Want to remove buy button on selected products.
 
Hello

I want to keep my buttons of same size.
http://prntscr.com/79x2m1

Kindly give me tip for it.

Best Regards
Kashif Rashid

elmirage001 05-27-2015 09:19 PM

Re: Want to remove buy button on selected products.
 
Quote:

Originally Posted by Soft-Reseller.com
Hello

I want to keep my buttons of same size.
http://prntscr.com/79x2m1

Kindly give me tip for it.

Best Regards
Kashif Rashid

Try adding "btn-block" to the class=""

Code:

<a href="*****" class="btn btn-block btn-primary">Click Here To Download</a>
<a href="*****" class="btn btn-block btn-primary">Click Here To Buy</a>


Soft-Reseller.com 05-27-2015 09:58 PM

Re: Want to remove buy button on selected products.
 
Quote:

Originally Posted by elmirage001
Try adding "btn-block" to the class=""

Code:

<a href="*****" class="btn btn-block btn-primary">Click Here To Download</a>
<a href="*****" class="btn btn-block btn-primary">Click Here To Buy</a>




Hello

Thanks elmirage001 done as required.

Best Regards
Kashif Rashid


All times are GMT -8. The time now is 01:22 AM.

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