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

Want to remove buy button on selected products.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-26-2015, 05:15 AM
  Soft-Reseller.com's Avatar 
Soft-Reseller.com Soft-Reseller.com is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 68
 

Default 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
Reply With Quote
  #2  
Old 05-26-2015, 11:06 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following 2 users thank totaltec for this useful post:
Soft-Reseller.com (05-27-2015), Vacman (05-28-2015)
  #3  
Old 05-26-2015, 11:52 AM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,964
 

Default 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
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote

The following 2 users thank elmirage001 for this useful post:
PhilJ (05-26-2015), Soft-Reseller.com (05-27-2015)
  #4  
Old 05-27-2015, 12:54 AM
  Soft-Reseller.com's Avatar 
Soft-Reseller.com Soft-Reseller.com is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 68
 

Default 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
Reply With Quote

The following 2 users thank Soft-Reseller.com for this useful post:
elmirage001 (05-27-2015), totaltec (05-27-2015)
  #5  
Old 05-27-2015, 09:00 PM
  Soft-Reseller.com's Avatar 
Soft-Reseller.com Soft-Reseller.com is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 68
 

Default 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
Reply With Quote

The following user thanks Soft-Reseller.com for this useful post:
elmirage001 (05-27-2015)
  #6  
Old 05-27-2015, 09:19 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,964
 

Default 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>
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote

The following 2 users thank elmirage001 for this useful post:
Soft-Reseller.com (05-27-2015), totaltec (05-28-2015)
  #7  
Old 05-27-2015, 09:58 PM
  Soft-Reseller.com's Avatar 
Soft-Reseller.com Soft-Reseller.com is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 68
 

Default 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
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:52 PM.

   

 
X-Cart forums © 2001-2020