Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 208
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 194
Total: 194

Author Topic: removing Add to cart/buy free item button  (Read 6251 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: 16452
    • 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: 16452
    • 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
3838 Views
Last post January 27, 2007, 08:36:25 am
by SMFHacks
2 Replies
6039 Views
Last post September 12, 2007, 07:53:08 am
by ApplianceJunk
2 Replies
3903 Views
Last post April 20, 2008, 10:15:48 am
by rumboogy
3 Replies
3240 Views
Last post November 02, 2014, 09:59:18 pm
by shuban
10 Replies
3616 Views
Last post February 05, 2018, 05:48:10 am
by TKO-100

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

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

Powered by EzPortal