Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 221
Total: 221

Author Topic: removing Add to cart/buy free item button  (Read 6230 times)

0 Members and 1 Guest are viewing this topic.

Offline cepsi

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • Posts: 13
    • View Profile
removing Add to cart/buy free item button
« on: September 15, 2009, 06:31:58 am »
I have one catogory where i want to remove the "add to cart or buy free item" button/link. I have a 'coming soon' catogory where i want to show the items and price etc but without the purchase link. Is this possible to do anyway?

thx


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: removing Add to cart/buy free item button
« Reply #1 on: September 15, 2009, 07:18:38 am »
Yes but you would have to add code to the Store.template.php fille

Find
Code: [Select]
// Show buy it now and shopping cart items.
if ($free_item == false)
Change to
Code: [Select]
// Show buy it now and shopping cart items.
if ($context['store_item']['ID_CAT'] != ###)
if ($free_item == false)
Replace ### with the category id
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline cepsi

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • Posts: 13
    • View Profile
Re: removing Add to cart/buy free item button
« Reply #2 on: September 15, 2009, 10:42:35 am »
Thx Mr. Hacks perfect!  ;D

PS thx for quick response too  ;D

Offline cepsi

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • Posts: 13
    • View Profile
Re: removing Add to cart/buy free item button
« Reply #3 on: January 07, 2010, 08:17:21 am »
hi,

I tried to add another category to this today but when i added it i got a Parse error with the cat numbers. I tried adding a comma but still got the parse error. Is it possible to add another category?

i tried..

// Show buy it now and shopping cart items.
if ($context['store_item']['ID_CAT'] != 6,8)
      if ($free_item == false)

and

// Show buy it now and shopping cart items.
if ($context['store_item']['ID_CAT'] != 6 8)
      if ($free_item == false)

but neither worked

thx for any help!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: removing Add to cart/buy free item button
« Reply #4 on: January 07, 2010, 06:38:15 pm »
Replace
Code: [Select]
if ($context['store_item']['ID_CAT'] != 6,8)
With
Code: [Select]
if ($context['store_item']['ID_CAT'] != 6 && $context['store_item']['ID_CAT'] != 8)
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline cepsi

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • Posts: 13
    • View Profile
Re: removing Add to cart/buy free item button
« Reply #5 on: January 08, 2010, 05:29:51 am »
thx man :D

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3825 Views
Last post January 27, 2007, 08:36:25 am
by SMFHacks
2 Replies
6021 Views
Last post September 12, 2007, 07:53:08 am
by ApplianceJunk
2 Replies
3891 Views
Last post April 20, 2008, 10:15:48 am
by rumboogy
3 Replies
3219 Views
Last post November 02, 2014, 09:59:18 pm
by shuban
10 Replies
3583 Views
Last post February 05, 2018, 05:48:10 am
by TKO-100

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal